Solved

Redirecting one servlet into a Frame

Posted on 2001-06-20
4
231 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 81
topping2 challenge 13 83
Checkbox and ListView in Android Layout 4 56
eclipse apache tomcat admin console 52 73
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 …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

863 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

25 Experts available now in Live!

Get 1:1 Help Now