• 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

Internationalization of messages coming from server side

 
Ranch Hand
Posts: 51
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I have to do server side validations and I am returning String values like "this field is empty/null sth sth". I want to apply internationalization in struts.
Currently I am using

I am passing this as request and displaying in the jsp pages.
What I am getting right now is a empty/blank message.
I have tried various ways of passing but still getting the similar results.

Can you please suggest how to apply message beans via server side.


Thanks,
Vivek Agrawal
 
Vivek Kr Agrawal
Ranch Hand
Posts: 51
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please allow me to clarify once again.
I am doing a complex validation at the server side. The error_message will be generated depending on the various scenarios of validation. This error_message will contain some field names(Name,DOB,sth) and standard text("is empty,is not required,can not be same").
Now I am sending this error message back to the jsp page as request.setAttribute/request.getSession.setAttribute which is working fine.
The cause of concern is that I want to apply internationalization in this error message which is coming from the server side.
Please let me know how to do that?
 
It would give a normal human mental abilities to rival mine. To think it is just a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic