Meaningless Drivel is fun!*
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
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