You have to add a line to your struts-config pointing to your
message-resources:

    <message-resources parameter="ApplicationResources" null="false"/>

  (be carefull with typos)

  If your using fmt... for the default bundle to point to the same struts
default message bundle, add this to your web.xml:

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

Pedro


On 11/10/04 4:15 am, "Dean Hiller" <[EMAIL PROTECTED]> wrote:

> sorry, but when searching list, I get the error "Text search not available for
> this list "
> 
> which I wasn't getting the other day, so I could not search the archives.
> 
> I am still getting "Cannot find message resources under key
> org.apache.struts.action.MESSAGE"
> 
> How is i18n supposed to be setup?  I was just following an old tutorial on the
> subject and following the sample app of which web.xml had the following....
> 
> <servlet>
>    <servlet-name>action</servlet-name>
> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> <init-param>
>    <param-name>config</param-name>
> <param-value>/WEB-INF/struts-config.xml</param-value>
> </init-param>

  this line I donšt understand... ->

> <init-param>
>    <param-name>application</param-name>
> <param-value>ApplicationResources</param-value>
> </init-param>

  ... <-

> <load-on-startup>1</load-on-startup>
> </servlet>
> 
> and yes, ApplcationResource.properties exists and the case is correct in
> <webapp>/WEB-INF/classes directory.
> 
> I do notice something about the resources file only being set if
> checkPageScope is true.  Anybody know if this is a bug?
> thanks for any help on this,
> dean


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

Reply via email to