This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes set-property Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "set-property" Watch "set-property" New topic


rahul karwal
Ranch Hand

Joined: Oct 26, 2001
Posts: 73
what is the use of set-parameter, in struts-config.xml file for SPECIFIC ACTION? how can i retreive values assigned in set-property from my action class?

aziz dhanani
Andr� Branco

Joined: Sep 28, 2004
Posts: 7

I have the same doubt, does anybody knows about this stuff?


Best regards,
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6332

Both parameter and property are actually related to the ActionMapping rather than the Action.

See the Struts Catalog for an example of how to use the parameter attribute.

As for the property, you need to extend ActionMapping and define your custom property that matches the value specified in set-property. Then modify your Struts config to use the custom ActionMapping class instead of the default one. Use your custom property getter method to access the value.

Junilu - [How to Ask Questions] [How to Answer Questions]
I agree. Here's the link:
subject: set-property
It's not a secret anymore!