Mantis - Resin
Viewing Issue Advanced Details
4117 minor always 07-12-10 10:13 08-03-10 17:02
ferg  
alex  
normal  
closed 4.0.8  
fixed  
none    
none 4.0.10  
0004117: cross-context include does not return proper context
(rep by Brian Deng)

I've found a difference between v3.1 and v4.0 with respect to context dispatching.
Can you confirm whether this change is by design or a bug?

Here's the scenario: I have 2 different webapps (call them appa and appb)

From appa, I do the following:

servletContext.getContext("/appb").getRequestDispatcher("/Controller").include(request,response)

Within the servlet code for /appb/Controller, request.getContextPath() returns "/appb" in 3.1 but it returns "/appa" in 4.0

What is the correct behavior for include() when called across webapp contexts?

Notes
(0004697)
alex   
08-03-10 17:02   
server/10af