Hi Rick- In the real world case, my form bean is merely a container for collections of ValueObjects. It doesn't have any properties outside of getters and setters for collections. The value objects within the collections have java.util.Date properties which I'm interested in rendering to the JSP page. Nowhere in my application am I storing date information in String objects.
When I sort out how the formatting tags play into this, I'll definitely post back to the list with the info I discover. In the mean time, if anyone else has experience with what we've been discussing (formatting Dates for input type="text" boxes) please feel free to chime in. thanks, jk > -----Original Message----- > From: Rick Reumann [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 23, 2002 4:54 PM > To: Struts Users Mailing List > Subject: Re: java.util.Dates and Struts > > > On Mon, 23 Dec 2002 13:33:59 -0500 > Jim Krygowski <[EMAIL PROTECTED]> wrote: > > > > > As regards the tags, I would like to render an html input type="text". > > As > > far as I know, you can't nest tags so... > > > > <html:text name="myForm" property="myDate" value="<fmt:formatDate > > pattern="MM/dd/yy" value="${element.yourDate}"/>"/> > > > > ...won't work. > > I'm almost positive the el tags people mention a lot on this list can do > this. I'm not sure though since I haven't had the need to do it yet. I > think the JSTL allows nesting as well but I'm new to them myself so I'm > not sure. Let me know what you end up using for nesting the format date > tag in case I end up needing it someday:) > > I'm also not sure what business requirements your trying to fill but it > seems like if you have a "myDate" String property in your form bean it > probably corresponds to something meaningful across all the value object > beans as well? In other words I'm having trouble grasping what > relationship with the form bean and the possible value object doesn't > match up? Obviously it doesn't or else you could simply use the > BeanUtils stuff we initially mentioned:) > > > -- > Rick > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

