struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vikram Goyal" <v.go...@uq.edu.au>
Subject URL Rewriting
Date Fri, 19 Sep 2003 06:56:47 GMT
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


Mime
View raw message