I am upgrading servlet 4.0.1 to servlet 5.0. I was using below maven dependency for servlet 4.0.1
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
<scope>provided</scope>
</dependency>
When I am upgrading to servlet 5.0 then I see that There is a new term 'Jakarta' and servlet5 comes with Jakarta API with below maven dependency.
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>5.0.0</version>
</dependency>
So, there are below questions I tried to search on the internet but couldn't find
- Please explain about this new term Jakarta like how does this come into the picture?
- is this the only way to use Jakarta APIs to upgrade servlet 5.0. can we use old 'javax.servlet-api' ?
- I see, Jakarta was also there in the 4.0 version but we were not using it. does it not having any dependency with servlet 4. ? https://mvnrepository.com/artifact/jakarta.servlet/jakarta.servlet-api
- what are the other things need to be required to upgrade servlet 4.0 to servlet 5.0?
Please also suggest any docs for reference if any