To forward to the "failure" page try using mapping.getInputForward(); It is better than defining a failure forward everytime and is less error-prone.
Pedro Salgado On 26/9/04 4:11 pm, "Yves Sy" <[EMAIL PROTECTED]> wrote: > What do you mean "failure"? You explicitly return > mapping.findForward("failure")? Or do you mean when the validate > method in ActionForm fails? > > And what's the path of the page where you're being redirected? > > -Yves- > > On Sat, 25 Sep 2004 13:03:58 -0400, Tom Holmes Jr. <[EMAIL PROTECTED]> wrote: >> I've been working on this Member pages for a short time now, and it used >> to be that when the data didn't validate from the formbean, it would >> return to the correct page to allow the user to fix the data. When the >> data is entered correctly, the data does gets filed to the database, and >> the user is returned to the correct page saying that data has been >> filed. Here is the action mapping: >> >> <action path="/membership_ee" >> type="com.tjh.csaa.beans.MemberAction" >> name="memberNewForm" >> scope="request" >> input="/membership/membership_ee.jsp" >> validate="true"> >> <forward name="failure" path="/membership/membership_ee.jsp"/> >> <forward name="success" path="/membership/membership_created.jsp"/> >> >> This hasn't changed at all, and it used to work fine. And it still does >> work if the return is "success". But, when I return "failure", I get >> re-directed to some other page that doesn't exist in this directory. I >> don't know why it would start doing that all of a sudden? >> >> Any help would be much appreciated. Thanks! >> >> Tom >> >> --------------------------------------------------------------------- >> 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]