You must extend the ActionMapping class to include the property you are
wanting to set. Inside your action, just cast the ActionMapping object to
your custom mapping object. Inside the deployment descriptor (web.xml), set
the init-param mapping to point to your custom mapping object.
--- start
I think you got the wrong end of the stick. The action elements in
struts-config relate to ActionMapping classes, not the Action class.
You need to sub-class the ActionMapping class and add your properties and
getters/setters to that class.
Then you need to add a init-param element for the
2 matches
Mail list logo