File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple Struts PlugIn Question

 
Stephen Pride
Ranch Hand
Posts: 121
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 MyPlugin.java? Thanks.
 
Kumaran Rajakumar
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic