Comments (10)
- Issue Imported From: https://github.com/javaee/servlet-spec/issues/9
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: @shingwaichan
from servlet.
@glassfishrobot Commented
Reported by bleathem
from servlet.
@glassfishrobot Commented
rojkov said:
I think this needs a use case. I can't not suggest that parsing web.xml yet another time should be avoided. Possibly, we can define a pre-start phase that makes the xml available in parsed state.
from servlet.
@glassfishrobot Commented
bleathem said:
A use case is as I stated in the issue description, where one wants to access the web.xml from a CDI extension. For instance, to determine the JSF project stage, to conditionally activate different beans in production and development.
from servlet.
@glassfishrobot Commented
@shingwaichan said:
At this time, we don't expose the content of web.xml in Servlet API.
Where do you want to access the information contained in the descriptor and how can we reconcile the information specified by annotation?
It will be consider in the future release.
from servlet.
@glassfishrobot Commented
@shingwaichan said:
Adding it to the bucket of FUTURE_RELEASE
from servlet.
@glassfishrobot Commented
@edburns said:
Would it be sufficient to just make the WEB-INF/web.xml accessible or must all the fragements be considered as well? Also, we need to consider how useful this is in the case where the configuration comes from annotations.
from servlet.
@glassfishrobot Commented
gregwilkins said:
Also it would be good to have "prior to ServletContext initialisation" defined. Is this during calls to ServletContainerInitializers? In which case much of the content of the web.xml is available via API (and if not then we could add some more API).
I would really rather avoid encouraging other parsing web.xml, as this does not cover configuration from fragments, API, annotation etc.
from servlet.
@glassfishrobot Commented
This issue was imported from java.net JIRA SERVLET_SPEC-9
from servlet.
@gregw My suggestion here would be to look at what is missing from the ServletContext API that those CDI extensions are looking for. As CDI is bootstrapped using a ServletContainerInitializer it can access the ServletContext API at that time. Where the actual configuration came from should be irrelevant to the CDI extension as the ServletContext API is the 'materialized view' of a web application where configuration is concerned.
from servlet.
Related Issues (20)
- Some ServletContext getters still throw UnsupportedOperationException HOT 1
- TCK Challenge: Cookie setMaxAgePositiveTest using incorrect CookiePolicy for Date parsing HOT 7
- TCK Challenge: doHeadTest shouldn't validate optional payload header fields HOT 7
- TCK Challenge: isTrailerFields JavaDoc and default implementation inconsistent HOT 7
- Add read/write from/to ByteBuffer HOT 1
- [TCK Challenge] invalidateHttpSessionxTest HOT 4
- [TCK Challenge] A number of cross context HTTP session tests are failing HOT 14
- [TCK Challenge] dispatchAfterCommitTest4 HOT 2
- [TCK Challenge] dispatchAfterCommitTest5 HOT 2
- [TCK Challenge] object identity test on ServletRequests in listeners vs servlets HOT 6
- [TCK Challenge] inconsistent testing of cookies HOT 7
- Is the maintenance plan updated for jakarta servlet-4.0.x? HOT 3
- Add PATCH support in HttpServlet.java HOT 3
- Session 9 (Dispatching Requests) is missing information on jakarta.servlet.*.mapping request attributes
- HttpServletRequest and changes to attributes event HOT 1
- ServletContext - getContext(String uripath) method confusing javadoc HOT 4
- [TCK Challenge] check for object identity in dispatcher test HOT 2
- [TCK Challenge] attempting to writing more than content-length bytes HOT 1
- License oddities in `jakarta.servlet-api-6.0.0.jar`
- Couldn't resolve specified result-set mapping name HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from servlet.