This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ActionMapping - findForward() problem

 
Lukas Alamar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

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:

<action-mappings>
<action
path="/selectPo"
type="gest.web.PoSelectAction"
name="poSelectForm"
scope="request"
validate="true"
input="/jsp/poForm.jsp">
<forward name="success" path="/jsp/poResult.jsp" />
<forward name="failure" path="/jsp/poNotFound.jsp" />
</action>
</action-mappings>


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..

thanx
[ June 13, 2005: Message edited by: Lukas Alamar ]
 
Jack Wiesenthaler
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Karl Beowulph
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post your action class?

Does the "success" forward work?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic