You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/02/04 17:53:47 UTC

DO NOT REPLY [Bug 16764] New: - No inheritance of html:html xhtml="true" in included tiles

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16764>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16764

No inheritance of html:html xhtml="true" in included tiles

           Summary: No inheritance of html:html xhtml="true" in included
                    tiles
           Product: Struts
           Version: 1.1 Beta 3
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Tiles framework
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: Ludovic.Maitre@fr.oleane.com


Hello,

I develop an application where all the layout is managed by Tiles.

the problem is that i have a layout where an <html:html xhtml="true"> markup is
defined and this markup seems not to be used in the included tiles. So the forms
included are not in XHTML and i've got an XML parsing error when i try to access
the file. (note that it seems that this is a general issue with JSP as i have
previously related a bug for Jasper (16290) who is very similar).

Sample test case :
------------------

The including JSP page (file test_tiles.jsp) :
<jsp:root 
	xmlns:jsp="http://java.sun.com/JSP/Page" 
	xmlns:logic="/tags/struts-logic"
	xmlns:html="/tags/struts-html"
	xmlns:bean="/tags/struts-bean"
	xmlns:nested="/tags/struts-nested"
	xmlns:tiles="/tags/struts-tiles"
	version="1.2">

<html:html xhtml="true">

<head>
	<title>A sample test case</title>

</head>

<body>
       <tiles:insert definition="test_form" />
</body>

</html:html>

</jsp:root>

The corresponding tile definition (in tiles-def.xml) :

<tiles-definitions>
	<definition name="test_form" path="test_form.jsp"/>
</tiles-definitions>

The included tile (file test_form.jsp) : 

<jsp:root 
	xmlns:jsp="http://java.sun.com/JSP/Page" 
	xmlns:logic="/tags/struts-logic"
	xmlns:html="/tags/struts-html"
	xmlns:bean="/tags/struts-bean"
	xmlns:nested="/tags/struts-nested"
	xmlns:tiles="/tags/struts-tiles"
	version="1.2">

<html:form action="login">
    Username: <html:text property="user.login"></html:text>
    <br />
	Password: <html:password property="user.password"></html:password>
    <br />
	<html:reset/>
    <html:submit/>
</html:form>

</jsp:root>

The result :
XML Parsing Error: mismatched tag. Expected: </input>.
Location: http://192.168.253.66:8080/awrgfa/test_tiles.jsp
Line Number 3, Column 142:	Password: <input type="password" name="user.password"
value=""><br/><input type="reset" value="Reset"><input type="submit"
value="Submit"></form></body></html>
---------------------------------------------------------------------------------------------------------------------------------------------^

It's very frustrating! So if anybody could tell me a workaround i greatly
appreciate. If i'm wrong (this is not a tiles issue for example) please tell me
too. 

Best regards,
Ludovic

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