• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding getRequestDispatcher()  RSS feed

 
Kesavulu Thalachiri
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Please any one can explain of my following doubts.Iam new to servlets and jsp.

A)servletContext.getRequestDispatcher();
B)servletRequest.getRequestDispatcher();
C)HttpServletResponse.sendRedirect();
D)<jsp:forward >

Questions:
1) Explain the above functions usage in tech terms.
2) What is the difference between A and B?.
3) What is the difference between D and forward of (A or B)?.
4) What is the difference between C and D?.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Our first answer for something like this (that looks like homework) is to ask:
What do you think? Have you checked the various APIs?
Sorry I'm not being immediately helpful, but we prefer to feed people for a lifetime, not for a day.
Dave
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!