You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2007/06/27 07:31:26 UTC

[jira] Commented: (STR-1175) No inheritance of html:html xhtml="true" in included tiles

    [ https://issues.apache.org/struts/browse/STR-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41294 ] 

Paul Benedict commented on STR-1175:
------------------------------------

It is obvious the change should be applied only to the XhtmlTag with a @scope attribute.

> No inheritance of html:html xhtml="true" in included tiles
> ----------------------------------------------------------
>
>                 Key: STR-1175
>                 URL: https://issues.apache.org/struts/browse/STR-1175
>             Project: Struts 1
>          Issue Type: Improvement
>          Components: Tiles
>    Affects Versions: 1.1 Beta 3
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Ludovic MaƮtre
>            Priority: Minor
>             Fix For: 1.4.0
>
>         Attachments: xhtml.diff
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.