You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vikram Goyal <v....@uq.edu.au> on 2003/09/19 08:56:47 UTC

URL Rewriting

Hello all,

A curious, but not totally unexpected, thing happens when I try to access my
Apache httpd-Tomcat (4.1.24) site for the first time via mod_jk2 connector.
Since Tomcat/Struts resorts to a URL rewrite of every link (because it
doesn't know that the browser is going to accept a cookie the first time),
all the static data is also appended with the URL rewrite since I am using
the Struts <html:img> and <html:rewrite> tags. Somehow, the browser is not
able to resolve these URL rewritten links. Does anyone know why this would
be the case? If I do a refresh of the page, the images and other data is
retrieved successfully. If I run the site directly, i.e., on port 8080 on
which Tomcat is running, the data is retrieved without any problem even in
the first go.

If I remove the <html:img> tag and replace it with <img> tag and in essence
take out URL rewritting from the static data, that also works fine.

Any help, pointers appreciated.

Regards,
Vikram


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