providing you perform the validation in your ActionForm method:

public ActionErrors validate (ActionMapping mapping, HttpServletRequest
request)
{
        // stuff
}

-----Original Message-----
From: Mohan Radhakrishnan [mailto:MohanR@;hclcomnet.co.in]
Sent: 07 November 2002 12:59
To: 'Struts Users Mailing List'
Subject: RE: Return to same JSP


Hi,
   Thanks. I though it was automatic ?
bye,
Mohan

-----Original Message-----
From: Max Kutny [mailto:mkut@;umc.com.ua]
Sent: Thursday, November 07, 2002 6:13 PM
To: Struts Users Mailing List
Subject: Re: Return to same JSP



 MR> Hi, If I return a non-empty ActionError from my validate method,
 MR> struts should return to the same JSP. This will happen if I specify
 MR> the input parameter for the action mapping.

 MR> Is this right ? It doesn't seem to work that way. Am I missing
 MR> something ?

You should use
return new ActionForward(mapping.getInput());

-- 
Max Kutny

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to