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

Reply via email to