wood burning stoves*
The moose likes JSP and the fly likes what will be the output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "what will be the output" Watch "what will be the output" New topic
Author

what will be the output

sigamala viswanath
Greenhorn

Joined: Mar 13, 2006
Posts: 26
Hi,

I have one doubt such as :

some servlet calls JSP and in JSP will initialize a servlet below way
Servlet1 s=new Servlet1();
s.doPost(request,response);
and this in turn calls a jsp and this JSP calls another Servlet.

what will be the output?

Thanks,
Viswanath S
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Firstly you shouldn't instantiate your own Servlets, that should only be done by the container. As long as something eventually provides output to the client it will work fine, except if it causes an infinite loop or any of the container methods on Servlet1 are called.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: what will be the output
 
Similar Threads
JSP- Servlet communication
Q on url mappings
HFSJ Chapter 6 - Mock exam Question 7
Servlet - doGet - doPost - parameter
jsp:include ... flush="true"... ?why flush??