GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Certification  >  Sun

 Print  |  
Question:  Waht is Request Dispatcher?explaim with application?



November 11, 2006 01:47:55 #1
 mudiappan.a   Member Since: Visitor    Total Comments: N/A 

RE: Waht is Request Dispatcher?explaim with applicatio...
 

rRequest dispatcher whis communciate dirctecly communicate with data which page destination page .

example:

ServletContext sc=getServletContext();

RequestDipatcher rc =sc.getRequestDispatcher("1.jsp");

rc.forward(req,res);

here u'r

1.jsp is u'r destntion page

one more think i would u that first

senRedirect() this method which time delay control goes to browser and it again go to destination page.that is the difference b/e sendRedirect and Requestdispatcher

     

 

Back To Question