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

Difference between Include, Forward and sendRedirect in
Servlet?

Answer Posted / samit katiyar

forward() should be called before the response has been
committed to the client (before response body output has
been flushed). If the response already has been committed,
this method throws an IllegalStateException. Uncommitted
output in the response buffer is automatically cleared
before the forward.

While with include()...... The request and response
parameters must be either the same objects as were passed
to the calling servlet's service method or be subclasses of
the ServletRequestWrapper or ServletResponseWrapper classes
that wrap them.

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which method is called when reference variable is passed in system.net?

2397


What do you mean by default initialization in java servlet?

1093


What is the importance of init() method in Servlet ?

1076


How can a servlet be used to generate plain text instead of html?

945


What is http servlet? Explain with the help of an example.

1062


Explain the methods of request dispatcher in servlet?

1034


What are different methods of session management in servlets?

1268


How do we translate jsp?

1046


Explain is servlet mapping?

1004


What is a deployment descriptor?

1097


How do you design microservices?

1071


Explain the war file?

1057


What is the difference between Servlets and Applets?

1031


Which method of the httpservletrequest object is used?

1084


Which http method is said to be non-idempotent and idempotent?

1041