This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes Forward Request Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Forward Request" Watch "Forward Request" New topic
Author

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.
Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56224
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Ben Souther
Sheriff

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Forward Request
 
Similar Threads
Problem with RequestDispatcher and relative links
start a struts application from its root folder
How can I get to the root of the application.
response.sendRedirect();jsp:forward;<c:redirect>
Sending Request to Other page