File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes can�t find Message Resources Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "can�t find Message Resources" Watch "can�t find Message Resources" New topic
Author

can�t find Message Resources

Danilo Balarini
Greenhorn

Joined: Sep 26, 2005
Posts: 2
Hello

I�m new to struts, just learning, but having problems. Every time i try to use the Message Resources, i get the same error.
I made an MessageResources.properties, MessageResources_pt.properties and MessageResources_pt_BR.properties, all the same

Here�s the struts config


Here�s my MessageResources (inside package examples)


And i call my test-message.jsp


But i always get this error:


All help is welcome
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"Pakalolo",
Please check your private messages.
-Ben


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Your message properties files must be in the directory WEB-INF/classes/examples. Are they?


Merrill
Consultant, Sima Solutions
Danilo Balarini
Greenhorn

Joined: Sep 26, 2005
Posts: 2
No, they aren�t.

I�m using Eclipse, so it puts the message in the /build/classes/examples. Is that bad?

Edit: Anyway, now it�s working, thanks.
[ March 13, 2008: Message edited by: Danilo Balarini ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can�t find Message Resources