struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramil Mirhasanov" <ramil.mirhasa...@dolunay.com.tr>
Subject Re: .properties file
Date Thu, 01 Apr 2004 15:02:12 GMT
I have chosen the problem like this, after surfing net  a little bit,
I added :

<servlet>
  <servlet-name>action</servlet-name>
  <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
     <init-param>
       <param-name>application</param-name>
       <param-value>mypackage.ApplicationResources</param-value>
     </init-param>
  <.../>
</servlet>
to web.xml

And created  mypackage.ApplicationResources.properties file.



----- Original Message ----- 
From: "Brendan Richards" <brendan@designuk.com>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, April 01, 2004 5:42 PM
Subject: RE: .properties file


> This is configured towards the bottom of the struts-config.xml file
> 
> For Example:
> <message-resources parameter="resources.application"/>
> 
> maps the default resources file:
> 
> resources/application.resources
> 
> 
> 
> -----Original Message-----
> From: Ramil Mirhasanov [mailto:ramil.mirhasanov@dolunay.com.tr] 
> Sent: 01 April 2004 15:31
> To: struts-user@jakarta.apache.org
> Subject: .properties file
> 
> I am using Jbuilder9 Enterprise and trying to buid my 1.  example
> application with struts.
> 
> The problem is, I do not know which ".properties" file to create in 
> order to be able to write: 
> 
> <bean:message key="index.title"/>
> 
> javax.servlet.ServletException: Cannot find message resources under key
> org.apache.struts.action.MESSAGE
> exception is given.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

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


Mime
View raw message