Servlets Interview Questions
Questions Answers Views Company eMail

can we create more than ServletContext and ServletConfig in your application

Patni,

6 13750

can servlet have instance variables?

Syscon, Wipro,

8 23634

difference between sendredirect,forward and url rewritting

Patni, TCS,

5 14328

if u havea .class file ,how can u say whether it is servlet or not ,dont use java decompliler

Polaris,

4 6673

i have 500 jsp in my application ,with same forward name,it lokks for appropritae jsp from 1 to 500,but i want to send response to 498 page,what should i do

Caritor, Globerian,

2 6419

hi.... i have problem in running of servlet. i am using Tomcat server in my pc.. The problem is when i am click on strat it will display like below FAIL - Application at context path /first could not be started.. How i can slove the problem.. help plz

3 4058

what is session tracking?what are types of session tracking ?and when to cookies,when to use sessionmanagement,whent use url rewriting technique,plz explain briefly?

Satyam, TCS,

6 41640

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??????????????????

ProgressSoft,

3 5719

Hi............ When i am started the tomcat server it started. but it not load the jar files wht we deploving file.suppose we load the wapp folder in webapps. At running time it show the below error in tomcat server INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 5.0\web apps\wapp\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, s ection 9.7.2. Offending class: javax/servlet/Servlet.class How to slove this problem in my system. plz give answer for this problem.

5 7447

how a servlet is instantiated, whether the container calls init() or by calling any other method? please somebody reply..

Siemens,

6 20808

how to use servlets with j2ee ?

Tech Mahindra,

2 5912

what is the difference between ServletContext and ServletConfig

7 9556

How can a servlet refresh automatically if some new data has entered the database?

Citi Bank, CitiGroup, IBM, Satyam,

3 17125

What is the difference between Get and Post Method?

T3 Softwares,

12 17447

Difference between web container & web server........... Difference between web server & application server?????????

TCS,

8 29374


Post New Servlets Questions

Un-Answered Questions { Servlets }

Which http method is said to be non-idempotent and idempotent?

590


How can we refresh automatically when new data has entered the database?

599


What is the use of java servlet api?

574


How do I use cookies to store session state on the client?

513


Why do you use session tracking in httpservlet?

607






What is the use of servlet context?

511


What is the major difference between servlet and applet?

525


Explain Action Servlet?

599


What are the different ways we can maintain state between requests?

548


Whether thread can be used in servlets?

704


Write the code to get the server information in servlet.

550


What exception should be thrown when servlet is not properly initialized?

537


What is a web container and what is its responsibility?

504


What is the difference between using getSession(true) and getSession(false) methods?

554


Explain session tracking and its importance?

529