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 control flow in servlet when we send a request?

5 Answers   TCS,


Hi Frieds, I am new to servlet why to use servlet in webapplication. what i know is " use servlet as a controller in mvc and to implemnent business logic . is it correct ? One more thing reason for implementing business logic with servlets , why not jsp.

4 Answers  


Can we override servlet service method?

0 Answers  


How to work with Chinese login page (internationalization).if he enters user name and password in chinese, how is it converted to English and validate in db? And in reverse it should display welcome message in Chinese,if user is valid

4 Answers   Bosch,


What is session?

0 Answers  






Is Servlet Class Thread safe?????? How to make servlet Thread safe ???

4 Answers   Cognizant,


How we can create war file in servlet?

0 Answers  


How can a servlet refresh automatically if some new data has entered the database?

3 Answers   Citi Bank, CitiGroup, IBM, Satyam,


What is pure servlet?

0 Answers  


Explain the different ways for servlet authentication?

0 Answers  


How the servlet is loaded?

0 Answers  


What is the <load-on-startup> element?

0 Answers  


Categories