tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4789] - URL rewriting is not performed on frames and images
Date Sat, 10 Nov 2001 19:08:29 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=4789>.
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=4789

URL rewriting is not performed on frames and images

craig.mcclanahan@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From craig.mcclanahan@sun.com  2001-11-10 11:08 -------
URL rewriting is the job of the application, not the container.  Tomcat
***never*** does URL rewriting on its own, because it never looks at the content
of the response being sent back to the client.

If you want a frameset to include URL rewriting, you need to make it dynamic and
invoke the URL rewriting yourself.  For example, an "index.html" page containing
a frameset could be converted to an "index.jsp", with frame expressions like:

  <frameset ...>
    ...
    <frame src='<%= response.encodeURL("foo.jsp") %>'>
    ...
    <frame src='<%= response.encodeURL("bar.jsp") %>'>
    ...
  </frameset>

Likewise, if you need an image to be URL encoded, you need to do it yourself.

  <img src='<%= response.encodeURL("images/baz.gif") %>'>

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


Mime
View raw message