?
Solved

Redirecting one servlet into a Frame

Posted on 2001-06-20
4
Medium Priority
?
250 Views
Last Modified: 2013-11-24
Hi,

I got one problem... after checking some conditions i need to call another html page which is possible through res.sendRedirect(URL) method.
calling html is in one frame...i need to call the new html into the same frame...(these htmls are actually servlets).
But when i call i am loosing other frames ....is there any way to do this in servlets....

Thanks in Advance
maluri
0
Comment
Question by:maluri
[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
4 Comments
 
LVL 2

Expert Comment

by:vpadma
ID: 6212034
You can set the target attribute to self.
TARGET=_self
This will work.

Padma.
0
 

Author Comment

by:maluri
ID: 6212307
If that is html page we can specify target as something...
but this is in servlet...how to specify the target...
0
 

Expert Comment

by:Nachiap
ID: 6212977
In the submiting servlet aslo u can set the target.
if you want the response in the same frame ,just give target of that form aobject as _self.
this is possible in servlets also ;-)
0
 
LVL 2

Accepted Solution

by:
vpadma earned 150 total points
ID: 6214461
Maluri,
Yeap, as pointed out by Nachiap, it is very much doable with servlets. Basically we need to understand that servlet finally renders html one way or the other and it IS possible to do all the stuff you would do to an html page.
One of the ways you can do this is encode it in the url,
for example,
http://your_host/servlet/YourServlet?target=_self

Just like how you would incluse any other parameter. I think this would work.

Padma.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month8 days, 20 hours left to enroll

764 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