Well ... I got it to work ... but I am not sure why it did not work before. BTW, I am using Struts 1.0.
To fix the problem, instead of using the 'define' tag to make the property available ... I used it to make the whole form bean available as follows: <bean:define id="tmpRegForm" name="editRegForm" type="com.mirant.extranet.forms.PendingRegistrationForm"/> <mir:getLocalDate date="<%=tmpRegForm.getPostDate()%>" style="long"/> I do not know why this works but the other way (using the define tag to get the property) failed. -----Original Message----- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 11:33 AM To: '[EMAIL PROTECTED]' Subject: Problem with bean:define? I am using the bean:define tag to make a variable available ... he's the wierd part ... it works the "first time" I enter the form ... but if I return to the form because of a validation error ... it fails with a NullPointerException in the pageContext.setAttribute method ... it seems to me the second time around it is not finding the value for some reason ... any ideas? Bill Siggelkow eBusiness Lead Developer 678.579.6458 Mirant http://www.mirant.com -- 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]>

