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 21163 - Should record context attributes after request is processed
Summary: Should record context attributes after request is processed
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: HTTP Monitor (show other bugs)
Version: -FFJ-
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-05 03:21 UTC by Jason Rush
Modified: 2016-07-07 08:53 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Rush 2002-03-05 03:21:34 UTC
Currently Monitor records context attributes only before the request is 
processed.  Since this does not allow the user to see context attributes set by 
filters, forwarding servlets or the JSPs and servlets, the context attributes 
should probably be recorded after the request.
Comment 1 Ana.von Klopp 2002-03-12 01:26:14 UTC
I'm not sure what makes sense to do here... It 
is kind of unusual for servlet requests to result
in new context attributes.

The reason I recorded them beforehand was that I 
believed most context attributes that set at 
startup so they would be set when the servlet
processes or not at all. 

What I think I might to is to check if there
are any new ones post fact and report the 
differences if there are any. Setting them 
as results of request is kind of unusual. 
Comment 2 Ana.von Klopp 2002-05-25 02:52:49 UTC
I don't think this is a P3. Or at least it's an RFE rather than a bug.
Context attributes are usually set through the deployment descriptor
or through the init method of a servlet. It is not something that the
web components update as they go along. I can try to add facilities
for displaying context attributes that have changed as a result of the
request, but I think that's a new feature, not a bug. 
Comment 3 Jason Rush 2002-05-25 05:46:46 UTC
Agreed.  Changing to an enhancement and lowering priority.

So, if a servlet sets a context attribute in its init() method and
that servlet is not loaded on startup, then the first time the servlet
is requested the context attributes will be set but won't be recorded
until subsequent requests are made.

I'm sure this is not a big deal.  I just filed this bug when I was
trying to figure out how to test context attributes being recorded and
they weren't being recorded because I was in the situation above.
Comment 4 Martin Balin 2016-07-07 08:53:34 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