aspose file tools*
The moose likes Struts and the fly likes how to get a value from an array in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to get a value from an array in struts" Watch "how to get a value from an array in struts" New topic
Author

how to get a value from an array in struts

sanju sreedharan
Ranch Hand

Joined: Nov 25, 2008
Posts: 48
hai everyone

suppose i want to add multiple name through jsp..for example enter the name: and then i created a getter and setter method for name in actionform..and also created a arraylist in the actionform..can anyone tell me what to right in action class to set and get the value drom arraylist.i am new to struts so please help me..in java we use person.setName=name; what we use in struts???

sanju
Tom Rispoli
Ranch Hand

Joined: Aug 29, 2008
Posts: 349
ArrayLists are part of Java, not Struts. If your issue here is just how to work with an ArrayList object, take a look at its API at:

ArrayList API

I'm assuming you're using java 1.4.2, if not then consult the API for your release of java. If working with ArrayLists isn't your problem then please clarify your issue.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get a value from an array in struts