Choose the difference between 2.5 and 3.0 when creating a new Dynamic Web project in Eclipse (it involves the servlet and tomcat issues)

Source: Internet
Author: User

1, refers to the version of the servlet, is 2.5 or 3.0

servlet3.0 Support Async Later

2. Dynamic Web module and the corresponding Tomcat version

Http://blog.sina.com.cn/s/blog_529aacbd01014cc8.html

3.

what version of the Java API does the Servlet.jar inside Tomcat correspond to?

I think this watch is very useful to you.

Ask:
I see this watch, but I don't see how it is, what's the servlet/jsp version inside? is the. class file inside the Servlet-api.jar not an implementation of the class inside the Java EE servlet package?
Chase Answer:
Servlet/jsp, of course, has its own version. Every major upgrade will mean a version upgrade. Maybe you're probably struggling with the relationship between Servlet-api and Java EE now. Here's an example: after MyEclipse 8 new webproject, MyEclipse automatically references Java EE 5 Libraries in the project, which includes Javaee.jar,jsf-impl.jar,jsf-api.jar,jstl-1.2.jar these four packages, where the Javaee.jar package includes the class that writes the servlet, creating a new servlet in the project. After posting the project to Tomcat with MyEclipse's release feature, the Jsf-impl.jar,jsf-api.jar,jstl-1.2.jar three packages are also published in the application's Lib directory. Javaee.jar but did not publish together in the Lib. Tomcat boot application is normal, but should be error can not find HttpServlet to AH. Originally in the Tomcat installation directory in the Lib there is a servlet-api.jar, in this package also includes the writing servlet class, so Tomcat launcher application did not find HttpServlet to error.
Ask:
Well, you said these I understand, basically also solved my question, thank you, I also want to ask again, above you give the figure in the last column of "Minimum Java version" refers to Java EE, or javase version? I think it's a Java EE version, right?
Chase Answer:
Javase. You know, Tomcat was written in Java, too.

4. servlet Web. XML header information for different versions (2.3,2.4,2.5,3.0)
http://blog.csdn.net/z69183787/article/details/36008097

Basic knowledge of 5.Servlet and Tomcat
http://blog.csdn.net/pirateleo/article/details/8574973
6.
Servlet 3 Features: Asynchronous servlethttp://www.importnew.com/8864.html


Choose the difference between 2.5 and 3.0 when creating a new Dynamic Web project in Eclipse (it involves the servlet and tomcat issues)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.