nuts....I was looking under struts xhtml html:text and I found
nothing.....to exact of a search I guess.

Thanks

Randall 

-----Original Message-----
From: Michael Jouravlev [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 28, 2005 3:05 PM
To: Struts Users Mailing List
Subject: Re: <html:text> DTD xhtml 1.0 Strict

google: struts xhtml

The first line of search result:
"Kickstart FAQ - Apache Struts: Are the Struts tags XHTML compliant?"
http://struts.apache.org/faqs/kickstart.html#xhtml:
  If you use an <html:html xhtml="true> or <html:xhtml/> element
  on your page, the tags will render as XHTML (since Struts 1.1).

Also from BaseHandlerTag.java:

    /**
     * Returns the closing brace for an input element depending on xhtml
status.  The tag
     * must be nested within an %lt;html:html&gt; tag that has xhtml set
to true.
     * @return String - &gt; if xhtml is false, /&gt; if xhtml is true
     * @since Struts 1.1
     */
    protected String getElementClose() {
        if (this.isXhtml()) {
            return " />";
        } else {
            return ">";
        }
    }

On 4/28/05, Randall Svancara <[EMAIL PROTECTED]> wrote:
> I am wondering if <html:text> can be altered to generate valid DTD 
> xhtml 1.0 strict xhtml.
> 
> For example, I have:
> 
> <html:text property="search" size="20"/>
> 
> which generates:
> 
> <input type="text" name="search" size="20" value="">
> 
> For valid xhtml 1.0 strict dtd, it needs to look like this:
> 
> <input type="text" name="search" size="20" value=""/>
> 
> Any ideas, suggestions or comments.
> 
> Thanks in advance.
> 
> Randall

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


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

Reply via email to