<html:xhtml />
I validate my tiles xhtml & the only error I ever get is one saying that I shouldn't be using the onclick event due to accessibility issues.
Adam
On 01/31/2004 10:46 PM Michael McGrady wrote:
I have run into similar difficulties with Tiles and have just made do. I welcome all insights in this area. Glad this issue is getting air.
At 07:59 AM 1/31/2004, you wrote:
Thanks for the anwers so far.
But it is not working for me, because I still have this extra <html>
tags included.
I have done the following xperiments:
<tiles:insert page="../includes/navigation.jsp" />
<jsp:include page="../includes/navigation.jsp"/>
<%@ include file="../includes/navigation.jsp" %>
<page:applyDecorator name="sidenav"
page="/WEB-INF/jsp/includes/navigation.jsp" />
All of them included extra <html>
I simply do not get it!
Maybe some of you can put some light on this mystery :-)
Here is my code:
-------
main.jsp
-------
<%@ taglib uri="struts-html" prefix="html" %>
<%@ taglib uri="struts-tiles" prefix="tiles" %>
<%@ taglib uri="sitemesh-page" prefix="page" %>
<%@ taglib uri="sitemesh-decorator" prefix="decorator" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ include file="../includes/navigation.jsp" %>
(printable version)
-------------------- includes/navigation.jsp -------------------- <%@ taglib uri="struts-html" prefix="html" %>
[]
Search
----------------------------------------------- And this is the output: -------------------
Search
<div id='content' style="border: solid red 1px">
The current count is... <big>2</big>
<p>
<small>
(<a href="?printable=true">printable version</a>)
</small>
</p>
</div>
</body>
</html>
-------------------------------------------------------
validation results:
-------------------
Document type does not permit element â<html>â
in content of element â<body>â.
Document type does not permit element â<div>â
in content of element â<html>â.
Value of attribute âmethodâ for element â<form>â is invalid;
Value must be one of {"get","post"}.
Document type does not permit element â<input>â
in content of element â<input>â.
Close tag for element â</input>â omitted
but document type doesn't permit it.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]