Hi,
I have a weird problem with a form which is always null.
For example, in my FooAction class, I have the following method:
> public ActionForward perform(ActionMapping mapping,
> ActionForm form,
> HttpServletRequest request,
> HttpServletResponse response)
> {
in that method I have the following code:
>FooForm theForm = (FooForm) form;
in my strus-config.xml:
><form-bean name="fooform"
> type="be.stluc.info.struts.FooForm"/>
...
> <action path="/foo"
> type="be.stluc.info.struts.FooAction"
> name="fooform" />
but when I try to use theForm (the object I initialized), I have a
java.lang.NullPointerException, because theForm is null.
Could somebody please explain me what I'm doing wrong ????
Because I've done that for other classes and it works without any problem.
Friendly Regards,
Slimane
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>