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 How to load request parameters in a POJO using Struts2 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 "How to load request parameters in a POJO using Struts2" Watch "How to load request parameters in a POJO using Struts2" New topic
Author

How to load request parameters in a POJO using Struts2

Gustavo Armenta
Greenhorn

Joined: Jul 08, 2003
Posts: 3
Suppose I have a POJO Employee, how Struts 2 can initialize the POJO reading the request parameters. Assume request parameters have the same name as the POJO attribute names.

Thanks!

public class Employee {
private long id;
private String name;
private Date hireDate;
private double salary;
private boolean isFullTime;
private Department department;
}


Gustavo Armenta<br />2002 SCJP 1.4<br />2006 SCWCD 1.4 and SCBCD 5<br />2007 SCDJWS, SCEA, and OCUP
 
jQuery in Action, 2nd edition
 
subject: How to load request parameters in a POJO using Struts2
 
Similar Threads
Joining tables
Marshalling XML with Spring (How to handle referenced classes)
Simple requirement .. but I don't know how!
Hibernate - can't get the collection (List) when create criteria
Hibernate in case of cascade(All,merge,persist)