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>


/robert

John Moore wrote:
I know this is one of those errors to which there is an apparent standard answer - namely, that I must be using one of the html input tags outside the context of an enclosing htm:form tag. The thing is, though, I'm not. What I have is basically this:

<html:form action="/admin/customer/edit.do">
   <div id="editPage">
       <tiles:insert attribute="pageBody"/>
   </div>
</html:form>


This is used by a page like this:

<%@ taglib prefix="sn" tagdir="/WEB-INF/tags/sn" %>
<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt' %>
<%@ taglib prefix="tiles" uri="/WEB-INF/tld/struts-tiles.tld" %>
<%@ taglib prefix="bean" uri="/WEB-INF/tld/struts-bean.tld"  %>

<tiles:insert page="/WEB-INF/jsp/admin/editPage.jsp">
<tiles:put name="pageBody" type="string">
<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/>
</tiles:put>
</tiles:insert>


The sn tags contain the html:text, etc., which is obviously where the error is being triggered.

So, given that all the content is being evaluated within the body of the html:form tag, why would the html input tags not be able to find the bean?

John



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



Reply via email to