Dennis wrote: > I haven't been able to find a question regarding this particular > circumstance, so hopefully this isn't in an FAQ somewhere! > > In my Action subclass, rather than returning the results of > mapping.findForward(...) I need to forward to a page determined at runtime. > What is the *proper* way to forward to xxx.jsp? Should I construct an > ActionForward? (tried that unsuccessfully). > When I need this, I just create a new ActionForward dynamically: String path = ... create context-relative path to new page ... return (new ActionForward(path)); The path you calculate must be context relative and start with a slash, exactly like the "path" attributes to your standard <forward> elements. > > Thanks for any help, > > Dennis Craig
- Re: When Oh When Do We Validate? Jim Newsham
- Re: When Oh When Do We Validate? Craig R. McClanahan
- Re: Moving from 0.5 to 1.0: an experience, and design ... Craig R. McClanahan
- Re: Moving from 0.5 to 1.0: an experience, and de... Pierre Métras
- Old questions that die hard Jim Richards
- Re: Old questions that die hard Ted Husted
- Re: Old questions that die hard Jim Richards
- Re: Old questions that die hard Jim Richards
- Re: Old questions that die hard Ted Husted
- Proper way to 'forward' dynamically Dennis
- Please unsubscribe adeniji@computer.org Craig R. McClanahan
- Please unsubscribe adeniji@computer.org Kenny Adeniji
- Re: Old questions that die hard Andrew Collins
- RE: Old questions that die hard Verratti, David
- Re: Old questions that die hard Maya Muchnik
- can we remove this user from the list ? Maya Muchnik
- Re: can we remove this user from the list ? Craig R. McClanahan
- RE: Old questions that die hard Verratti, David
- Re: Old questions that die hard Maya Muchnik
- Re: Old questions that die hard Craig R. McClanahan
- Re: Old questions that die hard David Winterfeldt