Yves Sy wrote:
What do you mean "failure"? You explicitly return
mapping.findForward("failure")? Or do you mean when the validate
method in ActionForm fails?

Actually both, in my code when the validate is false, then it comes back to the MemberAction controller and I do explicitity call:
return mapping.findForward("failure");



And what's the path of the page where you're being redirected?

it should be redirecting to: path="/membership/membership_ee.jsp" as defined by: <forward name="failure" path="/membership/membership_ee.jsp"/>

This is the page where the user entered the wrong data, and I want to redirect them back to that page.

Instead, I end up getting sent to another page that's:
"../message_president/default.jsp"

It expects this page is located in this directory, but it doesn't and I don't want to forward to here anyway. The directory and page do exist, but elsewhere in the web-site and it not related to my membership information.

I tried to find if something was mis-configured, but I can't find out what. I'll keep working to figure it out even if I have to go back to something simpler to make it work.

Thanks for the information.

                             Tom


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



Reply via email to