You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Abdelouahab Chetbani <Ab...@valtech.fr> on 2002/07/21 17:53:43 UTC

Cannot find message resources under key org.apache.struts.action. MESSAGE

		Hi all,
> 	I've installed struts running under WSAD. 
> 	When I try this url <http://localhost:8080/struts-example/index.jsp>
> I get the following servlet exception: 
> 	javax.servlet.ServletException: Cannot find message resources under
> key org.apache.struts.action.MESSAGE 
> 	I'm a beginner and am not sure what's going on. 
> 	Any help would be greatly appreciated. 
> 	Nadjim
> 
> 
========================================================================= 
Ce message et toutes les pièces jointes sont propriété de VALTECH et 
susceptibles de contenir des informations confidentielles à l'intention 
exclusive de ses destinataires. Si vous avez reçu ce message par erreur 
ou si celui ci vous est parvenu incomplet ou altéré, merci d'en avertir 
l'expéditeur par retour.Toute utilisation, diffusion ou publication non 
expressément autorisée par nous par écrit est strictement interdite. 
 -------------------------------------------------------------------------- 
This message and any attachments are Valtech property and may contain 
iconfidential information intended solely for the addressees. If your are 
not the intended recipient of this message or if you have received it 
uncomplete or altered, please notify the author by replying to his e-mail 
immediately. Any unauthorised use, diffusion or dissemination not 
expressly authorised by us in writing is strictly prohibited. 
========================================================================= 
Copyright Valtech 2002 



nested:iterate nested colletions

Posted by James Krygowski <ja...@shaws.com>.
Hi -

I'm trying to work out the usage of the nested:iterate tag.  I have three
beans, one called report which contains an array list of years.  The year
bean contains an array list of weeks.  each bean has a get method that
returns an object array.

This is my markup:

<nested:nest property="reportForm"/>
Report Name: <nested:write property="reportName"/>
<nested:iterate property="year">
    <nested:write property="yearname"/>
	<nested:iterate property="week">
		<nested:write property="weekname"/>
	</nested:iterate> <!-- week -->
</nested:iterate> <!-- year -->
</nested:nest>

when i run this code, i get the following error:

javax.servlet.ServletException: No getter method for property year[0].week
of bean reportForm

why am i getting this error?

thanks,

jim


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Cannot find message resources under key org.apache.struts.action.MESSAGE

Posted by Badri <ba...@patni.com>.
Hi
If your Properties file is installed in the classes directory inside
web-inf, then give the exact path in the classpath till classes folder.
(Since I am using tomcat, I am giving this example) Eg:
E:\tomcat\jakarta-tomcat3.2.4\webapps\strutsapplication\WEB-INF\classes
Place the properties file in this folder. Give the exact classpath for
Struts.jar. Also mention this in web.xml
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
Here ApplicationResources is name of my properties file. So you can mention
your properties file name here.
Then restart the server.
I hope this should solve your problem.

Regards
D.Badrinarayanan



-----Original Message-----
From: Abdelouahab Chetbani [mailto:Abdelouahab.Chetbani@valtech.fr]
Sent: Sunday, July 21, 2002 9:24 PM
To: 'struts-user@jakarta.apache.org'
Subject: Cannot find message resources under key
org.apache.struts.action.MESSAGE


		Hi all,
> 	I've installed struts running under WSAD.
> 	When I try this url <http://localhost:8080/struts-example/index.jsp>
> I get the following servlet exception:
> 	javax.servlet.ServletException: Cannot find message resources under
> key org.apache.struts.action.MESSAGE
> 	I'm a beginner and am not sure what's going on.
> 	Any help would be greatly appreciated.
> 	Nadjim
>
>
=========================================================================
Ce message et toutes les pièces jointes sont propriété de VALTECH et
susceptibles de contenir des informations confidentielles à l'intention
exclusive de ses destinataires. Si vous avez reçu ce message par erreur
ou si celui ci vous est parvenu incomplet ou altéré, merci d'en avertir
l'expéditeur par retour.Toute utilisation, diffusion ou publication non
expressément autorisée par nous par écrit est strictement interdite.
 --------------------------------------------------------------------------
This message and any attachments are Valtech property and may contain
iconfidential information intended solely for the addressees. If your are
not the intended recipient of this message or if you have received it
uncomplete or altered, please notify the author by replying to his e-mail
immediately. Any unauthorised use, diffusion or dissemination not
expressly authorised by us in writing is strictly prohibited.
=========================================================================
Copyright Valtech 2002




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>