Actually I'm trying to wright a servlet application in which one servlet(MultipleInlcude.java) tries to include another
servlet(IncludeServlet1.java) which already has other jsp (level3.jsp) included in turn has another servlet (IncludeServlet2.java)
My aim is to display output of all resource on single page.
But here i'm getting output of only IncludeServlet2.java. (Hello from Level4)
Follwing are the codes:
Could anyone please explain me where its going wrong.
If I had been handed such a complex tangle of interlocking servlets and jsp I would say it is time to back off and redesign the whole thing. I bet there are functions inside servlet code that should be in helper classes that can be tested outside the servlet environment.
Sometimes you just have to throw version 0.1 away and start anew.