struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27239] New: - bug in <html:javascript>
Date Thu, 26 Feb 2004 02:39:53 GMT
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=27239>.
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=27239

bug in <html:javascript>

           Summary: bug in <html:javascript>
           Product: Struts
           Version: Nightly Build
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator Framework
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: ralphschaer@yahoo.com


<html:javascript> creates unnecessary <script> when dynamicJavascript="false"

staticJavascript="true"

(Nightly Build 2004/02/25)
You can see the error in the struts-example web application.

There is a staticJavascript.jsp page with this content

<%@ page language="java" %>
<%-- set document type to Javascript (addresses a bug in Netscape according to 
a web resource --%>
<%@ page contentType="application/x-javascript" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<html:javascript dynamicJavascript="false" staticJavascript="true"/>


and logon contains this line:
<script language="Javascript1.1" src="staticJavascript.jsp"></script>

Now the problem is that the html:javascript tag also writes the <script> tag 
into the output.
<script type="text/javascript" language="Javascript1.1">

<!-- Begin
.....
//End -->

</script>

The result is a javascript error in the browser.


this bug was introduced with revision 1.45 from 2004/02/04
in JavascriptValidatorTag.renderJavascript

revision 1.44 works

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


Mime
View raw message