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 Spring in Action this week in the Spring 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: 61419
    
  67

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