I have the following entry in my struts-config.xml file:
global-forwards
forward name=login path=/public_login.do/
...
/global-forwards
In a Tag Library, I have a String login, and I want to get the string
/public_login.do (ie, I want to look up the global forward to see the
Haven't tried this yet myself, but maybe you can:
ModuleConfig moduleConfig = RequestUtils.getModuleConfig(pageContext);
ForwardConfig forward = moduleConfig.findForwardConfig(login);
String path = forward.getPath();
RequestUtils has been refactored in the nightly build/Struts 1.2 so
I know the following works if you have access to a mapping object (as within
perform/execute):
mapping.findForward(login).getPath();
So maybe you can simply create a new instance of an actionMapping and so forth..?
Regards,
Geeta
OFlaherty, Colm wrote:
I have the following entry in my
3 matches
Mail list logo