ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15668] New: - Jasper generates deprecated code
Date Thu, 26 Dec 2002 14:05:38 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=15668>.
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=15668

Jasper generates deprecated code

           Summary: Jasper generates deprecated code
           Product: Ant
           Version: 1.5.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: hofmann@hofmann-int.de


When I am executing the following ant code:

<jspc srcdir="web" destdir="work/gnu/jshopz" package="gnu.jshopz">
  <include name="**/*.jsp" />
</jspc>

which will compile the following jsp code:

<jsp:include page="servlet/ProductViewServlet" flush="true">
  <jsp:param name="Action" value="<%=
ServletHelper.getParameter(request,"Action") %>" />

the resulting code is as follows:

      JspRuntimeLibrary.include(request, response, "servlet/ProductViewServlet"
+ "?" + "Action=" + java.net.URLEncoder.encode("" + 
ServletHelper.getParameter(request,"Action") ) + ......

java.net.URLEncoder.encode("") has been deprecated!!!
Jasper should better generate:

java.net.URLEncoder.encode("","ISO-8859-1")  // or whatever character encoding
is required!

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message