Robert Taylor wrote:
John, does the action to which the url /admin/customer/edit.do correspond have a form associated with it?
You might also try removing the ".do" from the url as struts should
automatically add this for you. For example:
<html:form action="/admin/customer/edit">
<div id="editPage">
<tiles:insert attribute="pageBody"/>
</div>
</html:form>
Yes, it does have a form associated with it.
I should point out that the issue must be to do with the nesting of the Tiles, because if I don't use a Tile and just do the following, it works fine:
<html:form action="/admin/customer/edit.do">
<div id="editPage">
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<sn:viewTextFieldRow property="id" size="5"/>
<sn:textFieldRow label="shop.fabric.name" property="name" size="40"/>
<sn:textFieldRow label="shop.fabric.code" property="code" size="10"/>
<sn:textAreaRow label="shop.fabric.description" property="description" rows="6"/>
<sn:viewTextFieldRow property="createdDate" size="10"/>
<sn:viewTextFieldRow property="modifiedDate" size="10"/>
</table>
<sn:editButtonBar/>
</div>
</html:form>
So, somehow when used in a Tile enclosed within the html:form tag (instead of directly as above), the various html: tags lose awareness of the form bean. Adding a 'scope="request"' to the html:form does not solve the problem.
John
-- ============================================== John Moore - Norwich, UK - [EMAIL PROTECTED] ==============================================
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]