> Is there some sort of Struts tag that I can use to set the > property of a bean? > > I have a small fragment that I want to look like this: > > <logic:equal name="formBean" property="event.date" value=""> > <%-- Set the event.date property on formBean to a default > value --%> </logic:equal> <html:select name="formBean" > property="event.date"> ....
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]