[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

JServ RequestDispatcher


gnujsp folks,

Sorry if this topic has come up before, but the list archives don't
appear to be working so I can't check.

I think that gnujsp's request wrapper for included .jsp pages (via the
jsp:include tag) is not implemented correctly:

Say I have a jsp quiz.jsp which jsp:includes header.jsp

header.jsp should be able to access *either* the original request path
(ie "/quiz.jsp") or it's own request path (ie "/header.jsp"). One of
these should be available by calling request.getRequestURI() and the
other should be available by calling request.getAttribute("javax.servlet.
include.request_uri"). 

I can't work out which should be which because the servlet specification 
and every documentation I've found has been quite vague about this point.

But I do know that using GNUJSP, both values are the same - the value
of the included .jsp URI, which is clearly wrong from what I can tell.

Does anybody know what the correct behaviour is? I can patch the source
code to do the right thing if need be...

Please reply to me personally as I'm afraid I'm not a list member.

Thanks,

Darren Scott
e-xentric (uk) ltd