jakartaee / servlet

Jakarta Servlet
https://eclipse.org/ee4j/servlet
Other
253 stars 81 forks source link

Fix wrong description in Chapter4.4 #559

Closed OnlyWick closed 8 months ago

markt-asf commented 8 months ago

This change is not correct. The "instance of" is important here. Also grammatically, "an instance" would need to change to "a servlet" or "a filter".

What problem do you see here that you are trying to solve?

OnlyWick commented 8 months ago

These methods accept a parameter of Class type, Class <? extends Servlet> servletClass.

OnlyWick commented 8 months ago

It is usually used like this, ServletContext.addServlet("xxx", XXX.class). Is it not correct?