You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bob Williams <rj...@compuserve.com> on 2002/02/06 20:15:30 UTC
Problem compiling in Forte v3
I get an error when compiling a <bean:define.. /> tag using the default
compiler (javac) in Forte v3.
The problem is that the bean in not define/initialized in the code generated
by the compiler.
It works fine when the same page is compiled using Tomcat 4.0 (jasper?)
Here is the JSP:
<bean:define id="links" name="links" type="java.util.List" scope="page" />
<% Iterator i = links.iterator(); %>
Here is code generated with the Forte compiler
org.apache.struts.taglib.bean.DefineTag _jspx_th_bean_define_0 = new
org.apache.struts.taglib.bean.DefineTag();
_jspx_th_bean_define_0.setPageContext(pageContext);
_jspx_th_bean_define_0.setParent(null);
_jspx_th_bean_define_0.setId("links");
_jspx_th_bean_define_0.setName("links");
_jspx_th_bean_define_0.setScope("page");
_jspx_th_bean_define_0.setType("java.util.List");
Here is the code from Tomcat 4
org.apache.struts.taglib.bean.DefineTag _jspx_th_bean_define_0 = new
org.apache.struts.taglib.bean.DefineTag();
_jspx_th_bean_define_0.setPageContext(pageContext);
_jspx_th_bean_define_0.setParent(null);
_jspx_th_bean_define_0.setId("links");
_jspx_th_bean_define_0.setName("links");
_jspx_th_bean_define_0.setType("java.util.List");
_jspx_th_bean_define_0.setScope("page");
java.util.List links = null;
The last line is required otherwise the variable "links" is not defined.
Any thoughts?
bob
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>