Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 Validation

 
priyam sengupta
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am having a problem with the positioning of the error messages using struts 2 validation. they are displayed on the top of the text field for which i have written the validation. Is there any way to change the positioning of the error messages to the right hand side of the text field which is my requiremnt. I have tried modifying the struts 2 core.jar file but i couldnt find anything related with positioning of the messages. The least i could do was changing the color of the error message by changing the controlheader-core.ftl file. Any help will be greatly appreciated..
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're on the right track, although I'd suggest it might be easier to create your own theme and work from that. You can also extract the FreeMarker files instead of unjar-ing and re-jar-ing the S2 libs.

I suspect you just didn't modify the relevant files correctly; it's all in there though. Off the top of my head I don't recall which file it is.

PS: The Struts-DEV mailing list is for the development of Struts itself, not user questions. Please use the Struts-USER mailing list for your own development questions.

Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic