aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
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: 60053
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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://aspose.com/file-tools
 
subject: Forward Request
 
Similar Threads
How can I get to the root of the application.
start a struts application from its root folder
Sending Request to Other page
response.sendRedirect();jsp:forward;<c:redirect>
Problem with RequestDispatcher and relative links