Hello People,

I am quite new to struts. and right now i am using 1.1. I have questions
regarding creating indexed form elements...

I want to be able to have multiple updateable objects.

my jsp page...

<html:form action="/stockControlConfirm.do" method="POST">
<logic:iterate id="stock" name="stockSearch" scope="session"
                   offset="<%= pager.getOffset() %>" length="<%=
pager.getLength() %>" type="com.yellowasp.isolaconsign.Stock">
    <html:text property="batch" size="8" maxlength="20" indexed="true"/>
    <html:hidden property="id" size="8" maxlength="20" indexed="true"/>
</logic:iterate>
</html:form>

My questio0ns are:

1. How do I create the form beans with indexed type properties? Do I have to
create indexed field/getters/setters on my form bean?

2. How do i catch it with my action class?

Illustrations:

public ActionForward perform(ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException  {}


    Is the Action form in this template enough? or is there another variation
with the perform method?


tnx.

Reply via email to