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