Hi,

As a relative newbie to struts I have managed to get a long way using
the info on here, but am now stuck;

I have a large form which has a collection of beans as one of its
properties. In one of my JSP files I wish to expose one of the beans
in this collection. I identify the bean by iterating through the
collection to find the correct one and then display it thus;

<html:form action="/TransactionsAdmin" >
<logic:iterate name="memberForm" property="transactions_" 
id="aTransaction" >
        <logic:match name="aTransaction" property="transactionId"
value='<%=request.getAttribute("transId").toString() %>'>
...
SHOW PROPERTIES HERE, e.g <html:text name="aTransaction"
property="description" styleClass="large" />
...
<html:hidden property= "transId" styleId="transId"
value=""></html:hidden> 
                                        <html:hidden property= "action" value= ""
styleId="action"></html:hidden> 
                                        <html:submit  styleClass="button" 
onclick='<%=tempString%>'><bean:message
key="button.add"/></html:submit> 
                                        <html:cancel  styleClass="button" 
onclick="set('action','cancel')"><bean:message
key="button.cancel"/></html:cancel> 
        
        </logic:match>   
</logic:iterate>
</html:form>

Now all this works fine, I see the bean that I want and the form
submits. However, when the form submits none of the changes I make
are detected.

Is it not possible to nest in this way?

Should I redesign and use a seperate ActionForm and therefore never
nest beans that I wish to expose as Forms?

Many thanks for any input

Richard



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

Reply via email to