struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Ventura <>
Subject Display key itself when not found in MessageResources
Date Tue, 17 Jun 2003 14:02:54 GMT
Been searching the archives, but with little luck. I even found a
thread about this
but it didn't have an answer, so I'm reposting.

If I use <bean:message key="foo"/> and "foo" is not present
in my application resources file, the tag throws an exception
(stack trace at the end). I wanted it to display "foo" itself.

Can I create a class that extends PropertyResourceBundle (or
whatever) that does not throw a MissingResourceException, and
specify it in my web.xml file like this?


Unfortunately, I'm stuck with Struts 1.0.2 for the time being :(

- ventura

P.S. Here's the exception stack trace if anyone cares.

javax.servlet.jsp.JspException: Missing message for key Minhas Atividades
 at org.apache.struts.taglib.bean.MessageTag.doStartTag(
 at org.apache.jasper.runtime.HttpJspBase.service(
(Does anyone really cares about the rest :))) ?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message