aspose 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 Java 8 in Action this week in the Java 8 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
Simple requirement .. but I don't know how!
Joining tables
Marshalling XML with Spring (How to handle referenced classes)
Hibernate in case of cascade(All,merge,persist)
Hibernate - can't get the collection (List) when create criteria