|
From: Martin H. <mar...@ya...> - 2003-08-22 09:46:54
|
Hi,
I am writing to the developer group for some guidance.
I have been using the Spring framework for some time. I originally used the
source that came with Rod's great J2EE book along with a handful of custom
pieces. Seeing how the work has turned into a viable framework I am
migrating to the 0.9.1 release.
With the project I am working on I need to map URLs that end in wildcards to
servlets for processing. I have found the current release needs a bit of
updating to work properly.
The current release does not seem to handle
<servlet-mapping>
<servlet-name>servletName</servlet-name>
<url-pattern>/start/*</url-pattern>
</servlet-mapping>
very well. To fix this problem I updated my local implementations of
AbstractUrlHandlerMapping and PropertiesMethodNameResolver and replaced
String lookupPath = WebUtils.getLookupPathForRequest(request,
this.alwaysUseFullPath);
with
String lookupPath = request.getRequestURI();
after which the code maps the URL correctly. It is a hack and it works but
I would like to see the framework correctly handle these type of request.
Another symptom of the current code was that it seemed to work for /foo* or
even /foo/bar* but not /foo/*.
Is there anybody in the developer group that wants to tackle this issue?
Should I look at CVS and submit a patch?
Thanks,
Martin
|