About Question enthuware.jwpv6.2.641 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
koitoer
Posts: 5
Joined: Wed Apr 03, 2013 5:59 pm
Contact:

About Question enthuware.jwpv6.2.641 :

Post by koitoer »

I'm partially agree with the response, but I think in most of the cases you will have javax.servlet.ServletRegistration.Dynamic obtained via ServletContext, on this interface you have method for configure async support, as this interface implements Registration.Dynamic interface.

So I think javax.servlet.Registration.Dynamic and javax.servlet.ServletRegistration.Dynamic are valid, also if you are talking about configure async support on servlet, ServletRegistration.Dynamic looks like better option. Just my comment. XD

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.641 :

Post by admin »

The setAsyncSupported method is declared in Registration.Dynamic so this is the only required interface for this purpose. Yes, ServletRegistration.Dynamic can also be used but not required.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

manoj6992
Posts: 3
Joined: Wed Dec 30, 2015 1:17 am
Contact:

Re: About Question enthuware.jwpv6.2.641 :

Post by manoj6992 »

javax.servlet.ServletRegistration extends javax.servlet.Registration: Provides addMapping and addMappings
All Known Subinterfaces: ServletRegistration.Dynamic
Looks like the above explanation provided is wrong.
I don't find any addMappings() for javax.servlet.ServletRegistration Interface.

Below is what I found (ref: http://docs.oracle.com/javaee/6/api/jav ... ation.html)
==================================================================
addMapping(java.lang.String... urlPatterns)
getMappings()
getRunAsRole()

Can you please confirm.

Regards,
Manoj

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.641 :

Post by admin »

You are right, it should be getMappings. Fixed.
thank you for your feedback!
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests