Nine times out of ten when I get that message it is one of two things: - I haven't referenced the bean properly in the tag. This is especially true of anything which references a collection, because that syntax is just off.
- I haven't put the bean in the proper scope. Less frequent, but it happens. BTW: Your struts-config and JSP source is coming across as blanks on my mailreader. -= J > -----Original Message----- > From: Art Vandalay [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 12, 2003 3:19 PM > To: Struts Users Mailing List > Subject: Re: Cannot retrieve definition for form bean null > > > > I'm sorry to bug everyone again with this, but I cannot > figure out what this error message is telling me. If anyone > has any insight, I'd appreciate it. > After looking through the Struts 1.1 source files, I've > determined that this is the code that throws the exception. > It is located in FormTag.lookup: > // Look up the form bean definition > FormBeanConfig formBeanConfig = > moduleConfig.findFormBeanConfig(mapping.getName()); > if (formBeanConfig == null) { > JspException e = > new > JspException(messages.getMessage("formTag.formBean", > mapping.getName())); > pageContext.setAttribute(Globals.EXCEPTION_KEY, > e, PageContext.REQUEST_SCOPE); > throw e; > } > > > > My original message is below with the struts-config.xml and > JSP page itself. > > Thanks for any help you can provide. > > > Art Vandalay <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I am trying to write a very simple Struts application that > simply displays a JSP using bean:message to retrieve values > for my field labels and buttons from a ResourceBundle. Pretty > straight forward, but I am getting the following error: > > > > [exec] javax.servlet.jsp.JspException: Cannot retrieve > definition for form > bean null > > > > The message seems to imply that Struts is trying to access a > bean whose name is "null" but I don't know what bean that > would be as I have no beans referenced on my JSP. I am only > trying to invoke the logic contained within the struts-bean.tld. > > > > The logic flow is the user signs-into the application and is > then forwarded to "simplePage.jsp". I used a ForwardAction to > navigate from the logon page (after a successful login). But > I never reach "simplePage.jsp" due to the above mentioned error. > > > > Any help would be appreciated. > > > > Here is what I have in my struts_config.xml: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Here is my JSP: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Shopping - Send Flowers for Valentine's Day > > > --------------------------------- > Do you Yahoo!? > Yahoo! Shopping - Send Flowers for Valentine's Day > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]