?
Solved

Servlet redirect question

Posted on 2007-11-26
2
Medium Priority
?
632 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
mrcoffee365 earned 750 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

Basic Security of Your VPC

So, you’ve got this shiny new VPC and a fancy new application configured on your EC2 servers ready to go. This application is only accessible from your computer, which is great for security, but you need your users to be able to access it! So, what’s the easiest way to do this?

Question has a verified solution.

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

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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.

801 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