aspose file tools*
The moose likes Struts and the fly likes Displaying validation error messages only at the top in struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Displaying validation error messages only at the top in struts 2" Watch "Displaying validation error messages only at the top in struts 2" New topic
Author

Displaying validation error messages only at the top in struts 2

aman thind
Ranch Hand

Joined: Jun 29, 2007
Posts: 71
Can we display validation messages anywhere on the page in struts 2.When i use <s:head> it's displaying at everyfield(where validation error is) and if i use<s:fielderror>,it's displaying on the top and on the fields also.Is it possible to display error messages onlt at the top of page.Thanks in advance.


Aman Thind
SCJP,SCWCD
JAVA utte mar JAVA,mit JAVA
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The default theme includes field error messages. If you don't want them, either use the simple theme (creates other issues), or create your own theme.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying validation error messages only at the top in struts 2