You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jonathan M Z <wo...@yahoo.com> on 2005/02/15 20:55:21 UTC

form bean exception

hi folks,
I have a simple form in struts:
<html:form  action="logon.do" focus="userName">
<html:text property = "userName"/>
</html:form>
I get an exception when the jsp page is rendered
[Servlet Error]-[/Login.jsp]:
javax.servlet.jsp.JspException: Cannot retrieve
definition for form bean null
what's wrong?
thanks


		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: form bean exception

Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "Jonathan M Z" <wo...@yahoo.com>
> I have a simple form in struts:
> <html:form  action="logon.do" focus="userName">
> <html:text property = "userName"/>
> </html:form>
> I get an exception when the jsp page is rendered
> [Servlet Error]-[/Login.jsp]:
> javax.servlet.jsp.JspException: Cannot retrieve
> definition for form bean null
> what's wrong?

Try it without the ".do":
  <html:form  action="logon"  ... >

If that doesn't work, post the relevant part of struts-config.xml.

-- 
Wendy Smoak

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: form bean exception -RESOLVED

Posted by Jonathan M Z <wo...@yahoo.com>.
I made a mistake in the Action mapping.
thank you all


--- Saul Qunming Yuan <yu...@dataanvil.com> wrote:

> Do you have the action mapping defined for logon.do
> in your struts-config
> file? what's it like?
> 
> 
> BTW, just a friendly reminder, you probably don't
> want to use that email
> id in this list, the audience are global. I happen
> to catch it and know
> what it means :-(
> 
> thanks,
> Saul
> 
> 
> 
> > hi folks,
> > I have a simple form in struts:
> > <html:form  action="logon.do" focus="userName">
> > <html:text property = "userName"/>
> > </html:form>
> > I get an exception when the jsp page is rendered
> > [Servlet Error]-[/Login.jsp]:
> > javax.servlet.jsp.JspException: Cannot retrieve
> > definition for form bean null
> > what's wrong?
> > thanks
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > The all-new My Yahoo! - What will yours do?
> > http://my.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
> >
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: form bean exception

Posted by Saul Qunming Yuan <yu...@dataanvil.com>.
Do you have the action mapping defined for logon.do in your struts-config
file? what's it like?


BTW, just a friendly reminder, you probably don't want to use that email
id in this list, the audience are global. I happen to catch it and know
what it means :-(

thanks,
Saul



> hi folks,
> I have a simple form in struts:
> <html:form  action="logon.do" focus="userName">
> <html:text property = "userName"/>
> </html:form>
> I get an exception when the jsp page is rendered
> [Servlet Error]-[/Login.jsp]:
> javax.servlet.jsp.JspException: Cannot retrieve
> definition for form bean null
> what's wrong?
> thanks
>
>
>
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - What will yours do?
> http://my.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org