This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Passing Control to JSp / Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Passing Control to JSp / Servlets" Watch "Passing Control to JSp / Servlets" New topic
Author

Passing Control to JSp / Servlets

Nilesh Srivastava
Ranch Hand

Joined: Aug 29, 2003
Posts: 70
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

Joined: Mar 17, 2001
Posts: 213
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.


Sarath Mohan
Nilesh Srivastava
Ranch Hand

Joined: Aug 29, 2003
Posts: 70
Hi Sarath,

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

Thanks in advance.
Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
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

Joined: Dec 11, 2004
Posts: 13410

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


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing Control to JSp / Servlets
 
Similar Threads
Exam 158
Performance issues with Servlets / JSP
avoid port number :8080 in URL ?
Love to code without JSP
JSP & Servlet Differences