Home Answers Viewqa Servlet-Interview-Questions Servlet Interview Questions Question and Answers


Servlet Interview QuestionsAsk Questions?
Latest Questions for Servlet Interview Questions
Example of Getting request URL in a servlet
One servlet can be configured to handle a set of requests. So, in Servlet you have to get the URL of the page accessed. How you can get the URL of the page accessed in the Servlet? Thanks
June 4, 2015 at 11:25 AM

username and password in servlet
i'm usng eclipse luna(java programming) Sevlet and apache tomcat8.0 i need to do a login page then after login it must display either invalid user or valid user here is what i done for login page after i login it shows error
September 16, 2014 at 8:08 PM

i want to update values
in my form i have 2 submit buttons one for edit and another for update on page load all my details need to fetch from database and it need to insert automatically in to disabled text boxs and once i press the edit button all text boxs need to enab
August 25, 2014 at 6:06 PM

How do I throw a 404 error from within a java servlet?
How you can write code in Servlet for throwing the httpd error 404? How to add the configuration for handling the not found error in the web.xml file? Thanks
July 7, 2014 at 12:26 PM

Servlet Tutorial for beginner
Hi, I am beginner in Servlet. I have learned the JSP a little bit. Now I wan't to learn Servlet. Tell me the URL to learn Servlet? Thanks
January 4, 2014 at 10:30 PM

servlet code to update password?
Create a servlet page which helps the user to update his password. The user should give the username,old password,new password,confirm password. The updation is applicable only for valid users.then Store it into a table. please tell me the
October 28, 2013 at 8:45 PM

how many ways are there to invoke a servlet object?
how many ways are there to invoke a servlet object?
April 28, 2013 at 12:20 AM

java referer url
How to get the referer url in Java? Thanks
February 12, 2013 at 4:12 PM

I have two Servlet Containers, I want to send a request from one Servlet from one container to one Servlet in the other container, How can I do?
February 6, 2013 at 4:33 PM

write and test a function named mirror that is passed an array of n floats and returns a newly created array that contains those n floats values in reverse order . for example, the call of mirror function would transform the array {10.1,11.2,8.3,7
December 12, 2012 at 9:49 PM

Session Object from request
Why are we getting session object from request object? Why are we adding cookie object into response object? Why are we getting cookie object from request object? I know all methods are available its relevant class. is there any reason for
December 12, 2012 at 7:01 PM

how to create alert message after data submitted into database
I want to create alert message box after data stored into database and redirect to another page, how to do that
September 3, 2012 at 12:03 PM

How to Display values from databse into table
I want to display values from database into table based on condition in query, how to display that? For example i have some number of books in database but i want to display books based on either bookname or authorname, for this i created one htm
August 26, 2012 at 6:28 PM

calling servlet from jsp
how to call a servlet from jsp
August 14, 2012 at 5:54 PM

what is the duties of response object in servlets?
August 11, 2012 at 9:37 PM

can we store the data in first init method()
August 1, 2012 at 3:12 PM

servlet to applet communication
good morning sir. how to read one text field from servlet and display that value in applet? thanks
July 31, 2012 at 11:51 PM

sir I want to create an html page which is going to be interact with the servlet program. i want to do it by using eclipse ide can you give me the step by step as well as codes? thanks
July 27, 2012 at 11:12 AM

what is response.redirct() means
what is response.redirct() means in servlet....can anyone tell me
July 17, 2012 at 12:04 AM

How to retrive database information using servlet and disply in table format in browser
Hi, any one send code how to retrive the data base information in table format in web browser
July 16, 2012 at 2:27 PM

View all discussion for Servlet Interview Questions