How to look up a global forward to get its path attribute

2004-02-18 Thread OFlaherty, Colm
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

Re: How to look up a global forward to get its path attribute

2004-02-18 Thread Hubert Rabago
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

Re: How to look up a global forward to get its path attribute

2004-02-18 Thread Geeta Ramani
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