Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can you maintain servlet chaining?

Answer Posted / bikash khuntia

you can maintain servlet chaining by using:

1. RequestDispatcher
2. include

Step 1: Set the request

request.setAttribute(key,value);

Step 2: Implimanting of RequestDispatcher

RequestDispatcher rsd = getServletContext().
getRequestDispatcher("Servletname");

Step 3: Forward or include the request and response by

rsd.forward(request,response);

rsd.include(request,response);

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the process for chaining servlet?

1103


Explain the servlet context.

1206


What do you mean by deployment descriptor?

1126


Is servlet a server side scripting language?

1187


Does servlet have main method?

1240


What is the major difference between servlet and applet?

1058


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

1178


Explain the jar and war files in servlet?

1152


What are some advantages of storing session state in cookies?

1078


What is the use of java servlet api?

1086


What are the type of protocols used in httpservlet?

1138


What are some disadvantages of storing session state in cookies?

1073


Explain is servlet mapping?

1057


The code in a finally clause will never fail to execute, right?

1146


What are the types of servlet?

1378