This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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 Head First Android 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: 9126
    
    9

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.


[How To Ask Questions On JavaRanch]
 
Don't get me started about those stupid light bulbs.
 
subject: Change <s:form> simple theme to show validation errors in struts2
 
It's not a secret anymore!