• 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

show message from resource file.

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
hope you be fine.
I should show some message in a jsp file based on user inputs on last page
but the problem is that i can not use a formBean for this (the content is dynamic and i have some other task in the page)

I saw that html:message could be very usefull .but how i can tell it to read data from my application.resource ? (based on keys that i add to my session object)

if this way is not a good way , the can you help me with another way ?


Thank you very much.
 
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I dont kwow why u are confused, if u are sure of all the cases where u need to display the messages then u can directly go for <bean:message key=""/>.... by using some <logic:equal> and <logic:notEqual> tags......

r else u can add that key in the backend using new ActionMessage and then display in the jsp using <html:messages/>
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic