aspose file tools
The moose likes Servlets and the fly likes destination of ServletOutputStream() Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "destination of ServletOutputStream()" Watch "destination of ServletOutputStream()" New topic
Author

destination of ServletOutputStream()

Louisa San
Greenhorn

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!
Luisa
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
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.

Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: destination of ServletOutputStream()
 
Similar Threads
Feeding a value to a field in a Frame
Servlet in a frame
HTTP Servlet Response
jsp + frames
Tiles Reload problem???