Yep, I tried this but creating a new ActionForward instance and returning it from Action's execute method caused endless recursion!
I use also tiles, can tiles cause this kind of recursion trouble? My Struts version is 1.1 b2. Has anyone any hint what could cause this recursion and where to start to trace the reason?
I have struggled 4 days with this problem...
br
From: "Zheng, Gang" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> Subject: RE: Getting reference to ActionForward dynamically how????? Date: Tue, 11 Mar 2003 11:38:19 -0500
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]
_________________________________________________________________ Chat online in real time with MSN Messenger http://messenger.msn.co.uk
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]