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
Describe in brief RequestDespatcher?
request parameter how to find whether a parameter exists in the request object?
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!
What do you mean by httpservlet and how it is different from the genericservlet?
What is servlet container?
What is servlet collaboration?
Explain their methods? Tell me their parameter names also have you used threads in servlet?
Can we fetch the attributes related to a servlet on a different servlet?
Explain the difference between jsp and servlet?
What’s the difference between forward() and sendredirect() methods?
What is URL Encoding?
What is the use of java servlet api?
What is the difference between context parameter and context attribute?
What do you understand by mime type?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?