For the benefit of anyone else moving a jsp site from resin to tomcat:

If you get this error:

org.apache.jasper.JasperException: /products/index.jsp(53,2) Expecting "jsp:param" standard action 
with "name" and "value" attributes


The problem is likely that an editable section is cutting through a <jsp:include.../> or similar tag.

Dreamweaver makes editable sections by marking them with special content in comments. You must be sure that these comments completely contain any such tags. Resin ignores the comments, Tomcat does not.

This doesn't work / causes the error:

       <jsp:include page="/includes/navTab.jsp" flush="true">
               <!-- InstanceBeginEditable name="navTopParam" -->
               <jsp:param name="navTopParam" value="products" />
               <!-- InstanceEndEditable -->
       </jsp:include>

This does work:

       <!-- InstanceBeginEditable name="navTopParam" -->
       <jsp:include page="/includes/navTab.jsp" flush="true">
               <jsp:param name="navTopParam" value="home" />
       </jsp:include>
       <!-- InstanceEndEditable -->

Hope this is helpful,

_M




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to