web.xml file is missing in my eclipse IDE

0 votes
I am writing a simple addition program using servlets. I wrote .html file and java class file for the code. But as I learnt that we should add mappings to web.xml file which will be present in web content -> WEB-INF->lib. But in this location, i can't find my web.xml file.

Can anyone help me with how to locate web.xml file?
Nov 27, 2018 in Java by Jins
• 140 points
71 views

1 answer to this question.

0 votes

Very simple. You will find Deployment Descriptor Stub in your Project folder. Click on that and click on Generate Deployment Descriptor Stub. Your web.xml file will be generated automatically.

You can refer below image.

answered Nov 27, 2018 by Omkar
• 67,480 points

Related Questions In Java

+2 votes
10 answers

How to import a jar file in Eclipse?

Go to your project right click and ...READ MORE

answered Dec 10, 2018 in Java by Hola77
52,043 views
0 votes
1 answer

Which is the standard concise way to copy a file in Java?

As toolkit mentions above, Apache Commons IO ...READ MORE

answered Nov 15, 2018 in Java by Frankie
• 9,810 points
21 views
0 votes
1 answer
+5 votes
3 answers

How to execute a python file with few arguments in java?

You can use Java Runtime.exec() to run python script, ...READ MORE

answered Mar 27, 2018 in Java by DragonLord999
• 8,380 points

edited Nov 6, 2018 by Omkar 8,195 views
0 votes
1 answer

How to read an XML file using XPath in Java?

Import the packages required to work with ...READ MORE

answered Jun 14, 2018 in Java by Akrati
• 3,150 points
696 views
0 votes
1 answer

Difference between JSF, Servlet and JSP?

Servlet - it's java server side layer. JSP ...READ MORE

answered Jul 2, 2018 in Java by samarth295
• 2,190 points
255 views
0 votes
1 answer

How to pretty print XML from Java?

Transformer transformer = TransformerFactory.newInstance().newTransf ...READ MORE

answered Jul 4, 2018 in Java by Akrati
• 3,150 points
121 views
0 votes
1 answer

org.xml.sax.SAXParseException: How to handle this exception?

This is often caused by a white ...READ MORE

answered Jul 9, 2018 in Java by sharth
• 3,320 points
690 views
+28 votes
3 answers

How can we set java.library.path in Eclipse?

Go into the library settings for your ...READ MORE

answered Jul 3, 2018 in Java by sharth
• 3,320 points
1,796 views
0 votes
2 answers

What is the meaning of purpose of this command: java -jar <some jar file>.jar ?

JAR (Java Archive) file is a package file ...READ MORE

answered Mar 21 in Java by Omkar
• 67,480 points
41 views