使用Domain Model接收参数
<a href="user/user!add?user.name=a&user.age=8">添加用户</a>
Action类中:
private User user;
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
使用Domain Model接收参数
<a href="user/user!add?user.name=a&user.age=8">添加用户</a>
Action类中:
private User user;
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}