• 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 Message-Resources

 
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Friends ,

In my team when i joined the struts-config had already been written , I am able to understand each and every element what it has been used for , However , the attribute in <message-resources> element which states null="false". I dont know why this attrib has been written and what it does..

Can someone shred some light on this please ?

Thanks in Advance
Yogendra Joshi.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A good source to go to for questions about the struts-config file is the DTD itself:

http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd

It's very well commented and will tell you about each element and attribute. Here's what it says about the null attribute in <message-resources>:

Set to "true" if you want our message resources to return a null string for unknown message keys, or "false" to return a message with the bad key value.



This means that null="true" causes a <bean:message> tag with a bad key to show nothing on the page. A null="false" entry causes a bad key to show as ??bad.key??.
[ September 29, 2006: Message edited by: Merrill Higginson ]
 
Yogendra Joshi
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh Ok..

That was so easy explaination by Merrill...

I really like your explainations Merrill.. Thanks for helping us so fast.

Best regards ,

Yogendra Joshi.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're very welcome. Good luck with your project.
reply
    Bookmark Topic Watch Topic
  • New Topic