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
When servlet is loaded?
What is the need of servlet filters?
How do servlets work?
What are the types of protocols supported by httpservlet ?
What are the common methods that are included in the http servlet class?
How to get the server information in a servlet?
Why do we have servlet filters?
What are the steps that are involved in using the httpservlet class?
What is generic servlet class?
What is a cookie What is the difference between session and cookie
Which application server is best for java?
What do you mean by httpservlet?
What are the life cycle methods of the servlet?
Why do we need a constructor in a servlet if we use the init method?
How can an existing session be invalidated?