how can we execute servelt?

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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe in brief RequestDespatcher?

677


request parameter how to find whether a parameter exists in the request object?

666


Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!

1909


What do you mean by httpservlet and how it is different from the genericservlet?

630


What is servlet container?

753






What is servlet collaboration?

748


Explain their methods? Tell me their parameter names also have you used threads in servlet?

671


Can we fetch the attributes related to a servlet on a different servlet?

733


Explain the difference between jsp and servlet?

661


What’s the difference between forward() and sendredirect() methods?

655


What is URL Encoding?

703


What is the use of java servlet api?

671


What is the difference between context parameter and context attribute?

610


What do you understand by mime type?

664


What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

628