You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ronald Haring <Ha...@furore.com> on 2002/03/11 13:49:06 UTC

RE: Where do I start to solve this error message: 'Cannot retriev e definition for form bean '

you probably missed a definition somewhere. The way to go is

- create a bean preferably with only String attributes, e.g. OrderBean
- in the action servlet add this bean to your request or session 
	(e.g. request.setAtribute("myOrderBean",myOrderBean);
- in struts-config.xml define in <form-beans> where the definition for
myOrderBean
	can be found (e.g. <form-bean name="myOrderBean"
type="com.yourpackage.OrderBean"/>
- in your jsp page you can now refer to myOrderBean.orderLine or whatever.

Gr
Ronald 

> -----Original Message-----
> From: Kevin J. Turner [mailto:kturner@dceg.com]
> Sent: Friday, March 08, 2002 10:32 PM
> To: Struts Users Mailing List
> Subject: Where do I start to solve this error message: 
> 'Cannot retrieve
> definition for form bean <beanname>'
> 
> 
> I have encountered the following error message in my Struts 
> application: 
> 
> "Cannot retrieve definition for form bean <bean-name>"
> 
> Where do I start to look for a solution to this one? I'm stuck.
> 
> 
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> 


Furore B.V.
Rijswijkstraat 175-8
Postbus 9204
1006 AE Amsterdam
tel. (020) 346 71 71
fax. (020) 346 71 77

----------------------------------------------------------------------------
---------------
The information transmitted is intended only for the person
or entity to which it is addressed and may contain confidential
and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other
than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material
from any computer
----------------------------------------------------------------------------
---------------