<<<
class UserForm extends ActionForm{
     int userId;
     String userName;
     Post post=new Post();
}<<<
<input name="userId"
<input name="userName"
<input name="post.postId"<<<
User user=new User();
BeanUtils.copyProperties(user,userForm);
getUserManager().save(user)