Solved

Servlet redirect question

Posted on 2007-11-26
2
621 Views
Last Modified: 2013-11-24
I redirect from my servlet to a jsp page.The request object i had in servlet is no longer available in the jsp.How can i get the request object in the jsp ?Or is there some other startegy to get data from the parent(page where we write response.sendRedirect) to the page where we are redirected ?
0
Comment
Question by:amhicraig
2 Comments
 
LVL 26

Accepted Solution

by:
mrcoffee365 earned 250 total points
Comment Utility
Usually we save data like that in the session.  Not, typically, the actual request object, but the data we want to save between page executions.

This is an excellent use of session Java beans, by the way.  Which does the same thing (saving data in a session) but handled more elegantly.
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
use forward instead of redirect
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now