Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get a value from an array in struts

 
sanju sreedharan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic