Servlet 3

Hi Vaadin company!
Do you plan to use the Servlet 3 instead of the Servlet 2.3 in your vaadin 6.x library?

Thanks for your reply!

AFAIK, Vaadin6 is fully compatible with Servlet spec 3, see e.g.
this article
. Is there any specific feature that you are wondering about?

I mean that vaadin AbstractApplicationServlet extend HttpServlet v. 2.3 and I can’t access to new methods login, logout that are implemented in Servlet v3.

For information:

MANIFEST.MF

Manifest-Version: 1.0
Created-By: 1.5.0_22-b03 (Sun Microsystems Inc.)
Import-Package: javax.servlet; version=“2.3.0”,javax.servlet.http; ver
sion=“2.3.0”
Bundle-RequiredExecutionEnvironment: J2SE-1.5

Bundle-Version: 6.8.1

I have a sneaking suspicion that with Vaadin 7 so close to release, no major changes will be done to Vaadin 6. Don’t know the Servlet version of Vaadin 7 though, so can’t help you with that.

We have promised that Vaadin 6.x will work with servlet containers that only support Servlet API 2.3, which means that we can not suddenly change AbstractApplicationServlet to extend some other version of HttpServlet.

The same also goes for Vaadin 7.x where we have promised support for servlet containers supporting Servlet 2.4 and VaadinServlet in Vaadin 7 will thus extend the 2.4 version of HttpServlet. Considering the reactions when it was announced that Vaadin 7 would require Java 6 instead of the previously announced Java 5 support, I can only imagine the uproar that would come from requiring Servlet API 3.0.

From what I have understood, you would still be able to use the features from Servlet API 3.0 as long as you have that version of the API on your classpath and run your web app in a servlet container supporting that version of the API as the Servlet API versions should be backwards compatible (see e.g.
http://stackoverflow.com/questions/860938/are-the-java-servlet-apis-backwards-compatible
).

Thanks for your reply!

That information is coming from the manifest of some war file, right? Vaadin’s AbstractApplicationServlet extends HttpServlet, not any particular version of the servlet. The version of HttpServlet that you would use depends on whatever Java EE server and its libraries that you’re using. I was using Vaadin with Servlet 3.0 more than 2 years ago:
https://blogs.oracle.com/bobby/entry/authentication_without_the_form

Cheers,
Bobby

p.s. Note that all the sources in that blog now live at oracle.com, but the links in the page still point to sun.com. I don’t work there any more to fix that.