How can you maintain servlet chaining?
Answer / 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 |
How many objects of a servlet is created?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
What is httpservlet and how it is different from genericservlet?
Explain the difference between a web server and a web container?
Explain servlet events?
How can a servlet refresh automatically if some new data has entered the database?
3 Answers Citi Bank, CitiGroup, IBM, Satyam,
What is the difference between context parameter and context attribute?
How to pass JavaBeans data to JSP using Servlets?
What are different ways for servlet authentication?
What is api in servlet?
What do you mean by annotations in servlet?
what is the advantage of using Servlets over CGI programming?