struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "semaj.najraham" <semaj.najra...@hotmail.com>
Subject How to display message from resource bundle using Struts EL tags
Date Thu, 12 Jul 2007 17:29:42 GMT

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#a11564926
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message