For a simple form with a single field that doesn't need validation you
can specify a name and type, e.g.
<html:form action="lot.do" name="id" type="java.lang.String">
otherwise, yes, you do have to give Struts a bean where it can save the
fields in your form.
Vimal Kansal wrote:
>
> Hi,
>
> I am having a strange problem.
>
> I have an action nmapping defined as
>
> <action path="/viewadminconfig" type="...">
> <forward name="success"
> path="/XDIViewAdminConfigForm.jsp" />
> </action>
>
> And then in my XDIViewAdminConfigForm.jsp, I have the
> following :
>
> <html:form onsubmit="..."
> action="/viewadminconfig.do">
>
> ....
>
> </html:form>
>
> When I request this, I get the following exception :
>
> "javax.servlet.jsp.jSpException : Cannot retrieve
> definition for form bean null
> at
> org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:708)
> ....
>
> Do I always have to associate a form bean with a form.
>
> Vimal