Servlets Interview Questions
Questions Answers Views Company eMail

without session Id can we do any operations like add,update,edit,delete. I saw Session id is loaded for edit and delete action not for add .so am asking this

Syntel,

1 4992

why business logic written using servlets not in jsp. Jsp used for presentation purpose. serlvet used for coding business logic and controller logic. Reason for using servlets in business logic.

5 12006

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 5193

can we use more than one controller in web application

IBM,

3 8998

Hi friends, am newbie to servlet. My interviewer asked why used servlet in your application. i used servlet for controller logic and business logic . is it correct ?

TCS,

5 9253

Hi friends am newbie to servlet. How code reusability easy in servlet. why not in jsp . here reusabillity means only javabeans or any thing else.

1 3569

Hi frnds iam new to Java Kindy any one can provide or me Servlets Example code and can explain to me flow of servlets and as Jsp and Struts and provide to me some sample example on these 3 topic flow,code example,and tutorials,and related websites which i can refer....thanks in advance..........

3 4641

Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com

1931

Hi Friends, Can we make any method thread safe withour synchronized keyword?

2 5678

how JSP can extend servlet or interface ...?

IBM,

3 14110

give the syntax of doGet() and doPost()?

2 23723

how to pass parameter from servlet to html form

4 18854

what is EJB and Java servlet

2 4422

how to make the IP address to .com

iGate,

1 4484

when the several requests comes to server..how it manage the requests

iGate,

4 7045


Post New Servlets Questions

Un-Answered Questions { Servlets }

How do you invoke a servelt?

825


What is servlet container?

867


What is servlet in simple terms?

776


Write all the phases defined in servlet life cycle?

761


Tell us something about servletcontext interface.

820


When should you prefer to use doget() over dopost()?

835


What is meant by cookies?

832


Difference between get and post in java servlets?

754


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!

1995


How can you run a servlet program?

788


Can you use javascript in servlets?

801


Which event is fired at the time of session creation and destroy?

1103


What exactly is a servlet?

702


Explain the methods of request dispatcher in servlet?

718


When a servlet accepts a call from a client, it receives two objects. What are they?

980