File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts 2 set property. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 set property." Watch "Struts 2 set property." New topic

Struts 2 set property.

Miclea Paul Alexandru

Joined: May 18, 2011
Posts: 7
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

Joined: Jul 23, 2010
Posts: 8
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.
I agree. Here's the link:
subject: Struts 2 set property.
It's not a secret anymore!