Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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 jsp 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?
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: ActionMapping - findForward() problem
Another "Validator Plugin" Problem
Action Form Problem
action mapping for pre-login
Struts validation problem..
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013