how can we execute servelt?
what the use ".war" or ".jar" file creation
Answers were Sorted based on User's Feedback
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 |
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 |
What is the disadvantage of cookies?
What are the advantages of servlets over traditional cgi?
What are the different ways we can maintain state between requests?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
How values can be passed from HTML page to servlet?
What are the types of Session Tracking ?
what is the difference between?when we write the code in following manner? class One extends httpservlet { } and class One extends genericservlet { }
What is the use of servletconfig interface?
What are some advantages of storing session state in cookies?
What are different types of SessionTracking?
What is a parser. What does a parser do with a XML? Why do we need it?
What are the various ways of session supervision in servlets?