how to use servlets with j2ee ?

Answers were Sorted based on User's Feedback



how to use servlets with j2ee ?..

Answer / shanawaz

Servlets is a part J2EE specification and which comes under
web developement category. Servlet API comes mainly two
packages are
1. javax.servlet
2. javax.servlet.http

Is This Answer Correct ?    2 Yes 0 No

how to use servlets with j2ee ?..

Answer / ravikiran.chd

by writing a servlet class where the business logic resides
and the configuration happens with in the web.xml

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Servlets Interview Questions

Why are servlets used?

0 Answers  


What is the difference between ExecuteUpdate and ExecuteQuery?

4 Answers  


How do you create a cookie using servlet?

0 Answers  


How to upload a file to the server using servlet?

0 Answers  


What is pure servlet?

0 Answers  






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!

0 Answers  


program for RequestDispatcher in servlets?

3 Answers   Wipro,


What is a cookie What is the difference between session and cookie

0 Answers  


What is the need of session tracking in HttpServlet ?

3 Answers  


What is the servletconfig object?

0 Answers  


Can we use servlets in JavaScript?

2 Answers  


If we disable cookies in our web page, what will happen?

6 Answers   Zensar,


Categories