Do you have an entry like the following in web.xml:

<web-app>
  ....
  <context-param>
    <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
    <param-value>Messages</param-value>
  </context-param>
  ....
</web-app>

This sets up a default resource bundle (WEB-INF/classes/Messages.properties) for
JSTL's fmt tags.

Quoting Lorenzo Sicilia <[EMAIL PROTECTED]>:

> Hi to all,
> 
> I have search in ML archive but I don't found any post about that.
> 
> I have this snipets:
> <%-- sending confirm mail --%>
> <mt:mail>
>       <mt:server>mail.xxxx.it</mt:server>
>       <mt:from>[EMAIL PROTECTED]</mt:from>
>       <mt:subject><fmt:message key="mail.subject" /></mt:subject>
>       <mt:setrecipient type="to"><c:out value="${user.email}" 
> /></mt:setrecipient>
>       <mt:message type="text">
>               <fmt:message key="mail.text.header" /><br/>
>               <fmt:message key="user.full_name" /><c:out 
> value="${user.full_name}"/><br/>
>               <fmt:message key="user.nick_name" /><c:out 
> value="${user.nick_name}"/><br/>
>               <fmt:message key="user.pswd"      /><c:out value="${user.pswd}"/><br/>
>               TODO: altri dati a piacere<br/>
>               <c:out value="${user.email}" />
>               <fmt:message key="welcome" />
>               <fmt:message key="mail.text.footer" />
>       </mt:message>
>       <mt:send>
>               <mt:error id="error_mail" >
>               </mt:error>
>       </mt:send>
> </mt:mail>
> 
> The mail is send fine but <fmt:message> cannot be resolved.
> 
> The email output is:
> ???mail.text.header???<br/>
> ???user.full_name???full_name<br/>
> ???user.nick_name???arnor3<br/>
> ???user.pswd???123456789<br/>
> TODO: altri dati a piacere<br/>
> [EMAIL PROTECTED]
> ???welcome???
> ???mail.text.footer???
> 
> I use http://jakarta.apache.org/taglibs/mailer-1.1
> 
> Any idea?
> 
> regards Lorenzo Sicilia
> 
> --
> KEMEN srl
> http://www.kemen.it

-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech       <http://www.dotech.com/>

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

Reply via email to