This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Simple Struts PlugIn Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Simple Struts PlugIn Question" Watch "Simple Struts PlugIn Question" New topic

Simple Struts PlugIn Question

Stephen Pride
Ranch Hand

Joined: Sep 14, 2000
Posts: 121
I am creating a plugin for my Struts application, and was wondering how to programmatically retrieve the property values for the plugin. IOW, suppose my struts-config.xml file contains the following:

How do I retrieve the property name/value pair of "test" and "123" from within Thanks.

Kumaran Rajakumar

Joined: Sep 10, 2004
Posts: 5
just simple. Have a private field names test in your class MyPlugin. have getter/setter methods. Struts will call the setTest(String param) with value 123.
I agree. Here's the link:
subject: Simple Struts PlugIn Question
Similar Threads
incompatibility between struts plugIn
Server side validation - not working.
DynaAction and validation
Why My Validation Lets All Errors Pass Through?
???en_US.errors.required??? instead of fileds names