• Post Reply Bookmark Topic Watch Topic
  • New Topic

struts 1: message resources can't be found  RSS feed

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!