Solved

Redirecting one servlet into a Frame

Posted on 2001-06-20
4
229 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
  • 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 50 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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 …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

746 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

11 Experts available now in Live!

Get 1:1 Help Now