This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to load request parameters in a POJO using Struts2

 
Gustavo Armenta
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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;
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic