• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

destination of ServletOutputStream()

 
Louisa San
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic