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:
Tim Cooke
Campbell Ritchie
paul wheaton
Ron McLeod
Devaka Cooray
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Paul Clapham
Saloon Keepers:
Tim Holloway
Carey Brown
Piet Souris
Bartenders:
Forum:
Struts
struts 2 validation
Bunty Paul
Greenhorn
Posts: 28
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I did some validation for the fields in my
JSP
using
struts
2 taglib.
It uses field validator which displays the actionerrors above every field.
But i want to specify that actionerrors be displayed only at the top of the page. How can i do this.
Reda Mokrane
Ranch Hand
Posts: 237
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
At the top of the page add <s:actionerror />
hope this help.
Bunty Paul
Greenhorn
Posts: 28
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thank you Reda Mokrane.
It helps, for actionerrors. But i need to change my fielderrors to actionerrors. And that definitely gives me pain.
Ok thats how the struts 2 has been designed. What can we do? Oops!
Bunty Paul
Greenhorn
Posts: 28
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hey, I have figured out the solution.
Thank me, there was a solution.
just set the theme attribute of the form to the value 'simple'.
for example:
<code>
<s:form action="myaction.do" theme="simple">
</code>
It's that simple !!!
palas das
Greenhorn
Posts: 9
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Actually I have created one action class , one jsp,two field for input,and one validation.xml file. field-validator type="requiredstring"> for this line in the xml file anything I have to do or not?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Trouble with Struts
<html:errors /> not viewing
Struts framework
Custom Validations in Struts Validator Framework?
Validation in Struts 2
More...