Web tier: servlets, JSP, Web frameworks: How to pass arrayList of object from jsp to Action class
Initially I am setting a list in controller. In jsp, using I am displaying the multiples records of a list. I am editing those multiple records and finally submitting to controller ( Servlet). In servlet(controller), How I can get that list. using struts......
- Posted by: jilani baji
- Posted on: March 28 2007 12:52 EDT
- Re: How to pass arrayList of object from jsp to Action class by Jeryl Cook on March 28 2007 16:06 EDT
- Re: How to pass arrayList of object from jsp to Action class by Mike S on March 29 2007 05:18 EDT
- Re: How to pass arrayList of object from jsp to Action class by jilani baji on March 30 2007 07:35 EDT
- Re: How to pass arrayList of object from jsp to Action class by Mike Spiridonov on March 30 2007 10:23 EDT
- Re: How to pass arrayList of object from jsp to Action class by Race Condition on March 30 2007 15:45 EDT
u have the list values set as readonly. also u have to use the struts nested tag to remember which items in the collection has been set.
u have the list values set as readonly.well, i think the idea is to make input text fields editable when the user ticks the corresponding checkbox. what concerns values gathering there are two options: 1. if you just need a bunch of strings enetered without any particular indexing mechanism you use the same property name for all of the input type fields and make the setter for this property in your ActionForm to accept array of Strings like setMyProperty(String values). 2. if you need to know the indexes of the strings enetered as well then your way is to use indexed properties like ActionForm.setMyProperty(int index, String value)
Thank you guys for giving reply. But in my case, I need arrayList of Ojects guys, not arrayList of string. could you please resolve the same .....
Figure it out or flip burgers.
LOL, I second that :).
Hey Jeryl, looks like You second to be a buttkisser for an *******. If there is nothing relevant to say, then just enjoy the silence. There are a lot of mentally challenged people out there who have difficulties perceiving the social context of a situation. Don't be one of them.
Well said, Brandon.