Mantis - Resin
Viewing Issue Advanced Details
1848 major always 07-04-07 02:20 07-30-07 14:05
Yaroslav Sokolov  
ferg  
normal  
closed 3.1.1  
fixed  
none    
none 3.1.3  
0001848: in specific cases request.getRequestURL() returns not correct URL
In case when 'index.jsp' is configured as <welcome-file> and there is request
to a directory containing index.jsp, request.getRequestURL() returns URL for index.jsp instead of URL of the requested directory.

Examlpe:
the server is listening port 80 on localhost,

web.xml contains:
        <welcome-file-list>
                <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>

in web root there is a file 'index.jsp' with the next content:
<%= request.getRequestURL() %>

request: http://localhost/ [^]

the index.jsp generates the next response:
http://localhost/index.jsp [^]

I hope the right result should be 'http://localhost/'. [^]


Notes
(0002159)
ferg   
07-30-07 14:05   
server/10r9