Servlet Chaining? How do you do the Filtering in Servlets?

Answers were Sorted based on User's Feedback



Servlet Chaining? How do you do the Filtering in Servlets?..

Answer / nirmal yadav

in the sevlet chaining multiple servlets involved in a
processing single request i.e. the output one servlet is
passed as input to the next servlet in the chain ,the output
from the last servlet in the chain is returned to the
browser as response regarding the request

Is This Answer Correct ?    13 Yes 0 No

Servlet Chaining? How do you do the Filtering in Servlets?..

Answer / manasa

More than one servlet involved in processing a request is
known as "servlet-chaining"

Is This Answer Correct ?    14 Yes 3 No

Servlet Chaining? How do you do the Filtering in Servlets?..

Answer / gnani

sevlet chaining is nothing but
multiple servlets involved in a processing single request is
known as servlet chaining

Is This Answer Correct ?    8 Yes 4 No

Servlet Chaining? How do you do the Filtering in Servlets?..

Answer / pinkal

Servlet chaining is a technique in which two or more
servlets can cooperate in servicing a single request.

Is This Answer Correct ?    4 Yes 1 No

Servlet Chaining? How do you do the Filtering in Servlets?..

Answer / k d rana

when request come from browser ,container send request and response object as a parameter to servlet , now when 2 or more servlet use same request object, means we forward existing request and response object to next servlet using
******
requestDispatcher rs=req.getrequestDispatcher("url of next servlet");

rs.forward(req,resp);

*******
method ,and so on ,thus we make chain of servlet to resolve same request using same request object
this is know as servlet chaning..

Is This Answer Correct ?    3 Yes 1 No

Servlet Chaining? How do you do the Filtering in Servlets?..

Answer / kishore m

Filters have the same name with the servlet name .in this
way we have to mention in deployment discripter i.e.web.xml
in application.In this filters are enabled by calling the
servlet.actually filters placed in b/w the client and
server.

Is This Answer Correct ?    5 Yes 4 No

Post New Answer

More Servlets Interview Questions

Describe some assignments that are executed by 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,


Explain get and post.

0 Answers  


Given the request path below, which are context path, servlet path and path info?

0 Answers  


How we can get ip address of client in servlet?

0 Answers  






What's the servlet interface?

0 Answers  


when the jsp page is translated to servlet?

5 Answers   HCL,


Explain url encoding?

0 Answers  


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

1 Answers   Syntel,


how the HTML data stored in web server?

0 Answers   TCS,


What is a servlet engine?

0 Answers  


What happens, if server sends a cookie to a browser that doesn't supports cookies?

2 Answers  


Categories