tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <k...@dotech.com>
Subject Re: mail and fmt:message
Date Fri, 13 Aug 2004 15:16:03 GMT
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 <arnor@kemen.it>:

> 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>info@xxxx.com</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/>
> arnor@kemen.it
> ???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:kris@dotech.com>
D.O.Tech       <http://www.dotech.com/>

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


Mime
View raw message