A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
ActionMapping - findForward() problem
Joined: Mar 17, 2004
Jun 13, 2005 03:46:00
i want to forward to a
page from my Action class , so i mapped a logical name, say "failure" to a path /jsp/failure.jsp, but when it comes to finding the mapping mapping.findForward("failure") returns null...
here's my action mapping definition:
<forward name="success" path="/jsp/poResult.jsp" />
<forward name="failure" path="/jsp/poNotFound.jsp" />
everything's fine for me but maybe some of you can spot a mistake in the code above or has faced the same problem before..
[ June 13, 2005: Message edited by: Lukas Alamar ]
Joined: Jul 26, 2001
Jun 13, 2005 19:59:00
The config looks fine, perhaps your action class was not found and the action mapping was not processed? Did you get any initialization errors on the console when struts-config was processed?
Joined: May 31, 2004
Jun 14, 2005 18:09:00
Can you post your action class?
Does the "success" forward work?
I agree. Here's the link:
subject: ActionMapping - findForward() problem
Action Form Problem
Struts validation problem..
Another "Validator Plugin" Problem
action mapping for pre-login
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014