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 is difference between redirect and forward method?

Answer Posted / vipin gupta trainer

There is a difference between the
HttpResponse.sendRedirect() method and the
RequestDispatcher.foward() method .


the sendRedirect() method leverage Https built in redirect
features to send a message back to the client and foce the
visitors Browser to request a new page .


the forward() method transfer the HttpServletRequest and
HttpServletResponse methods to the indicated file on the
web server. the forward() method never communicates with
the visitors browser .

Is This Answer Correct ?    19 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I use the results of my method? ea: <%! method (int x) { stuff return y; } %> <% out.println(y); %> how can I make this work? "y" is a variable made during the method.

2040


Why is it not necessary to configure standard jsp tags in web.xml?

811


What are request and response objects?

896


What is iselignored in jsp?

914


Why jsp is faster than servlet?

886


Explain the uses of tag.

862


How can I override the jspinit() method within a jsp page?

851


What is jsp expression language and what are it’s benefits?

1083


Can any one explain about the project Approximate shortest distance computing:A query dependent local landmark scheme

1681


How to make a “new line in html” in jsp?

884


Why are the request.getrequestdispatcher() and context.getrequestdispatcher() used?

984


How do you connect to the database from jsp?

928


Mention some important jsp action tags.

902


How to include static files in a JSP page?

940


What is tag file in jsp?

845