Re: Difficulties with Include Parameters/java.net.URLEncoder class

From: John C. Bollinger (jobollin_at_indiana.edu)
Date: 02/27/05


Date: Sun, 27 Feb 2005 14:22:06 -0500

This is off-topic in comp.lang.java.beans. Followups set to
comp.lang.java.programmer.

Rick Huby wrote:

> I am building a JSP website and have created a page template that has
> two include pages - a navigation page and a footer page.

[...]

> It all boils down to the java.net.URLEncoder class and specifically the
> encode(String) method. This has been replaced by encode(String s,
> String encType).
>
> My problem is that I have no idea how to use this new method using the
> syntax I already have. Can anybody help?

You cannot fix this in your JSP code: it is an issue with the JSP page
translator provided by your JSP container. I know from personal
experience that Tomcat 4 has this issue, but likely many others do too.
  You can seek a JSP container that does not have the issue, you can
abandon JSP for pure servlets, or you can just live with it.

-- 
John Bollinger
jobollin@indiana.edu


Relevant Pages

  • Re: JSP tags and tag recycling
    ... > that the JSP engine remembers the initial value of the attribute (i.e. ... When the tag instance is reused, the attribute still has the value "Y", ... and THAT IS WHAT THE JSP CONTAINER EXPECTS. ... moot, however, because JSP specifically says that tag handler properties ...
    (comp.lang.java.programmer)
  • Re: newbie: JSP vs Servlets
    ... The JSP container generates Servlet bytecode (sometimes directly, ... sometimes by generating java source and compiling it, ... build-time rather than on the first request to the server) from the jsp text. ...
    (comp.lang.java.programmer)
  • Re: .JSP file mapping?
    ... If the JSP container you use can unbderstand it, ... pick up the extra path elements via standard servlet APIs. ...
    (comp.lang.java.help)
  • response object in included jsp
    ... I have a page that "jsp: includes" header and footer. ... I also have a jsp page that sets a cookie; ... directly cookie is being set just fine. ...
    (comp.lang.java.programmer)