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

what happens if we wont use destroy()?

Answer Posted / aru

forward is server side redirect and sendRedirect is client
side redirect. When you invoke a forward request, the
request is sent to another resource on the server, without
the client being informed that a different resource is going
to process the request. This process occurs completely with
in the web container And then returns to the calling method.
When a sendRedirect method is invoked, it causes the web
container to return to the browser indicating that a new URL
should be requested. Because the browser issues a completely
new request any object that are stored as request attributes
before the redirect occurs will be lost. This extra round
trip a redirect is slower than forward. Client can disable
sendRedirect.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the requirement of servlet config and servlet context implemented and how are they implemented?

1006


What is the use of welcome-file-list?

1035


What is the difference between sendredirect() and forward() in a servlet?

1019


If a servlet is not properly initialized, what exception may be thrown?

1184


What are the different methods involved in the process of session management in servlets?

1271


How is a servlet implemented in code?

1083


What is difference between PrintWriter and ServletOutputStream?

1294


What is meant by a web application

1021


Explain the difference between generic servlet and http servlet?

999


Is it possible to have a constructor inside the servlet?

1015


What are all the protocols supported by httpservlet?

1282


Can you call a jsp from the servlet?

1023


What is the directory structure of a war file?

1170


What is the use of servletconfig interface?

1049


What is the dispatcher servlet?

986