If I change as you mention, I get the following error: [ERROR] - Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Missing message for key "" in bundle "(default bundle)" for locale en_US
Any idea? Thanks, semaj nuwan chandrasoma-2 wrote: > > <bean-el:message > key="${stringvar}"/>http://struts.apache.org/1.3.8/struts-el/index.html----- > Original Message ----- > From: "semaj.najraham" <[EMAIL PROTECTED]> > To: <user@struts.apache.org> > Sent: Friday, July 13, 2007 5:49 AM > Subject: Re: How to display message from resource bundle using Struts EL > tags > > >> >> Any idea, guys!! >> >> semaj.najraham wrote: >>> >>> I have the following jsp: >>> >>> <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> >>> <%@ page import="com.messages.Constants" %> >>> >>> <bean:message key="<%=Constants.SECTION_TITLE %>" /> >>> >>> where Constants.java contains the following containts >>> >>> public static final String SECTION_TITLE = "section.title"; >>> >>> and key/value is defined in MessageResources.properties file as >>> section.title=Add User >>> >>> How can I get the same functionality using Struts EL tag? >>> >>> Thank you, >>> semaj >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-display-message-from-resource-bundle-using-Struts-EL-tags-tf4069659.html#a11573783 >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/How-to-display-message-from-resource-bundle-using-Struts-EL-tags-tf4069659.html#a11583823 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]