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 Struts2 Data Transfer 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 "Struts2 Data Transfer" Watch "Struts2 Data Transfer" New topic

Struts2 Data Transfer

Pawan Komaram
Ranch Hand

Joined: Dec 08, 2009
Posts: 91

Can anybody tell me how to transfer list of similar kind of data to action classs in struts2?

For example, I have a student form which collects several students data at a time, so how can I populate it in action class? I want to map the fields back and forth. i.e form to action and action to form. I am able to map from action to form by iterating my student list which is populated in action, but could not do it from form to action. The form look like below. Here use can add as many students(rows) as he wants.

Joe Ess

Joined: Oct 29, 2001
Posts: 8836

Indexed Properties, Mapped Properties, and Indexed Tags

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Struts2 Data Transfer
Similar Threads
null pointer exception in struts2
unable to do validation for select in struts2
struts2 select and js
Problem with Struts2 validation
null pointer exception in struts2...