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
Solved

Servlet redirect question

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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What is the latest versions eclipse neon 2 173
diffSum example 4 50
egit plugin on eclipse 8 82
ejb stateless example 2 19
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.

809 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