Solved

Redirecting one servlet into a Frame

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.

724 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