Is there a reason you can't do this in the action which precedes your jsp? Anyway, <c:set> from JSTL does this for you.
Paul > -----Original Message----- > From: Asleson, Ryan [mailto:[EMAIL PROTECTED] > Sent: Friday, September 17, 2004 2:57 PM > To: '[EMAIL PROTECTED]' > Subject: Struts Taglib Question > > > > 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] > ********************************************************************** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]