[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-user
Subject: Re: Response not XHTML-comliant when using <html:html
From: Michael McGrady <mike () michaelmcgrady ! com>
Date: 2004-01-31 21:46:21
Message-ID: 6.0.1.1.0.20040131134534.01e82720 () mail ! michaelmcgrady ! com
[Download RAW message or body]
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: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic