This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 94662

Summary: Missing contextPath in EL code competion
Product: javaee Reporter: Petr Pisl <ppisl>
Component: JSPAssignee: issues@javaee <issues>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Petr Pisl 2007-02-06 16:14:47 UTC
The request property of pageContext should also offer context path in cc
(${pageContext.request.|}). So the result should be
${pageContext.request.contextPath}
Comment 1 Tomasz Slota 2007-02-06 16:27:14 UTC
Taking over
Comment 2 Tomasz Slota 2007-03-23 09:39:30 UTC
javax.servlet.jsp.PageContext.getRequest() formally returns ServletRequest and not HTTPServletRequest, 
which has the field contextPath. Can we really assume PageContext.getRequest() is always 
HTTPServletRequest? And if so is it worth the hack?
Comment 3 Petr Pisl 2007-03-23 10:54:34 UTC
Tomasz, you are right. On the other hand  99% of the request are
HTTPServletRequest in jsp/html pages. So I think it worth doing this hack.
Probably we  should somehow mark these items in the code completion window to
users know, that this is HTTPServletReqeust. Do you think, that this is doable
in a way?
Comment 4 Tomasz Slota 2007-03-23 11:02:16 UTC
It is doable, although I am not keen on doing it. Are you aware of other situations like this? We could think 
of a general mechanism. 

Changing issue type to enhancement. 
Comment 5 Jiri Prox 2007-09-17 21:39:59 UTC
Obsolete milestone, please reevaluate
Comment 6 Martin Balin 2016-07-07 08:56:49 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss