2011/9/13 Konstantin Kolinko <knst.koli...@gmail.com>:
> 2011/9/13 jprideaux <jpride...@snapdiagnostics.com>:
>>
>> Is it intended that request.getRequestURI() should return a path parameter
>> as part of the URI?
>
> Yes, That is required by the Servlet Specification.
>
> See servlet-2_5-mrel2-spec.pdf  ch. SRV.3.1 (page number 26), Quote:
> [[[
> Path parameters that are part of a GET request (as defined by HTTP 1.1) are 
> not
> exposed by these APIs. They must be parsed from the String values
> returned by the
> getRequestURI method or the getPathInfo method.
> ]]]
>
> It means that getRequestURI() must return the path parameters as is.
>
>
> I am looking at the source code of PathDispatcher for icefaces-1.8.2
> in their svn repository...  It uses regex matching against the value
> of request.getRequestURI(),
> and those regexes are \\.jsp$ and so on
>  (in com.icesoft.faces.webapp.http.servlet.MainServlet)
> using $ to match the end of string.
>

I think you can write a filter and use RequestDispatcher.forward() to
corrected URL,
or configure urlrewrite filter [1] to do this.

Thought it would be better if icefaces fixed their bug.

[1] 
http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/3.2/guide.html


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to