how can we execute servelt?

what the use ".war" or ".jar" file creation

Answers were Sorted based on User's Feedback



how can we execute servelt? what the use ".war" or ".jar" file creation..

Answer / rajendra kumar

war is a web archive which is used for web app and their
directory structure we can execute servlet by mapping in xml
file and called servlet by do get or do post metod.
jar file is java archive for simple a java program class
file and source code archive

Is This Answer Correct ?    11 Yes 1 No

how can we execute servelt? what the use ".war" or ".jar" file creation..

Answer / ramesh

Whenever client send the request for the first time server will create servlet object and after that it was using that object until we undeploy or shutdown the server
Generally we deliver the project to the client in the form of jar files . Suppose the project is a webbased project we deliver that project in the form of war files . Suppose that project is a normal core java project we deliver that project in the form of jar files. But to create jar or war files we use 'jar' command only , but the extension will be changed

ex:jar -cvf myproject.jar
jar -cvf myproject.war

Is This Answer Correct ?    7 Yes 0 No

how can we execute servelt? what the use ".war" or ".jar" file creation..

Answer / noorbasha

I hope servlets are executed by adding the jar file to the
folder .war files r used for extacting the sfwares

Is This Answer Correct ?    8 Yes 12 No

Post New Answer

More Servlets Interview Questions

What is the directory structure of web application?

0 Answers  


What is the difference between Get and Post Method?

12 Answers   T3 Softwares,


What is the need of session tracking in HttpServlet ?

3 Answers  


Explain the differences between jsp and servlet.

0 Answers  


What is done after deploying a war file and before client gives a request

2 Answers   Bosch,






How are filters?

0 Answers  


What is the major difference between servlet and applet?

0 Answers  


Can you use javascript in servlets?

0 Answers  


how the server will know its the same jsp page?

3 Answers   HCL,


What are all the ways for session tracking?

0 Answers  


What is difference between server and servlet?

0 Answers  


Can we write a constructor for a Servlet class ? if yes how ? if no why not ?

10 Answers  


Categories