I'm using appfuse 1.9.3 with webwork. I've replaced the 3.0-beta version of
urlrewrite with version 3.0.4.
I'm running in tomcat 5.5.23
My first issue is that I cannot get urlrewrite filter to forward
/webwork/css_xhtml/validation.js to the modified version in
/template/css_xhtml/validation.js. Turning up the logging I see that
urlrewrite determines that the request should be forwarded. However, I get
a blank page as a response from the request.
Since this is the only thing I need the rewrite filter for at this time, I
just wrote a simple filter to handle this one uri, just to see if I could
get it to work. Turns out even in my simple case, where I simply call the
following to forward a request /webwork/css_xhtml/validation.js
RequestDispatcher dispatcher =
request.getRequestDispatcher("/template/css_xhtml/validation.js");
dispatcher.forward(request, response);
The forward does the exact same thing as the urlrewrite filter, it returns a
blank page.
So my questions are 1, does anyone have any idea about why invoking a
forward here does not work. A simple request directly to
/template/css_xhtml/validation.js works just fine. The forward just doesn't
do it. Also, since the request is for a simple .js, no other filters really
need to run for this request, so I don't think I need to add
<dispatcher>FORWARD</dispatcher> on all the filters, because the filters
don't need to execute to get the static js file.
Also, on another note, what is the reason for the appfuse modification of
the webwork js file. Is there any reason why this is preferred to the
webwork file?
Thanks,
Skip
--
View this message in context:
http://www.nabble.com/urlrewrite-and-forwarding-within-filter-tf3941272s2369.html#a11178863
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]