Apologies in advance for this newbie jsp question; I'm hoping there's a
better way to do what I'm doing.
I'm uploading a comma separated values file, then I display it to verify
that the order of the data (the columns) in the clubs objects is correct;
<display:table name="actionBean.clubs">
<display:column property="name" />
<display:column property="addressLine1" />
<display:column property="city" />
<display:column property="zipcode" />
<display:column property="url" />
<display:column property="email" />
<display:column property="note" />
</display:table>
If it's correct then I want to save the clubs List to the database. The
only way I could think of to send it back to the next action bean is with a
POST, by building a new clubs List:
<stripes:form
beanclass="com.objecteffects.clublist.web.action.SaveUploadActionBean">
<c:forEach items="${actionBean.clubs}" var="club" varStatus="loop">
<stripes:hidden name="clubs[${loop.index}].name" value="${club.name}"
/>
<stripes:hidden name="clubs[${loop.index}].addressLine1"
value="${club.addressLine1}" />
<stripes:hidden name="clubs[${loop.index}].city" value="${club.city}"
/>
<stripes:hidden name="clubs[${loop.index}].zipcode"
value="${club.zipcode}" />
<stripes:hidden name="clubs[${loop.index}].url" value="${club.url}" />
<stripes:hidden name="clubs[${loop.index}].email" value="${club.email}"
/>
<stripes:hidden name="clubs[${loop.index}].note" value="${club.note}"
/>
</c:forEach>
<br />
<stripes:submit
name="submit"
value="save"
/>
</stripes:form>
Is there a simpler way to do this?
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users