m.d.mohamed shakir khan


{ City } trichy
< Country > india
* Profession * programmer
User No # 1431
Total Questions Posted # 0
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 48
Users Marked my Answers as Wrong # 4
Questions / { m.d.mohamed shakir khan }
Questions Answers Category Views Company eMail




Answers / { m.d.mohamed shakir khan }

Question { Saahi, 11278 }

what is webserver? why it is used ?


Answer

Transaction with HTTP request and HTTP response is called
webserver.
Using the internet listening the HTTP request and providing
the HTTP response is also called webserver.It gives only
html output.It will not process business logic .They can
provide Http server.They are static.

Is This Answer Correct ?    3 Yes 1 No

Question { Polaris, 26437 }

What is difference between Forward() and sendRedirect()
methode?


Answer

The RequestDispatcher forward and include methods are
internal to a servlet container and does not affect the
public url of the webresource.

forward() are excute on the server side.

when a forward() is invoked,the request is sent to another
resource on the server without the client being inform that
a different resource is going to process the request.This
occurs completely with in the webcontainer.

sendRedirect() excutes on the client side.

When a sendRedirect()is invoked,it causes the webcontainer
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.

Is This Answer Correct ?    45 Yes 3 No