wood burning stoves 2.0*
The moose likes JSP and the fly likes Forward Request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Forward Request" Watch "Forward Request" New topic

Forward Request

Michael Carlson
Ranch Hand

Joined: Sep 11, 2005
Posts: 78
How do you get index.jsp to forward a request to middle.jsp, and be able to access a string var in index.jsp.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60781

Place the string into a request-scoped variable via request.setAttribute().

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Also, read up on RequestDispatcher.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Michael Carlson
Ranch Hand

Joined: Sep 11, 2005
Posts: 78
Thanks again.
I agree. Here's the link: http://aspose.com/file-tools
subject: Forward Request
Similar Threads
start a struts application from its root folder
How can I get to the root of the application.
Problem with RequestDispatcher and relative links
Sending Request to Other page