• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet to JSP

 
Padmanaban Jayabalan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Padmanaban Jayabalan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need to open another window object using Javascript. I think that has been discussed here before. You can searh the forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic