• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Passing Control to JSp / Servlets

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic