This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Change <s:form> simple theme to show validation errors in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Change <s:form> simple theme to show validation errors in struts2" Watch "Change <s:form> simple theme to show validation errors in struts2" New topic
Author

Change <s:form> simple theme to show validation errors in struts2

Jibin Najeeb
Greenhorn

Joined: Nov 27, 2012
Posts: 6
Hey all,
I am new in struts. I want to display validated error messages above each and every field. The default <s:form> is generating a table automatically. So Design is changing. So i have to keep it in simple theme. But also i wanna show Validation errors for each field without affect design.. Is there any way to change the form theme for validation manually. Please HeLp..
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8843
    
    7

You can create your own theme. Here is the documentation for the themes provided with Struts 2 and here is a tutorial on how to create and use custom themes.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Change <s:form> simple theme to show validation errors in struts2
 
Similar Threads
how to design a form for a real life application
Struts 2, checking for field errors and then changing the target of a form
Struts 2.1 javascript field validate
problem in field validation
generating table from s:form