• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 set property.

 
Miclea Paul Alexandru
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, i am kind of stuck here, maybe you guys can help me out, i have just started using Struts2. How do i set the value of a action class property from a parameter or another action class?
 
Sanal Samuel
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your using the default-interceptor with struts2 and your using modelDriven Interface which returns the model object. then you you can assign values of one action object to another by just creating a refrence of the object in the action class and set the value.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic