Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaying validation error messages only at the top in struts 2

 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic