Question :What?s the difference between sendRedirect( ) and forward( )
methods? (Servlets)
Answer :A sendRedirect method creates a new request (it?s also reflected in
browser?s URL ) where as forward method forwards the same request to
the new target(hence the chnge is NOT reflected in browser?s URL).
The previous request scope objects are no longer available after a redirect
because it results in a new request, but it?s available in forward.
SendRedirectis slower compared to forward.
www.interviewhelper.org is a hope for all the Job seekers. Users can find unlimited here. These range from technical to HR, from functional to behavioral. www.interviewhelper.org contains in the fields like Ajax,VB,Networking,Sharepoint,JEE,Perl,Javascript,Bioinformatics,Classic ASP,Unix,Linux,Accounting,Oracle DBA,Microprocessor,Bluetooth,jms,jme,.net framework,ABAP,ASP,ASP.net,Basic .net Framework,Interview Questions,C language,C++,database,Oracle,Java,PHP,LAMP,SAP etc.
Saturday, March 14, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment