Hello John,
have you tried
<tiles:insert attribute="formContent" flush="true"/>
***************************************************************
JM> Hi,
JM> I hope someone can help me get my head around a scoping question here.
JM> I have a multi-page wizard, used for purchasing. There are five pages in
JM> all and I'm trying to factor out as much of the common stuff as
JM> possible. In each page, there is something like the following:
JM> <html:form action="/Purchase" method="POST">
JM> <!--The following bit specific to this page ...-->
JM> <table>
JM> <tr font="small">
JM> <td><bean:message
JM> key="purchaseForm.licenceCount"/>: </td>
JM> <td><html:text
JM> property="licenceCount" size="3"
maxlength="5"/>></td>
JM> </tr>
JM> </table>
JM> <!--Back to common stuff now-->
JM> <input type="hidden" name="page" value="<c:out
value="${step}"/>>"/>
JM> <tiles:insert page="purchaseFormButtonBar.jsp" flush="true"/>
JM> </html:form>
JM> So, I thought I'd create a purchaseForm.jsp, thus:
JM> <html:form action="/Purchase" method="POST">
JM> <tiles:insert attribute="formContent"/>
JM> <input type="hidden" name="page" value="<c:out
value="${step}"/>>"/>
JM> <tiles:insert page="purchaseFormButtonBar.jsp" flush="true"/>
JM> </html:form>
JM> Thereafter, I could use the following on each page:
JM> <tiles:insert page="purchaseSubmissionForm.jsp">
JM> <tiles:put name="formContent" type="string">
JM> <!--page-specific content here -->
JM> </tiles:put>
JM> </tiles:insert>
JM> The problem is, when I use it I get an error as follows:
JM> javax.servlet.jsp.JspException: Cannot find bean
JM> org.apache.struts.taglib.html.BEAN in any scope
JM> I can't see what the problem is here, although I'm assuming it is
JM> clearly to do with scope, somehow. Any help clarifying this would be
JM> most appreciated.
JM> Thanks,
JM> John
Regards,
Dirk
+------- Quality leads ---------------------------------------+
| Dirk Markert [EMAIL PROTECTED] |
| Dr. Markert Softwaretechnik AG |
| Joseph-von-Fraunhofer-Str. 20 |
| 44227 Dortmund |
+---------------------------------->>>>>>> to success! <<<<<<-+
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]