Solved

Servlet redirect question

Posted on 2007-11-26
2
628 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 27

Accepted Solution

by:
mrcoffee365 earned 250 total points
ID: 20351348
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
ID: 20353618
use forward instead of redirect
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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…
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.

726 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