Passing value to Struts-Config.xml
Passing value to Struts-Config.xml
(OP)
Is there a way to pass value to "path" attribute
in the <forward> tag within an <action>?
Example:
<forward name="command" path="$$$$$$"/>
$$$$$$- have to pass dynamically.
Thanks in Advance
Manoj
RE: Passing value to Struts-Config.xml
No, you can not. But if you want dynamic forward address, then solve it in the Action class :
CODE
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
String dynPath="$$$$$$";
// ...
return new ActionForward(dynPath);
}
Feherke.
http://rootshell.be/~feherke/