> > From: Caroline Jen > > Sent: Friday, September 10, 2004 12:37 PM > > To: Struts Users Mailing List > > Subject: RE: [SOLVED]Cannot retrieve definition > for form bean null > > > > > > Hi, I have found the mistake. > > > > The mistake is that <html:textarea> is not a > struts > > tag equivalent to HTML <textarea> tag. >
I know this is an old post...has your problem been solved yet? If not I just wanted to let you know that I had the same problem and I found the following explanation doing a google search:
Exception org.apache.jasper.JasperException: Cannot retrieve definition for form bean null Probable Cause
This exception typically occurs because Struts cannot find the form bean it expects for a specific action according to the mapping in the struts-config.xml file. Most often, this is probably because the name given to the form in the name attribute of the form-bean element does not match the name attribute of the associated action's action element. In other words, the action and form should each have a name attribute that matches exactly, including case. It has been reported that this error has been seen when no name attribute is associated with the action. If there is no name attribute in an action element, no form is associated with the action. Others have reported this error as merely a symptom of something completely unrelated (all too common), but the mismatch of name attributes in the form-bean and action elements in the struts-config.xml file is the usual culprit.
My problem was that I had left the "name" attribute out of some of the tags in my struts-config.xml.