File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to load request parameters in a POJO using Struts2
 
Similar Threads
Marshalling XML with Spring (How to handle referenced classes)
Hibernate - can't get the collection (List) when create criteria
Simple requirement .. but I don't know how!
Joining tables
Hibernate in case of cascade(All,merge,persist)