You have to set each tile to be XHTML - here's how I do it:

Since every page probably needs taglibs, I have a common/taglibs.jsp file.
In this page, I have my taglib declarations and the following line at the
end:

<html:xhtml />

Then every page includes that with:

<%@ include file="/common/taglibs.jsp"%>

This has worked great for me.

Matt 

-----Original Message-----
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 10:09 AM
To: Struts Users Mailing List
Subject: Tiles & html-taglib producing XHTML


I'm using the struts html taglib, well actually the html-el taglib but 
the problem is with both, and I am outputting XHTML, but the input 
taglib doesn't output XHTML when it's in a different Tile.

I have my Tiles layout page with the doctype declaration and the

<html:html xhtml="true">

and the

<tiles:insert attribute="bodyContent" />

to include my content.

Anything nested nicely inside the <html:html xhtml="true"> tags in the 
layout tile is given proper XHTML syntax, but in the other tiles, it's 
not. i.e. instead of:

<input type="image" name="" src="edit.png" title="Edit" alt="Edit" />

it gives:

<input type="image" name="" src="edit.png" title="Edit" alt="Edit">

Before I go off to bugzilla, assuming I haven't overlooked something 
important, what is it a bug of? html-taglib or tiles?

Thanks,
Adam

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


---------------------------------------------------------------------
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