struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randy Jonasz" <rjon...@gmail.com>
Subject how to init action form when session expires
Date Tue, 28 Aug 2007 18:07:05 GMT
Hello everyone,

I have a quick question.  When the user session expires and they try
to submit a form to the server through an open window, I'm finding my
array in my action form is not being populated through the setter
method.  In fact I'm getting the following exception

java.lang.NullPointerException
       at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:427)

I can eliminate the exception by initializing the array in the form's
constructor.  My question is how can I obtain the size of the array
dynamically?  The array size is determined by the user.

Thanks for any help,

Randy

--
Oscar Developer
McMaster University
75 Frid Street, Hamilton, ON
905 525 9140 x27735

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message