JSTL : <c:set target="${event}" property="date" value="...."/>
Nico. > > Hello, > > 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"> > .... > > > It says that "if the event.date property on formBean is an empty String then > set it to a default value." I want to do it because I want the following > select tag to have a specific default date selected instead of a random one > being the deault select. > > I just want to be able to set the event.date property to a default value if > it's already an empty String. I'm looking for a tag to do it because this > JSP page is generated via XSLT from another XML document, and there could be > many bean properties that need to be defaulted. I want to be able to > preserve the use of the dot notation for nested parameters. > > Basically, I want a tag something like this: > > <bean:setValue name=formBean property="event.date" value="10/10/2004"/> > > Is there any way I can do this? > > Thanks!! > > > > 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 message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]