*
The moose likes Struts and the fly likes struts2 xml validator error message placement? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 xml validator error message placement?" Watch "struts2 xml validator error message placement?" New topic
Author

struts2 xml validator error message placement?

Tudor Raneti
Ranch Hand

Joined: Nov 29, 2009
Posts: 145
In case of struts 2, how would i make the validation message appear after the username or password field if using xml -validator?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Change the template (or, more cleanly, create a new theme), or do it manually using the "simple" theme.

Although there might be an attribute to control where the error message is displayed; I don't recall.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60732
    
  65

"an wolf", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Tudor Raneti
Ranch Hand

Joined: Nov 29, 2009
Posts: 145
Thanks for the notice. Can someone answer my question?
Also i've just started on struts, don't know about themes, got an example?

this produces the error message above the field targeted ( i actually want the error message to share same line after the field, and done with struts 2 xml validation if possbile):
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

My answer is still the same...
Tudor Raneti
Ranch Hand

Joined: Nov 29, 2009
Posts: 145
Sorry didn't see your answer there. Also i've just started on struts, don't know about themes, anyone got an example on how does a theme change this (i want server side please, no javascript)?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts2 xml validator error message placement?
 
Similar Threads
Action servlet not found
short-circuit attribute not working in validation file
Parameter Entity problem
struts2 field validator type boolean and all possible field types.
Struts Validator framework