• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts 2 Validation

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic