Hello Rick,


Tuesday, March 11, 2003, 4:48:29 PM, you wrote:

RA> Hello,

RA> Is it possible to get reference to ActionForward object dynamically,
RA> not by giving findForward method it's name?

RA> If Struts-config.xml is following:

RA> <global-forwards>
RA>         <forward name="frontpage" path="/app/login.do?method=showpage"/>

RA> Can I get name frontpage dynamically not hardcoded or is it possible
RA> to use /app/login to create a new ActionForward instance?
RA> Something like

RA> return new ActionForward("/app/login");

Try something like:

 <global-forwards>
         <forward name="frontpage" path="/app/login.do"/>

ActionForward forward = new ActionForward(mapping.findForward("frontpage").getPath());

Then use
   ConvertUtils
from Struts-Scaffold to add your param.

RA> - br





RA> _________________________________________________________________
RA> Surf together with new Shared Browsing 
RA> http://join.msn.com/?page=features/browse&pgmarket=en-gb&XAPID=74&DI=1059


RA> ---------------------------------------------------------------------
RA> To unsubscribe, e-mail: [EMAIL PROTECTED]
RA> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Best regards,
Dirk


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to