how can we execute servelt?
what the use ".war" or ".jar" file creation
Answer Posted / 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 |
Post New Answer View All Answers
How do you define a servlet?
How can the session in servlet can be destroyed?
Write a servlet to upload file on server.
Explain the difference between servlet and cgi?
What’s the difference between forward() and sendredirect() methods?
How is a servlet implemented in code?
How would you create deadlock on your servlet?
What is the difference between servlet and filter?
What is cgi?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
What are the different methods involved in the process of session management in servlets?
Whether we can get deadlock situation in servlets?
How is an application exception handling is done using a servlet?
Why do we have servlet filters?
How native code can be used in a servlet?