If you're using Struts and JSTL, you might as well use Struts-EL, so you
could do the following:

<fmt:formatDate value="${employeeForm.dateOfBrith}"
                pattern="dd/MMM/yyyy" var="formattedBirthDate"/>
<html-el:text property="employee.dateOfBirthText"

              value="${formattedBirthDate}"/>

-----Original Message-----
From: PILGRIM, Peter, FM [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 5:42 AM
To: Struts Users Mailing List (E-mail)
Subject: Html Text Message body content

Hi

Has somebody changed the design of the <html:text> tags
in the couple of months or so?

I know you can do the body content as a value in the
<html:submit> tags/

<html:submit property="submit" >
  Press Button
</html:submit>

But I thought you could do the same for the <html:text>
and as well.

<html:text property="employee.dateOfBirthText" >
   <fmt:formatDate value="${employeeForm.dateOfBrith}"
pattern="dd/MMM/yyyy"
/>
</html:text>

I am trying avoid nesting custom tags otherwise I have to go
back to old way of <bean:define> etc and then a scripting varibale.

--
Peter Pilgrim,
Struts/J2EE Consultant, RBoS FM, Risk IT
Tel: +44 (0)207-375-4923


********************************************************************
      Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
Regulated by the Financial Services Authority
********************************************************************

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to