I have been running my app in WSAD 5 for a month or so and am migrating it to the test environment (Tomcat 4.1). I was pesimistic that it would all work instantly ... and I encountered the following problem.

In the jsp that uses the template I have
<tiles:insert template="/templates/content/templateA.jsp">
        <tiles:putList name="features">
                <tiles:add type="page" value="/templates/features/logon.jsp" />
                <tiles:add type="page" value="/templates/features/basket.jsp" />
                <tiles:add type="page" value="/templates/features/promotions.jsp" />
                <tiles:add type="page" value="/templates/features/verisign.jsp" />
        </tiles:putList>
</tiles>

and in the template jsp I have

<tiles:importAttribute />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<logic:iterate id="feature" name="features">
<tr>
<td><jsp:include page="<%= feature %>" flush="true" /></td>
</tr>
</logic:iterate>
</table>

I get:

[ServletException in:/templates/content/templateA.jsp] Unable to compile class for JSP An error occurred at line: 36 in the jsp file: /templates/content/templateA.jsp Generated servlet error: [javac] Compiling 1 source file C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\templates\content\templateA_jsp.java:129: include(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String,javax.servlet.jsp.JspWriter,boolean) in org.apache.jasper.runtime.JspRuntimeLibrary cannot be applied to (javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.Object,javax.servlet.jsp.JspWriter,boolean) JspRuntimeLibrary.include(request, response, feature , out, true); ^ 1 error '

However interstingly the following works (Just so that I knew that the logic etc were ok).

<tiles:importAttribute />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<logic:iterate id="feature" name="features">
<tr>
<td><jsp:include page="/templates/features/logon.jsp" flush="true" /></td>
</tr>
</logic:iterate>
</table>

Anyone have ideas?

FYI all the tile pages compile on their own



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to