This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 9137
    
    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]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Change <s:form> simple theme to show validation errors in struts2
 
jQuery in Action, 3rd edition