To dynamically create an ActionForward instance, you just call the constructor of the ActionForward class.
Here's what I did from within my log-in action: String path="/defaultPage.do?action=new"; ActionForward forward = new ActionForward(path, true); return forward; - GZ -----Original Message----- From: Rick Ashley [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:48 AM To: [EMAIL PROTECTED] Subject: Getting reference to ActionForward dynamically how????? Hello, Is it possible to get reference to ActionForward object dynamically, not by giving findForward method it's name? If Struts-config.xml is following: <global-forwards> <forward name="frontpage" path="/app/login.do?method=showpage"/> Can I get name frontpage dynamically not hardcoded or is it possible to use /app/login to create a new ActionForward instance? Something like return new ActionForward("/app/login"); - br _________________________________________________________________ Surf together with new Shared Browsing http://join.msn.com/?page=features/browse&pgmarket=en-gb&XAPID=74&DI=1059 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]