You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Kamleshkumar Patel (JIRA)" <ji...@apache.org> on 2007/05/23 17:25:42 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_41097 ] 

Kamleshkumar Patel commented on STR-1175:
-----------------------------------------

Hi Guys,
I have the same error. In my application I am dynamically generating HTML form using XSL. I think the XSL is well formed...

<INPUT type="text">
							<xsl:attribute name="id">
								<xsl:value-of select="htmlfieldname" />
							</xsl:attribute>
							<xsl:attribute name="name">
								<xsl:value-of select="fieldname" />
							</xsl:attribute>
							<xsl:attribute name="value">
								<xsl:value-of select="default" />
							</xsl:attribute>
						</INPUT>


 to create well formed input. However when the XSL is transformed to html form, it generates the following which does not have the closing </input>  tag

<INPUT type="text" id="HEADING_LINE_1" name="Heading line 1" value="">

The other strange thing is that the error seems to be happening intermittently.
I think this may not be the proper place to ask for help on this issue. Any help provided is greatly appreciated. Thanks.

> 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
>         Assigned To: Struts Developers
>            Priority: Minor
>         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.