You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by MyAshok <ta...@gmail.com> on 2008/09/15 16:16:10 UTC

validation problem

hi all,

I am doing validation using LoginAction-validation.xml ( which contains
username and password ).
my jsp having s:textfield name=username and s:password name=password.
when i submit with empty values, its showing username and password required
fielderror message.
But, the issue is, when i again click submit, the old fielderror is appended
with new fielderror message.

What i am doing wrong here.

Please help me, 
I did my core functionalities for my application.
This simple thing is giving headache for me.
I need the solution ASAP.

With regards,
Ashok Kumar
-- 
View this message in context: http://www.nabble.com/validation-problem-tp19493857p19493857.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


RE: validation problem

Posted by Martin Gainty <mg...@hotmail.com>.
tough to determine a solution without seeing your code and configuration parameters
please display the full contents of your jsp
also please display contents of LoginAction-validation.xml

thanks,
Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. 


> Subject: RE: validation problem
> Date: Mon, 15 Sep 2008 10:52:37 -0400
> From: david_kawczynski@merck.com
> To: user@struts.apache.org; takumar.eng@gmail.com
> 
> Try removing any <table> elements nested in the <s:form> tag.
> 
> 
> -----Original Message-----
> From: MyAshok [mailto:takumar.eng@gmail.com] 
> Sent: Monday, September 15, 2008 10:16 AM
> To: user@struts.apache.org
> Subject: validation problem
> 
> 
> hi all,
> 
> I am doing validation using LoginAction-validation.xml ( which contains
> username and password ).
> my jsp having s:textfield name=username and s:password name=password.
> when i submit with empty values, its showing username and password
> required
> fielderror message.
> But, the issue is, when i again click submit, the old fielderror is
> appended
> with new fielderror message.
> 
> What i am doing wrong here.
> 
> Please help me, 
> I did my core functionalities for my application.
> This simple thing is giving headache for me.
> I need the solution ASAP.
> 
> With regards,
> Ashok Kumar
> -- 
> View this message in context:
> http://www.nabble.com/validation-problem-tp19493857p19493857.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or
> MSD and in Japan, as Banyu - direct contact information for affiliates is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and
> then delete it from your system.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
See how Windows connects the people, information, and fun that are part of your life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/

RE: validation problem

Posted by MyAshok <ta...@gmail.com>.
Hi david,

Thanks for quick reply,

The problem was i didn't include s:head in the head tag and i have used the
method="post" in the s:form tag.

Anyhow thanks again for the quick reply.

Ashok kumar.


Kawczynski, David wrote:
> 
> Try removing any <table> elements nested in the <s:form> tag.
> 
> 
> -----Original Message-----
> From: MyAshok [mailto:takumar.eng@gmail.com] 
> Sent: Monday, September 15, 2008 10:16 AM
> To: user@struts.apache.org
> Subject: validation problem
> 
> 
> hi all,
> 
> I am doing validation using LoginAction-validation.xml ( which contains
> username and password ).
> my jsp having s:textfield name=username and s:password name=password.
> when i submit with empty values, its showing username and password
> required
> fielderror message.
> But, the issue is, when i again click submit, the old fielderror is
> appended
> with new fielderror message.
> 
> What i am doing wrong here.
> 
> Please help me, 
> I did my core functionalities for my application.
> This simple thing is giving headache for me.
> I need the solution ASAP.
> 
> With regards,
> Ashok Kumar
> -- 
> View this message in context:
> http://www.nabble.com/validation-problem-tp19493857p19493857.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or
> MSD and in Japan, as Banyu - direct contact information for affiliates is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and
> then delete it from your system.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/validation-problem-tp19493857p19495328.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


RE: validation problem

Posted by "Kawczynski, David" <da...@merck.com>.
Try removing any <table> elements nested in the <s:form> tag.


-----Original Message-----
From: MyAshok [mailto:takumar.eng@gmail.com] 
Sent: Monday, September 15, 2008 10:16 AM
To: user@struts.apache.org
Subject: validation problem


hi all,

I am doing validation using LoginAction-validation.xml ( which contains
username and password ).
my jsp having s:textfield name=username and s:password name=password.
when i submit with empty values, its showing username and password
required
fielderror message.
But, the issue is, when i again click submit, the old fielderror is
appended
with new fielderror message.

What i am doing wrong here.

Please help me, 
I did my core functionalities for my application.
This simple thing is giving headache for me.
I need the solution ASAP.

With regards,
Ashok Kumar
-- 
View this message in context:
http://www.nabble.com/validation-problem-tp19493857p19493857.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


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