JRun's parser insists that anything starting with '<' character followed by a
non letter (digit, punctuation and other) must be a JSP tag of some sorts.
Why? I dunno. I don't know the internals of JRun's parser. I'm not sure why
not only < followed by % is treated as a tag but I guess there is some reason
(or most likely a bug).
I first encountered it when I had the following JavaScript on one of my JSP
pages:
for (i=0; i<(args.length-2); i+=3)
This caused lexical error:
JSP Parse error
/index.jsp:
Lexical error at line 53, column 15. Encountered: "(" (40), after : ""
so you have to go around it and either put a space inbetween '<' and '('
for (i=0; i< (args.length-2); i+=3)
-----------^
or say:
temp = args.length-2;
for (i=0; i<temp; i+=3)
which became bearable to poor JRun
You can test it yourself. Just put <[non letter] anywhere in your jsp file.
dave.
Sharat Babu wrote:
> Hi to everyone
>
> I am getting a lexical error while executing a jsp program.
> The error is like this......
>
> 500 Internal Server Error
> com.livesoftware.jsp.JSPServlet:
>
> javax.servlet.ServletException: JSP Parse error
> /project/reportForm2.jsp10:Lexical error at line 158, column 58.
> Encountered: "1" (49), after : ""
>
> I am not understanding when this will occur.
>
> I will be obliged to you , if you can provide any information on it.
>
> regards
> sharat
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
--
David Mossakowski [EMAIL PROTECTED]
Programmer 212.310.7275
Instinet Corporation
"I don't sit idly by, I'm planning a big surprise"
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html