It's not a secret anymore!
The moose likes Servlets and the fly likes destination of ServletOutputStream() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "destination of ServletOutputStream()" Watch "destination of ServletOutputStream()" New topic

destination of ServletOutputStream()

Louisa San

Joined: Oct 18, 2001
Posts: 2
Hi, I'm pretty new to Java and Servlets, and I encountered some problems when developping my code. I know that they are maybe out of topic but I hope someone is able to answer them anyway:
1. I use javascript to display multiple frames. When sending the answer to a request, the new page gets displayed only in the frame out of which the request came, and the other frames stay untouched. Is there a possibility to display the new frames properly?

2. Is it possible to call a second servlet out of a servlet? If yes, how could this be done?
Thank you very much for your help!
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
As for your second question, yes you can forward to or include another servlet by using the RequestDispatcher class. You may want to check the APi for RequestDispatcher.


So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: destination of ServletOutputStream()
It's not a secret anymore!