Is it possible to to edit and submit a collection of multiple records using struts?
for example I have the following Action Form defined
public class AttributeForm extends ActionForm{ private String name; private String value; private boolean stamped; }
On the server an ArrayList is created and populated with multiple instances of this AttributeForm object.
This collection of AttributeForm attributes are displayed to a user in as a list of records. The name and value attributes and the stamped attribute are all editiable by the user.
Is it possible to collect all of the modified attributes for each line Item and submit them as a colection of these ActionForms when the submit button is clicked?
Hi Alan, Can we use indexed properties without JSTL tag libraries ? I'm guessing we should be able to - we are far too into a project to implement JSTL tag libraries, but using request.getAttribute() or request.getParameter() should also work with indexed properties is what I'm assuming.
Thanks for the information, Mallika.
alan do
Ranch Hand
Joined: Apr 14, 2005
Posts: 354
posted
0
absolutely! you CAN use indexed properties without JSTL. don't confuse JSTL with struts-html though (you NEED to use this for indexed properties to work).
i am not sure what you meant by "using request.getParameter() and request.getAttribute()" though. in JSTL, you can access the JSTL implicit object 'requestScope' or 'param' respectively corresponding to the 2 methods you listed.