aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet to JSP" Watch "Servlet to JSP" New topic
Author

Servlet to JSP

Padmanaban Jayabalan
Greenhorn

Joined: May 08, 2002
Posts: 14
Hi,
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
Hi,
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.
-arun


Sharing is learning
Padmanaban Jayabalan
Greenhorn

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.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
Don't get me started about those stupid light bulbs.
 
subject: Servlet to JSP