You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ashoka Murthy <sm...@hotmail.com> on 2001/11/21 22:50:27 UTC

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(PropertyUtils.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(ActionServlet.java:1803)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java: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(ContextManager.java:812)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>