This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Array list object using in sruts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Array list object using in sruts" Watch "Array list object using in sruts" New topic
Author

Array list object using in sruts

ravi tejak
Greenhorn

Joined: Jul 26, 2012
Posts: 1

I have a group of text fields by year wise like present year,previous year,next year in jsp. i need to take that values and pass the values by action classs and display in the another JSP can any one tell me how to do and give me the example code.

the text box is like below senario

field name Previous year current year next year
---------- ------------- ------------ ----------
A textbox textbox textbox
B textbox textbox textbox
C textbox textbox textbox
. . . .
. . . .
. . . .
. . . .
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8834
    
    7

You will need to use Indexed Properties to reference the text boxes. If you do a search on this forum and the net, you will find many examples.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
jQuery in Action, 2nd edition
 
subject: Array list object using in sruts
 
Similar Threads
Enter text into newly created dynamic textbox
Unsure how to create and name dynamic Textfield
saving the details in when i click next and previous buttons
JSP pages-passing variables
HOW TO: html:select / DynaValidatorForm