struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Yu <j...@scioworks.com>
Subject Re: [Tag] <nested> tag being interpreted as scriptlet!
Date Fri, 06 Sep 2002 02:11:58 GMT

Have you double checked you have struts-nested.tld
declared in both your JSP and the web.xml?


At 04:33 am 06-09-2002, you wrote:
>Using Struts 1.0.2 with nested extension on Tomcat 4.0.2
>
>My JSP has the following construct
>
>   <nested:root name="sitebean">
>     <nested:equal property="cartBean.haveModelBasedItems" value="true">
>       etc
>
>This page fails to load with a NullPointerException.
>
>My hunt for its cause has lead me to the process of translating a JSP file 
>into a Java file.
>
>The error is being raised because Tomcat is evaluating
>
>   <nested:root name="sitebean">
>
>as
>
>   out.write("\r\n\r\n\r\n\r\n<nested:root name=\"sitebean\">\r\n");
>
>Why could this be happening?  I have confirmed and re-confirmed the 
>syntactical correctness of my jsp file.
>
>The correct interpretation of this nested tag should be (as derived from 
>other pages that use the same construct)
>
>   org.apache.struts.taglib.nested.NestedRootTag _jspx_th_nested_root_0 = 
> new org.apache.struts.taglib.nested.NestedRootTag();
>   _jspx_th_nested_root_0.setPageContext(pageContext);
>   _jspx_th_nested_root_0.setParent(null);
>   _jspx_th_nested_root_0.setName("sitebean");
>
>Any suggestions?
>
>Sri

-- 
John Yu                       Scioworks Technologies
e: john@scioworks.com         w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Don't develop Struts Apps without it!"


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message