struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Benedict (JIRA)" <j...@apache.org>
Subject [jira] Updated: (STR-1175) No inheritance of html:html xhtml="true" in included tiles
Date Sun, 27 May 2007 17:33:42 GMT

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

Paul Benedict updated STR-1175:
-------------------------------

    Fix Version/s: 1.4.0
         Assignee:     (was: Struts Developers)

> 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.


Mime
View raw message