try using &  The first processor should turn it into & for you.
    (*Chris*)

----- Original Message -----
From: "Panagiotis Konstantinidis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 23, 2001 7:00 AM
Subject: [JSP-INTEREST] entity reference is not terminated with semicolon


>   Hello there, consider the following code fragment (WML and JSP):
>
> <go method="post" href="<%=
> response.encodeURL("/process?action=login&amp;fail="
>         +
>
java.net.URLEncoder.encode(response.encodeURL("/WAP/login/retryloginwml.jsp"
> ))
>         + "&amp;success=" +
>
java.net.URLEncoder.encode(response.encodeURL("/WAP/login/successwml.jsp")))
> %>">
>         <postfield name="userName" value="$loginUsername"/>
>                 <postfield name="password" value="$loginPassword"/>
> </go>
>
>   The result of the above code is to produce the following WML code:
>
> <go method="post"
>
href="/process;jsessionid=rkemhywve1.ajp12?action=login&fail=%2FWAP%2Flogin%
>
2Fretryloginwml.jsp%3Bjsessionid%3Drkemhywve1.ajp12&success=%2FWAP%2Flogin%2
> Fsuccesswml.jsp%3Bjsessionid%
>                                 3Drkemhywve1.ajp12">
>         <postfield name="userName" value="$loginUsername"/>
>         <postfield name="password" value="$loginPassword"/>
> </go>
>
>   When I am loading the file from a mobile phone I am getting the error
> message "Entity reference is not terminated with semicolon" and it points
on
> the second "=" (after the "&fail"). My understanding is that it tries to
> interpret the "&fail" as an
> entity reference and it is looking to find the terminating ";". It cannot
> find it and it throws the error message. When I am The only solution I can
> think of is to maintain the "&amp;" on the generated WML file. HAs anybody
> got any suggestions?
>
>    Thank you.
>
>      Panos
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to