Here is the content of my properties file:
*********************************************
prompt.hello=Message from Session Bean
prompt.hello.heading=<h1>Sample page just to see the
working of session with struts</h1>
errors.footer=</ul><hr>
errors.header=<h3><font color="red">Page
Validation</font></h3>Please correct the following
error(s) before contiuing:<ul>
error.homelookup.jndi=Problem Finding the JDNI name
error.getInitialContext.Context=Problem in getting the
Context.
hello.title=To Display Hello Message
*************************************************

--- sampath kanakaraju <[EMAIL PROTECTED]> wrote:
> Hi i am getting the following error using the
> Resource
> file. Has anyone come across this error. 
> 
> Missing message for key hello.title:
> 
> My JSp file uses the bean.tld and is as follows:
> ************************************************
> <html>
> <head>
> <title>
>       <struts-bean:message key="hello.title"/>
> </title>
>       <struts:base />
> </head>
> 
> 
> This is my setting in the web.xml file:
> *********************************************
> <servlet>
>         <servlet-name>action</servlet-name>
>        
>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>         <init-param>
>             <param-name>application</param-name>
>            
> <param-value>app.ApplicationResources</param-value> 
>  
>         
>         </init-param>
>         <init-param>
>             <param-name>config</param-name>
>            
>
<param-value>/WEB-INF/struts-config.xml</param-value>
>         </init-param>
>         <init-param>
>             <param-name>debug</param-name>
>             <param-value>2</param-value>
>         </init-param>
>         <init-param>
>             <param-name>detail</param-name>
>             <param-value>2</param-value>
>         </init-param>
>         <init-param>
>             <param-name>validate</param-name>
>             <param-value>true</param-value>
>         </init-param>
>         <load-on-startup>1</load-on-startup>
>     </servlet>
> 
> 
> And my ApplicationResources.properties file is under
> the following directory structure:
> *************************************************
> WEB-INF/classes/app/ApplicationResources.properties
> 
> 
> 
> And i still can find the hello.title key in the
> properties file.
> could anyone help.
> thanx
> sampath
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great
> prices
> http://auctions.yahoo.com/


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to