I know why it does not do this!

Looking at the source code for org.apache.strut.taglib.html.BaseInputTag.java
show that there is doStart() method and no such thing as doAfterBody() !!!

So the following is guaranteed to fail!!!

<html:text  property="currentDate" >
    <app:dateFormat formatter="dd-MMM-yyyy" name="formBean" property="currentDate" />
</html:text>

appears in HTML view source as
    <input type="text"  property="currentDate" value="" />

(Argh!)

Looks like I will to subclass, myself, BaseInputTag introducing another custom app 
action tag
to do it properly as a "doAfterBody()" method.

--
Peter Pilgrim                 ++44 (0)207-545-9923
                                                      //_\\
"Mathematics is essentially the study of islands of  =======
disparate subjects in a sea of ignorance."           || ! ||
Andrew Wiles __________________


---------------------- Forwarded by Peter Pilgrim on 24/10/2001 13:15 
---------------------------

From: Peter Pilgrim on 24/10/2001 13:06

To:   [EMAIL PROTECTED]
cc:
Subject:  HTML:Text Formatting

I asked because the following JSP excerpt which is suggested in the Strutcs
JavaDoc does not work for me at all:

<html:text  property="currentDate" >
    <app:dateFormat formatter="dd-MMM-yyyy" name="formBean" property="currentDate" />
</html:text>

where:
     app:dateFormat is my own custom simple date formatter action.

According to the javadoc the body content of the <html:text> should become the value 
attribute
of the HTML Input tag, c'nest pas?





--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.


Reply via email to