• 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 1: message resources can't be found

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Message can't be loaded from properties files. Here is my setting:

In struts-config.xml:


In jsp:


In loggingPage.properties:


In loggingPage_fr.properties:


The two properties files are placed in /WEB-INF/classes/com/mycompany/ folder. The Action class associated with the jsp is in com.mycompany package.

The loging page is rendered OK but just the message is rendered as ???pageTitle???.

Could anyone point out what is going wrong with my settings?

Thanks.
 
James Lee
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Sorry I forgot to mention the versions. I'm using struts 1.3.5 and jstl 1.0.6.

Thanks.
 
James Lee
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did more investigation. I think something wrong with
.

The reason is that I changed it to
but in the view, the message still shows ???pageTitle??? although it should have shown null.

Appreciation for any comments.
 
roses are red, violets are blue. Some poems rhyme and some are 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