How to add the servlet api to my pom.xml?

How to add the servlet api to my pom.xml?

Hi,

I have learned Maven Web Application: Creating web application in Maven 3 from your website.

Now I have to add the servlet api in pom.xml file.

Let's know how to add the servlet api to my pom.xml?

Thanks

View Answers

April 18, 2014 at 2:38 PM

Hi,

Use the following code in your pom.xml file:

<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>servlet-api</artifactId>
    <version>2.5</version>
    <scope>provided</scope>
</dependency>

Thanks

Ads









Related Tutorials/Questions & Answers:
How to add the servlet api to my pom.xml?
How to add Click to copy function to my wordpres blog?
Advertisements
How to add a column with checkboxes for each record in my table in JSP
How to add google page in my webpage using jquery ajax.
how to add the calendar to the dynamic rows in html or jsp page - JSP-Servlet
How to add download option for openwith and saveAs on exporting file to excel in servlet
How to add download option for openwith and saveAs on exporting file to excel in servlet
What is wrong with my servlet?
ModuleNotFoundError: No module named 'my-add'
how can i add wirecard option(or button ) at my web page plz tell all steps? View Answers
in my project, i have to add scrollbars to a panel,. i need some example on it,how to doit.
How to add "View more results" kind of functionality in my PHP based website?
How to add
sir, how to read empty cell in excel file using poi and how to add this empty cell to arraay list and the following is my code
in my project, i have to add only vertical scrollbar to a panel,but not horizontal scrollbar. i need some example on it,how to doit.
I need add my java program with a picture.
How to call servlet in JSP?
How to use Servlet and Ajax?
how to add to numbers in java
How to add JTable in JPanel
how to add dynamic data
how to add mulitiple projections
how to add plugins into eclipse
maven artifact servlet-api
maven artifact servlet-api
How to add BigDecimal in Java?
how to add a file in GZIP
how to add scrollbar to JFrame
how to add scrollbar to JFrame
how to add scrollbar to JFrame
how to add scrollbar to JFrame

Ads