Re: Validate question - forwarding to action rather than"input jsp" page

2002-01-31 Thread Brian Holzer

If you want to forward to an action, then specify the action ( input="/actionname.do") 
instead of a jsp.

>>> [EMAIL PROTECTED] 01/31/02 01:27am >>>
Hi

I want to use the validate functionality in a Form.  What I want to know is if an non 
empty ActionErrors object is
returned does it always get forwarded to a jsp page?  I actually want it rather than 
getting forwarded to a jsp page
to be forwarded to an action.  Can I do this somehow using the validate functionalty 
in the Form?


-- 


Cheers

Tony
-


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Validate question - forwarding to action rather than "input jsp" page

2002-01-31 Thread Antony Stace

If the user has entered some valid data in the form and I want to save it and pass 
this to
the "" destination specified in the struts-config.xml file how can I save this 
data
and retrive it in the "" destination action?
 


On Thu, 31 Jan 2002 08:06:43 -0500
Ted Husted <[EMAIL PROTECTED]> wrote:

> "Validate the properties that have been set for this non-HTTP request,
> and return an ActionErrors object that encapsulates any validation
> errors that have been found. If no errors are found, return null or
> an ActionErrors object with no recorded error messages."
> 
> Emphasis added.
> 
> http://jakarta.apache.org/struts/api-1.0/org/apache/struts/action/ActionForm.html
> 
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Java Web Development with Struts.
> -- Tel +1 585 737-3463.
> -- Web http://www.husted.com/struts/
> 
> 
> Antony Stace wrote:
> > 
> > Hi
> > 
> > I want to use the validate functionality in a Form.  What I want to know is if an 
>non empty ActionErrors object is
> > returned does it always get forwarded to a jsp page?  I actually want it rather 
>than getting forwarded to a jsp page
> > to be forwarded to an action.  Can I do this somehow using the validate 
>functionalty in the Form?
> > 
> > --
> > 
> > Cheers
> > 
> > Tony
> > -
> > 
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


-- 


Cheers

Tony
-


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Validate question - forwarding to action rather than "input jsp" page

2002-01-31 Thread Ted Husted

"Validate the properties that have been set for this non-HTTP request,
and return an ActionErrors object that encapsulates any validation
errors that have been found. If no errors are found, return null or
an ActionErrors object with no recorded error messages."

Emphasis added.

http://jakarta.apache.org/struts/api-1.0/org/apache/struts/action/ActionForm.html

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/


Antony Stace wrote:
> 
> Hi
> 
> I want to use the validate functionality in a Form.  What I want to know is if an 
>non empty ActionErrors object is
> returned does it always get forwarded to a jsp page?  I actually want it rather than 
>getting forwarded to a jsp page
> to be forwarded to an action.  Can I do this somehow using the validate functionalty 
>in the Form?
> 
> --
> 
> Cheers
> 
> Tony
> -
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Validate question - forwarding to action rather than "input jsp" page

2002-01-30 Thread Antony Stace

Hi

I want to use the validate functionality in a Form.  What I want to know is if an non 
empty ActionErrors object is
returned does it always get forwarded to a jsp page?  I actually want it rather than 
getting forwarded to a jsp page
to be forwarded to an action.  Can I do this somehow using the validate functionalty 
in the Form?


-- 


Cheers

Tony
-


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: