You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Schuenck <fs...@gmail.com> on 2008/01/14 19:20:38 UTC

Wrong struts rendered tags

Hi,

I'm starting in Struts and already found a little problem. While rendering
the html inputs, struts don't close the tags. For example:

The tag <html:text property="campo" /> renders:

<input name="campo" type="text">

Instead of:

<input name="campo" type="text" />

The tag wasn't closed and the document can't be validated as XHTML. I've
tried to use the <html:html xhtml="true" /> and <html:xhtml /> but the
return was the same.

Somebody knows any way of forcing struts to render xhtml compatible code?

Thanks

-- 
View this message in context: http://www.nabble.com/Wrong-struts-rendered-tags-tp14807997p14807997.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Wrong struts rendered tags

Posted by Mitchell James <jm...@gmail.com>.
Look at setting xhtml theme.

http://struts.apache.org/2.0.11/docs/themes-and-templates.html
	



--
James Mitchell



On Jan 14, 2008, at 1:20 PM, Schuenck wrote:

>
> Hi,
>
> I'm starting in Struts and already found a little problem. While  
> rendering
> the html inputs, struts don't close the tags. For example:
>
> The tag <html:text property="campo" /> renders:
>
> <input name="campo" type="text">
>
> Instead of:
>
> <input name="campo" type="text" />
>
> The tag wasn't closed and the document can't be validated as XHTML.  
> I've
> tried to use the <html:html xhtml="true" /> and <html:xhtml /> but the
> return was the same.
>
> Somebody knows any way of forcing struts to render xhtml compatible  
> code?
>
> Thanks
>
> -- 
> View this message in context: http://www.nabble.com/Wrong-struts- 
> rendered-tags-tp14807997p14807997.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org