Fixed. It needs to use the ${ } notation in c:set like shown below:
<c:if test="${empty formBean.event.date}"> <c:set target="${formBean.event}" property="date" value="10/7/2004"/> </c:if> Thanks to everybody for their help. -----Original Message----- From: Asleson, Ryan Sent: Friday, September 17, 2004 10:05 AM To: 'Struts Users Mailing List' Subject: RE: Struts Taglib Question I tried the following: <c:if test="${empty formBean.event.date}"> <c:set target="formBean" property="event.date" value="10/7/2004"/> </c:if> and got this exception: [ServletException in:/jsp/registration/register.jsp] Invalid property in <set>: "event.date"' javax.servlet.jsp.JspTagException: Invalid property in <set>: "event.date" at org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.j ava:183) at I have no idea why, because formBean does have a getEvent() method, and event does have a setDate(String) method. I can be sure because Struts handles it correctly. Any idea what I'm doing wrong?? I know it's finding the formBean because the "if" test works if I comment out the c:set line. Thanks!! ================================ ================================ Try JSTL: <c:if test="${empty formBean.event.date}"> <c:set target="formBean" property="event.date" value="1/1/2004"/> </c:if> Note: this code has not been tested.... -- Tim Slattery [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]