Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem using <fmt:message>, instead of <bean:message>

843838Dec 5 2005 — edited Dec 5 2005
I'm changing my bean: message tags to fmt:message as I need to pass parameters and according to direction I've received I'm supposed to use fmt instead of bean as we may eventually need to internationalize our messages.

When I view my JSP, the value of <fmt:message key="myMessage"> I see ???myMessage??? instead of the value that is in my MessageResources.properties file (which is properly defined in my struts-config.xml file). If I use the bean:message tag, the value shows properly, but when I use the fmt:message tag it acts like it can't find the message in the MessageResources.properties file. Yes I have the fmt taglib defined at the top of the JSP page:

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

I'm using Tomcat 5.5.12. I have other JSTL tags (c:out) that work OK.

Any help would be greatly appreciated!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 2 2006
Added on Dec 5 2005
2 comments
496 views