aspose file tools
The moose likes Struts and the fly likes set-property Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "set-property" Watch "set-property" New topic
Author

set-property

rahul karwal
Ranch Hand

Joined: Oct 26, 2001
Posts: 73
Hi,
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?

Thanks
aziz dhanani
Andr� Branco
Greenhorn

Joined: Sep 28, 2004
Posts: 7
Hi!

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

Thanks!

Best regards,
Andr�.
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4118
    
    2

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] [MiH]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: set-property
 
Similar Threads
issue reading fields from form in struts2
Problem defining an Oracle datasource in struts-config.xml
Servlet action is not available
How to create PopUp in jsf
Can I use the paramProperty from a hyperlink in a textfield in the called .jsp-page?