Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of
Clojure in Action
this week in the
Simple Struts PlugIn Question
posted 11 years ago
I am creating a plugin for my
application, and was wondering how to programmatically retrieve the property values for the plugin. IOW, suppose my struts-config.xml file contains the following:
<plug-in className="my.own.plugin.MyPlugin"> <set-property property="test" value="123"/> </plug-in>
How do I retrieve the property name/value pair of "test" and "123" from within MyPlugin.java? Thanks.
posted 4 years ago
just simple. Have a private field names
in your class MyPlugin. have getter/setter methods. Struts will call the setTest(
param) with value 123.
I agree. Here's the link:
Server side validation - not working.
DynaAction and validation
???en_US.errors.required??? instead of fileds names
incompatibility between struts plugIn
Why My Validation Lets All Errors Pass Through?