Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure <error-page> programmatically in Servlet 3.0 #50

Open
glassfishrobot opened this issue Nov 1, 2012 · 5 comments
Open

Configure <error-page> programmatically in Servlet 3.0 #50

glassfishrobot opened this issue Nov 1, 2012 · 5 comments
Labels
Enhancement New feature or request

Comments

@glassfishrobot
Copy link

Web.xml can be programmatically created using Servlet 3.0. But features like , < session-timeout> still needs to be configured in a web.xml.Can you provide a way to programmatically create these as well? Especially, error-page configuration.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by shijas

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
mode said:
While we did provide programmatic APIs for adding servlets, filters and listeners, we have not exposed a full API for processing every element in the descriptor via APIs. Note that the programmatic APIs are not a complete replacement for the descriptor. It still makes sense to specify certain aspects via descriptors - just like in the case of annotations.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
arjan_t said:
Ideally, every element (with some exceptions) would be settable in 3 ways, namely via:

  • The traditional descriptor
  • An annotation
  • A high level programmatic API

Note that JSF 2.2 introduced a method that's between the descriptor and the programmatic API: a call-back in which the descriptor is exposed as a DOM tree and can be programmatically manipulated. See http://arjan-tijms.omnifaces.org/p/jsf-22.html#533 You could call this a low level programmatic API.

It might make sense to adopt the JSF 2.2 method for web.xml.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA SERVLET_SPEC-50

@glassfishrobot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants