ServiceProvider.date is null. Initialize it to new YourDateClass() (and don't forget to do the same in the reset() method if you're using one).
hth, tomK > -----Original Message----- > From: Ashoka Murthy [mailto:[EMAIL PROTECTED]] > Sent: woensdag 21 november 2001 22:50 > To: [EMAIL PROTECTED] > Subject: Please Help!!! > > > Could anybody tell me where to find information on > "how to include beans on your page" and also > write the corresponding ActionForm for it. > > I have a form in which I am displaying 2 dates that come from a class > Daterange. Now I am calling the dates as :- > > <html:text name="ServiceProvider" > property="date.displayEffectiveDate" > size="13"/> > > <html:text name="ServiceProvider" property="date.displayExpiryDate" > size="13"/> > > I also have a Actionform called ServiceProviderForm.java > which has setDate > and getDate methods. > > When I submit the form, I get the foll. error > > java.lang.IllegalArgumentException: Null property value for 'date' > at > org.apache.struts.util.PropertyUtils.setNestedProperty(Propert > yUtils.java:776) > at > org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils > .java:825) > at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:847) > at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:789) > at > org.apache.struts.action.ActionServlet.processPopulate(ActionS > ervlet.java:1803) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.j > ava:1414) > at > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:480) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper > .java:405) > at org.apache.tomcat.core.Handler.service(Handler.java:287) > at > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at > org.apache.tomcat.core.ContextManager.internalService(ContextM > anager.java:812) > at > org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) > at > org.apache.tomcat.service.http.HttpConnectionHandler.processCo > nnection(HttpConnectionHandler.java:213) > at > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin > t.java:416) > at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo > ol.java:501) > at java.lang.Thread.run(Thread.java:484) > > Please help me :( > > TIA > > _________________________________________________________________ > Get your FREE download of MSN Explorer at > http://explorer.msn.com/intl.asp > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>