Hi,
Can anyone help me with this problem?
I have a number of jsp files that varies at a fixed section of each page.
(The reason that I am not using switch statement is 64K limitation of java
method size.) Naturally, I used include directive (header.jsp and
footer.jsp) to eliminate duplicated codes. <html:form> is in header.jsp and
</html:form> is in footer.jsp.
Tomcat's jspc have no problem with this arrangement. Weblogic 5.1 have
major problem with this arrangement.
It first generated this error:
java.lang.RuntimeException: Could not parse embedded JSP code:
weblogic.utils.Pa
rsingException: Could not complete parsing, unmatched tags: form
at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1176)
at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1150)
at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1143)
at weblogic.servlet.jsp.JspLexer.buildTimeInclude(JspLexer.java:943)
at
weblogic.servlet.jsp.JspLexer.mINCLUDE_DIRECTIVE(JspLexer.java:3809)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3597)
at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1948)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1789)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1679)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:972)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:125)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:109)
I rearranged some code to narrow down the problems. When I inserted
header.jsp into the main page and only kept footer.jsp, it generated this
error:
Fri Dec 14 03:14:39 EST 2001:<E> <WebAppServletContext-vco> Servlet failed
with Exception
weblogic.servlet.jsp.JspException: (line 106): no corresponding open tag for
tag extension close: </html:form>
I guess that weblogic might starts parsing all jsp tags before it finished
expanding every included files in the main page first. Or, started
validating before finished parsing.
Does anyone know how weblogic implemented the priorites of parsing,
expanding, validating, etc, in its jspc?
Are there some undocumented options that deal with this problem?
Thanks.
-Yao Zhu
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>