Deepa: Thanks. That was it ! I had wrong form bean defined in struts-config. It works now ! By the way any idea on how struts log messages to appear in console. I am sure there is some where log4j property definition I have to do, I am not sure where ? Thanks again for hint ! Digant
Deepa Khetan <[EMAIL PROTECTED]> 01/26/2006 10:57 PM Please respond to "Struts Users Mailing List" To: Struts Users Mailing List <user@struts.apache.org> cc: Subject: Re: Action Form error. Did u define ur form-bean in struts config? On 1/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > 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 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