for every form that you have in your app you need a form bean and then u need 
to add it to your action mapping that is where you are getting the null 
exception


just create a dummy form bean with nothing in it and then add it to that 
action



On Wednesday 26 March 2003 11:22 pm, Alonso, Damian wrote:
> Hi,
>
>
>
>
>
> I am trying to use a ForwardAction to navigate from one jsp to another.  It
> has been suggested that every JSP Page should be fronted by an Action.  I
> am currently trying to do this, but getting the following exception:
>
>
>
> javax.servlet.ServletException: Cannot retrieve definition for form bean
> null
>
>             at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextIm
>p l.java:530)
>
>             at
> org.apache.jsp.leadDetails_jsp._jspService(leadDetails_jsp.java:657)
>
> [snip]
>
>
>
> I don't want to use a form bean because this is just a simple forward
> request.  My form in my jsp looks like this:
>
>
>
> <html:form action="/goback" target="body">
>
> <html:submit property="action" value="< Back"/>
>
> </html:form>
>
>
>
> My struts-config looks like this:
>
>
>
> <action path="/goback"
>
> parameter="/jsp/somePage.jsp"
>
>             type="org.apache.struts.actions.ForwardAction"
>
>             scope="request"
>
>             validate="false">
>
> </action>
>
>
>
> I am using Struts 1.1 RC 1.  When I try to load my jsp, I get the exception
> mentioned above.  Can anyone offer any suggestions as to why I would be
> getting this exception??
>
>
>
> Thanks in advance,
>
>
>
> Damian.
>
>
>
>
>
>
> www.sensis.com.au
>
> A leading Australian advertising, information
> and directories business.
>
> www.yellowpages.com.au
> www.whitepages.com.au
> www.citysearch.com.au
> www.whereis.com.au
> www.telstra.com.au
>
> This email and any attachments are intended only for the use of the
> recipient and may be confidential and/or legally privileged. Sensis Pty Ltd
> disclaims liability for any errors, omissions, viruses, loss and/or damage
> arising from using, opening or transmitting this email. If you are not the
> intended recipient you must not use, interfere with, disclose, copy or
> retain this email and you should notify the sender immediately by return
> email or by contacting Sensis Pty Ltd by telephone on [+61 3 9201 4888]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to