File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "can�t find Message Resources" Watch "can�t find Message Resources" New topic

can�t find Message Resources

Danilo Balarini

Joined: Sep 26, 2005
Posts: 2

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, and, 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

Joined: Dec 11, 2004
Posts: 13410

Please check your private messages.

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?

Consultant, Sima Solutions
Danilo Balarini

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:
subject: can�t find Message Resources
It's not a secret anymore!