Can we use the constructor, instead of init(), to initialize servlet?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Servlets Interview Questions

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  


Difference between GET and POST?

0 Answers  


Hi Frieds, I am new to servlet why to use servlet in webapplication. what i know is " use servlet as a controller in mvc and to implemnent business logic . is it correct ? One more thing reason for implementing business logic with servlets , why not jsp.

4 Answers  


what are the way a client can be tracked?

3 Answers   ABC, IBM,


What are the functions of Servlet container?

0 Answers  






Hi Friends, Suppose you have a web appliction which consists of 100 clients are connected with Connection pooling and they are associated with 100 connection objcet and connected with DB sever,Due some problem DB-Server suddenly crashed and server came to down state for a while after few minutes DB-server once again up,Now how will I manage my Pool Management with my 100 clients...can any one tell me??????????????????

3 Answers   ProgressSoft,


How do u authorize and authenticate without <auth> of web.xml

1 Answers   Bosch,


What do you mean by filter in servlet?

0 Answers  


What do you mean by chaining in servlet?

0 Answers  


what happens if we wont use destroy()?

4 Answers   IBM,


Is servlet a server side scripting language?

0 Answers  


Can we use servlets in JavaScript?

2 Answers  


Categories