Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
how to reset the field after validation using annotations(Struts 2)
harilal ithikkat
Ranch Hand
Posts: 221
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I was trying to do some email validation using annotation.
@EmailValidator(message ="",key="ui.email.invalid")
.
I wanna reset the errorful data from the field at the time of validation.
Can anyone help for the same?
SCJP 1.5
"A candle looses nothing by lighting another candle"
itechmentors.com
David Newton
Author
Posts: 12617
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Reset it to what?
harilal ithikkat
Ranch Hand
Posts: 221
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
i wanna reset it to no value
SCJP 1.5
"A candle looses nothing by lighting another candle"
itechmentors.com
David Newton
Author
Posts: 12617
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Have a "prepare" method that sets it to an empty
string
.
That's not a great idea, though; why would you want their text to disappear? I'd be annoyed if I had to type in my entire email address *again* just because I left out the "@" the first time.
harilal ithikkat
Ranch Hand
Posts: 221
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
that's right.
But its worth knowing.Thats why
Thank you man
SCJP 1.5
"A candle looses nothing by lighting another candle"
itechmentors.com
Tick check! Okay, I guess that was just an itch. Oh wait! Just a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
"file " field getting reset on click of submit
Problem in Reset button.
Validating file extension problem
Reset the form to Null or Reload the page using reset even after a submit
"file" field getting reset on clicking submit
More...