File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet to JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet to JSP" Watch "Servlet to JSP" New topic

Servlet to JSP

Padmanaban Jayabalan

Joined: May 08, 2002
Posts: 14
I want to call a JSP from servlet in a specified frame.
Is there any method available in Servlet?
If not, how can this be achieved?
Nature of Problem:
I'm having three frames. One at left and two at Right. From the bottom frame(right), i'm calling a servlet for processing. The result should be shown in the combined right frame.
Any help in this would be very much helpful.
Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
calling jsp from servlet is just like calling another servlet. Hence you can make you of method available in HttpServletResponse(i.e., sendRedirect) or method in RequestDispatcher (i.e.,include ,forward) according to your need.

Sharing is learning
Padmanaban Jayabalan

Joined: May 08, 2002
Posts: 14
Thanks Arun.
My question was not that exactly. I'm using that method only.
But i want to specify the target for the resultant JSP.
How can this be done?
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
You will need to open another window object using Javascript. I think that has been discussed here before. You can searh the forum.

So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: Servlet to JSP
It's not a secret anymore!