Re: compilation error message on tomcat 5.5.27



On Jan 8, 7:53 am, GArlington <garling...@xxxxxxxxxxxxx> wrote:
On Jan 8, 8:01 am, phil89 <pco...@xxxxxxxxxx> wrote:

Hi

I have change tomcat 5.5.26 to 5.5.27 and i have following compilation
error message

Code :

org.apache.jasper.JasperException: /jsp/servlet24/supervisionv2.jsp
(180,35) Attribute value  ((servlet24.PosteBean)context.getPoste
("******")).getCodePoste()+"_appletc" is quoted with " which must be
escaped when used within the value
 org.apache.jasper.compiler.DefaultErrorHandler.jspError
(DefaultErrorHandler.java:40)
 org.apache.jasper.compiler.ErrorDispatcher.dispatch
(ErrorDispatcher.java:407)

Line is
<jsp:plugin type="applet" jreversion="1.4"
code="dclock.LedClock.class" archive="dclock.jar" height="36"
width="166">
 <jsp:params>

  <jsp:param name="name" value="<%= ((servlet24.PosteBean)
context.getPoste("******")).getCodePoste()+"_appletc"%>" />
     </jsp:params>

What is NOT clear? What does your error message say? What does it
suggest?
(You have double quotes ["] within double quoted string), you can
either escape any double quotes used within the string, or change the
quotes to single quotes ['] around main string as bellow, AFAIR it
will work too...
<jsp:param name="name" value='<%= ((servlet24.PosteBean)
context.getPoste("******")).getCodePoste()+"_appletc"%>' />
</jsp:params>



 <jsp:fallback>
  <p>Unable to load applet</p>
 </jsp:fallback>
</jsp:plugin>

Could you help me ?

Regards
Philippe



Well, my question would be, WHY did this work in Tomcat 5.5.26? Also,
Tomcat 5.0.28 and something in the WLS 9 family?
.



Relevant Pages

  • Re: [PHP] str_replace oddity
    ... it uses backslashes to escape where the quotes were. ... but the ghost remains and mysql continues to escape them. ... is $string honestly something that you are getting via a form submit? ...
    (php.general)
  • Re: [PHP] str_replace oddity
    ... it uses backslashes to escape where the quotes were. ... but the ghost remains and mysql continues to escape them. ... is $string honestly something that you are getting via a form submit? ...
    (php.general)
  • Re: compilation error message on tomcat 5.5.27
    ... I have change tomcat 5.5.26 to 5.5.27 and i have following compilation ... What does your error message say? ... either escape any double quotes used within the string, ...
    (comp.lang.java.programmer)
  • regular expression xml help please
    ... anyone know how to return any quotes used inside a text node? ... what i want to do is escape those " with ' ... string so there will be multiple nodes per line, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Cant activate an existing workbook
    ... Take the quotes off the last line: ... Dim quotenumber As String ... Dim quotenumber1 As String ... Why do i get an error message "subscript out of range" ...
    (microsoft.public.excel.programming)