Well, this worked fine for me. In this scenario, the WW property/calendar retrieves the date object from the action on the stack and the WW pram/.. fetches this object to set in Date.
<webworm:property value="calendar"> <webwork:bean name="'webwork.util.DateFormatter'" id="formatter"> <webwork:param name="'date'" value=".."/> <webwork:param name="'format'" value="'h:mm a'"/> </webwork:bean> <webwork:property value="@formatter/formattedDate"/> </webwork:property> Looking at your code I'm wondering if <webwork:property value="CalendarEvent"> should be <webwork:property value="calendarEvent">. ----- Original Message ----- From: "Rick Salsa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 03, 2002 11:21 AM Subject: [Webwork-user] Re: Using webwork.util.DateFormatter > Well I figured out my problem. I wasn't quoting the name attirbute for > webwork:bean. Thanks Scott. > > It works fine, but I still can't seem to pass in a date object from another > class...? > > Here's what I've got: > > <webwork:property value="CalendarEvent"> > <td> > <webwork:bean name="'webwork.util.DateFormatter'" id="formatter"> > <webwork:param name="'date'" value="../startDate"/> > <webwork:param name="'format'" value="'h:mm a'"/> > </webwork:bean> > <webwork:property value="@formatter/formattedDate"/> > </td> > </webwork:property> > > I've also tried: > > <webwork:property id="event" value="CalendarEvent"> > <td> > <webwork:bean name="'webwork.util.DateFormatter'" id="formatter"> > <webwork:param name="'date'" value="@event/startDate"/> > <webwork:param name="'format'" value="'h:mm a'"/> > </webwork:bean> > <webwork:property value="@formatter/formattedDate"/> > </td> > </webwork:property> > > If I don't use the param for date, it works fine, but I keep getting an > IllegalArgumentException for the date method. Is there another way to do > this? > > Thanks, > rick > > > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] > _______________________________________________ > Webwork-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/webwork-user > > _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ Webwork-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webwork-user