Okay, apparently I can't read.  It was a <bean:message> tag, not a
<bean:write> tag!  Since <bean:message> WAS ported to Struts-EL, I
assume that there is something you can do with <bean:message> that you
cannot do with <fmt:message>. What would that be?

I'm trying to use as many JSTL tags as possible, and I generally use the
Struts-EL README.txt file to tell me what I should use.  In this case,
the README.txt file would have led me to use the Struts-EL tag when
there is an equivalent JSTL tag.

I'm not entirely conviced that I even _need_ to put labels in a
.properties file.  Is i18n the only reason to do so?  I'm 99.9% sure
this webapp will *never* need to be displayed in other than English.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

-----Original Message-----
From: Kris Schneider [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 14, 2003 4:36 PM
To: Struts Users Mailing List
Subject: Re: Bean:write to c:out conversion for something in .properties
file


Put the following in web.xml:

<context-param>
 
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
   <param-value>ApplicationResources</param-value>
</context-param>

and then use:

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

<fmt:message key="prompt.username"/>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to