Kai, sorry for the slow response. I've been crushed at work lately. That change was intended to be a performance enhancement. The idea was that if I use the base URL on forward then the filter won't have to go through the process again of trimming down the URL until it finds the longest matching @UrlBinding.

It took me a few minutes, but now I understand how this has broken your code. You're mapping to an extension, and the extension is not there on the forward. It does look like it needs to be changed back. Oops...

-Ben

Kai Grabfelder wrote:
Hi there,

any news about this? What about other stripes users: is the clean url stuff
still working for you?

Regards

Kai

--- Original Nachricht ---
Absender: Kai Grabfelder
Datum: 10.08.2007 21:26
Hi Ben,

Revision 590 (StripesFilter) broke the clean urls stuff for me. Here is the 
story:

the url mapping on my action bean looks like this:
/community/user/{id}/index.htm

I try to open the following url /community/user/foo/index.htm

I have the following mappings in the web.xml:

<servlet-mapping>
 <servlet-name>StripesDispatcher</servlet-name>
 <url-pattern>*.htm</url-pattern>
</servlet-mapping>

<filter-mapping>
  <filter-name>StripesFilter</filter-name>
  <url-pattern>*.jsp</url-pattern>
  <dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter-mapping>
  <filter-name>StripesFilter</filter-name>
  <url-pattern>*.htm</url-pattern>
  <dispatcher>FORWARD</dispatcher>
</filter-mapping>

Before revision 590 the url for rewriting looked like this:
url = new StringBuilder(request.getRequestURI());

now it looks like this:
url = new StringBuilder(binding.getPath());

This can't obviously work because afterwards he is trying to do a forward to
/community/user/?id=foo

before it would have been
/community/user/foo/index.htm?id=foo

Any idea how this can be fixed? Maybe by adding the suffix of the original
request to the url that is forwarded?

Many thankx in advance

Regards

Kai

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to