You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by EROL TEZCAN <st...@yahoo.com> on 2005/06/10 16:30:36 UTC

enabling server-side validation

Hi,
 
How can I enable server-side validation, in struts applications?
 
For client side validation, I am using <html: errors /> before <html:form > tag, and in <html:form > tag onsubmit="return validateOrderFormBean(this)" , and applying 
<html:javascript formName="orderFormBean"/> 
 
For server-side validation, which changes I need to do?
 
Thanks for all.
 
Erol

		
---------------------------------
Discover Yahoo!
 Get on-the-go sports scores, stock quotes, news & more. Check it out!

Re: enabling server-side validation

Posted by EROL TEZCAN <st...@yahoo.com>.
Thanks Martin,
 
I solved my problem.
 
 
Erol
 


Martin Gainty <mg...@hotmail.com> wrote:
Erol-
a comprehensive tutorial including how to setup struts-config.xml 
validation.xml as well as code can be viewed at
http://www.oracle.com/technology/oramag/oracle/04-jan/o14dev_struts.html
HTH,
Martin-
----- Original Message ----- 
From: "croffman" 
To: "Struts Users Mailing List" 
Sent: Friday, June 10, 2005 10:42 AM
Subject: Re: enabling server-side validation


> In your code in action classes, call the form.validate(mapping, request)
> method
>
> Hope this helps.
>
> ----- Original Message ----- 
> From: "EROL TEZCAN" 
> To: 
> Sent: Friday, June 10, 2005 9:30 AM
> Subject: enabling server-side validation
>
>
>> Hi,
>>
>> How can I enable server-side validation, in struts applications?
>>
>> For client side validation, I am using before >> tag, and in tag onsubmit="return 
>> validateOrderFormBean(this)"
> , and applying
>> 
>>
>> For server-side validation, which changes I need to do?
>>
>> Thanks for all.
>>
>> Erol
>>
>>
>> ---------------------------------
>> Discover Yahoo!
>> Get on-the-go sports scores, stock quotes, news & more. Check it out!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: enabling server-side validation

Posted by Martin Gainty <mg...@hotmail.com>.
Erol-
a comprehensive tutorial including how to setup struts-config.xml 
validation.xml as well as code can be viewed at
http://www.oracle.com/technology/oramag/oracle/04-jan/o14dev_struts.html
HTH,
Martin-
----- Original Message ----- 
From: "croffman" <my...@hotmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Friday, June 10, 2005 10:42 AM
Subject: Re: enabling server-side validation


> In your code in action classes, call the form.validate(mapping, request)
> method
>
> Hope this helps.
>
> ----- Original Message ----- 
> From: "EROL TEZCAN" <st...@yahoo.com>
> To: <us...@struts.apache.org>
> Sent: Friday, June 10, 2005 9:30 AM
> Subject: enabling server-side validation
>
>
>> Hi,
>>
>> How can I enable server-side validation, in struts applications?
>>
>> For client side validation, I am using <html: errors /> before <html:form
>> tag, and in <html:form > tag onsubmit="return 
>> validateOrderFormBean(this)"
> , and applying
>> <html:javascript formName="orderFormBean"/>
>>
>> For server-side validation, which changes I need to do?
>>
>> Thanks for all.
>>
>> Erol
>>
>>
>> ---------------------------------
>> Discover Yahoo!
>>  Get on-the-go sports scores, stock quotes, news & more. Check it out!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: enabling server-side validation

Posted by croffman <my...@hotmail.com>.
In your code in action classes, call the form.validate(mapping, request)
method

Hope this helps.

----- Original Message ----- 
From: "EROL TEZCAN" <st...@yahoo.com>
To: <us...@struts.apache.org>
Sent: Friday, June 10, 2005 9:30 AM
Subject: enabling server-side validation


> Hi,
>
> How can I enable server-side validation, in struts applications?
>
> For client side validation, I am using <html: errors /> before <html:form
> tag, and in <html:form > tag onsubmit="return validateOrderFormBean(this)"
, and applying
> <html:javascript formName="orderFormBean"/>
>
> For server-side validation, which changes I need to do?
>
> Thanks for all.
>
> Erol
>
>
> ---------------------------------
> Discover Yahoo!
>  Get on-the-go sports scores, stock quotes, news & more. Check it out!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org