File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Redirecting servlet to another frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Redirecting servlet to another frame" Watch "Redirecting servlet to another frame" New topic

Redirecting servlet to another frame

Allan Stengaard

Joined: Aug 07, 2001
Posts: 1
I am calling a servlet from a form in one frame, and I would like the result of the servlet to be shown in another frame
How can i do that?
Thanks in advance!
Jayant Shirkhedkar

Joined: Aug 08, 2001
Posts: 2
Hi Allen,
u can try using the "target" attribute of either the href or the form tag that u are using to call the servlet.
Also in the servlet while using the RequestDispatcher, forward the request to the new JSP that u wish to load in the new frame...
hope this helps..
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Redirecting servlet to another frame
It's not a secret anymore!