You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Remy Maucherat <re...@apache.org> on 2002/08/28 13:31:55 UTC
[4.1.10-dev] Jasper 2 problems
Hi,
I'm testing 4.1.10-dev before tagging, and I ran into some serious problems.
Jasper 2 seems broken (in the TC 4 branch; the HEAD/TC 5 branch may be
broken as well, but I didn't have time to test it), and fails to compile
most pages from the admin webapp.
There seems to be a problem with the nested variable declaration code.
I attach the errors I get with the mail sessions page.
The generated code looks like (for the "hostInfo" variable):
/* ---- bean:define ---- */
{
java.lang.String hostInfo = null;
org.apache.struts.taglib.bean.DefineTag
_jspx_th_bean_define_2 = (org.apache.struts.taglib.bean.DefineTag)
_jspx_tagPool_bean_define_type_property_name_id.get(org.apache.struts.taglib.bean.DefineTag.class);
_jspx_th_bean_define_2.setPageContext(pageContext);
_jspx_th_bean_define_2.setParent(_jspx_th_html_form_0);
_jspx_th_bean_define_2.setId("hostInfo");
_jspx_th_bean_define_2.setType("java.lang.String");
_jspx_th_bean_define_2.setName("mailSessionsForm");
_jspx_th_bean_define_2.setProperty("host");
int _jspx_eval_bean_define_2 =
_jspx_th_bean_define_2.doStartTag();
if (_jspx_th_bean_define_2.doEndTag() ==
javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
hostInfo = (java.lang.String)
pageContext.findAttribute("hostInfo");
_jspx_tagPool_bean_define_type_property_name_id.reuse(_jspx_th_bean_define_2);
}
<snip/>
/* ---- controls:action ---- */
{
org.apache.webapp.admin.ActionTag
_jspx_th_controls_action_2 = (org.apache.webapp.admin.ActionTag)
_jspx_tagPool_controls_action_url.get(org.apache.webapp.admin.ActionTag.class);
_jspx_th_controls_action_2.setPageContext(pageContext);
_jspx_th_controls_action_2.setParent(_jspx_th_controls_actions_0);
_jspx_th_controls_action_2.setUrl(
"/resources/setUpMailSession.do?resourcetype=" +
URLEncoder.encode(resourcetypeInfo) + "&path="+
URLEncoder.encode(pathInfo) + "&host="+
URLEncoder.encode(hostInfo) + "&service="+
URLEncoder.encode(serviceInfo) );
int _jspx_eval_controls_action_2 =
_jspx_th_controls_action_2.doStartTag();
I assume "hostInfo" shouldn't be nested in the block when it is declared
(or the block should be much bigger).
Remy
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 10 in the jsp file:
/resources/listMailSessions.jspf
Generated servlet error:
[javac] Compiling 1 source file
L:\home\cvs\jakarta-tomcat-4.1.x\build\work\Standalone\localhost\admin\resources\listMailSessions_jsp.java:265:
cannot resolve symbol
symbol : variable resourcetypeInfo
location: class org.apache.jsp.listMailSessions_jsp
URLEncoder.encode(resourcetypeInfo) + "&path="+
^
An error occurred at line: 10 in the jsp file:
/resources/listMailSessions.jspf
Generated servlet error:
L:\home\cvs\jakarta-tomcat-4.1.x\build\work\Standalone\localhost\admin\resources\listMailSessions_jsp.java:266:
cannot resolve symbol
symbol : variable pathInfo
location: class org.apache.jsp.listMailSessions_jsp
URLEncoder.encode(pathInfo) + "&host="+
^
An error occurred at line: 10 in the jsp file:
/resources/listMailSessions.jspf
Generated servlet error:
L:\home\cvs\jakarta-tomcat-4.1.x\build\work\Standalone\localhost\admin\resources\listMailSessions_jsp.java:267:
cannot resolve symbol
symbol : variable hostInfo
location: class org.apache.jsp.listMailSessions_jsp
URLEncoder.encode(hostInfo) + "&service="+
^
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>