• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing Control to JSp / Servlets

 
Nilesh Srivastava
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I would like to know what all ways are there through which we can forward a request / pass a control to JSP / Servlet page.

Please give me full syntax's as well.

Would appreciate your help.

Also, I came to know that "Core Servlets and JSP by Marty Hall"
is a good book to consult. Can anyone tell me if there is any soft copy available on NET.

Due Regards,
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thru Form action
Thru <a href>

forward, include using Request dispatcher objects allows to pass control to jsp and servelts.

sendRedirect is another which will be new request to the jsp or servlet from anther jsp or servlet.


Better consult a good book or web resources for accurate syntax.
 
Nilesh Srivastava
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sarath,

Can you tell me what is the difference between these two.

Thanks in advance.
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
forward happens at the server side and maintain the previous request. All others create a new request and happens at client side.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nilesh Srivastava:

Also, I came to know that "Core Servlets and JSP by Marty Hall"
is a good book to consult. Can anyone tell me if there is any soft copy available on NET.


http://pdf.coreservlets.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic