• 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
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Forwarding from a JSP

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can someone list the different ways to forward from one jsp to another.
I've been trying to usethe JSP forward action and a Request Dispatcher.
Please help or suggest some helpful links.
Thanks
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, the <jsp:forward page=""/> action translates to the RequestDispatcher mechanism in the resulting Servlet.
So the two ways accomplish the same thing. One way is more apt for HTML coders that do not know Java, and the other for Java programmers.
However, if it's a JSP, recommend the JSP forward action.
In both cases the info in the HttpSession and HttpServletRequest is forwarded.
I don't know of any other way of forwarding said data to another JSP unless in a very indirect sendRedirect() with possibly tons of parameter=value pairs appended to the URL.

[This message has been edited by Tony Alicea (edited December 19, 2001).]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Give this a try:

Chris
 
Just the other day, I was thinking ... about this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic