Nothing to do with Struts. From the JSTL spec for <fmt:message>:

If the i18n localization context that this action determines does not have any
resource bundle, an error message of the form "???<key>???" is produced.

Try this:

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

Quoting [EMAIL PROTECTED]:

> 
> 
> 
> 
> 
> I've only seen that when struts can't find the resource file or the key...
> 
> Savan Thongvanh
> Berkley Technology Services
> 515.278.7725
> 
> 
>                                                                              
>                                                                
>                       "Yansheng Lin"                                         
>                                                                
>                       <[EMAIL PROTECTED]        To:       "'Tag Libraries
> Users List'" <[EMAIL PROTECTED]>                      
>                       gis.com>                 cc:                           
>                                                                
>                                                Subject:  Jstl i18n not
> working                                                               
>                       11/10/2003 11:00                                       
>                                                                
>                       AM                                                     
>                                                                
>                       Please respond to                                      
>                                                                
>                       "Tag Libraries                                         
>                                                                
>                       Users List"                                            
>                                                                
>                                                                              
>                                                                
>                                                                              
>                                                                
> 
> 
> 
> 
> 
> Hi, in my web.xml:
> 
>   <!-- ==================== JSTL i18n support ===========================
> -->
>   <context-param>
>     <param-name>javax.servlet.jsp.jstl.fmt.fall-backLocale</param-name>
>     <param-value>en</param-value>
>   </context-param>
>   <context-param>
>     <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
>      <param-value>ApplicationResources.properties</param-value>
>   </context-param>
> 
> Then in my jsp:
> 
>     <fmt:bundle basename="ApplicationResources">
>       <fmt:message key="j2emain.title" />
>     </fmt:bundle>
> 
> But I am getting the following output:
>              ???j2emain.title???
> 
> Help appreciated!
> 
> -Yan

-- 
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