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]

Reply via email to