>><action
>>                path="/sectorSetUp"
  >>              name="sectorForm"

Is sectorForm declared in the top of your struts-config file? Make sure the
type is valid.
<form-bean name="sectorForm" type="web.form.SectorForm" />

Also check that your JSP has <htm:form action="/sectorSetUp.do">...


Shawn
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 26, 2006 6:37 PM
To: Struts Users Mailing List
Subject: Action Form error.

Somehow I am  getting   ActionForm is null when one of the Action is 
called.

How can I find out if ActionForm object was created after jsp forwarded to 
ActionServlet. ?


Here is my details.

web.action.SectorAction  has 

public ActionForward setUpForInsertOrUpdate(ActionMapping mapping, 
ActionForm form, HttpServletRequest request, HttpServletResponse response) 
throws Exception {
        SectorForm sectForm = (SectorForm)form;
                ....
                ...
struts-config.xml   has

                <action
                path="/sectorSetUp"
                name="sectorForm"
                type="web.action.SectorAction"
                scope="request"
                parameter="dispatch">
            <forward name="success" path="/sectorForm.jsp"/>
        </action>
 
I am getting exception 

        java.lang.NullPointerException
                 at web.action.SectorAction.isUpdate(SectorAction.java:92)
                 at 
web.action.SectorAction.setUpForInsertOrUpdate(SectorAction.java:36)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
                 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
                 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:324)
....
...


What is going on ?

Thanks.

Digant
This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market
prices,
data and other information are not warranted as to completeness or accuracy
and
are subject to change without notice. Any comments or statements made herein

do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates


**************************************************************************** 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************

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

Reply via email to