Is there a way to debug <jsp:include> tag?
I have a container.jsp that jsp:includes a servlet. container.jsp has a form within. When I get container.jsp by a GET request, jsp:include works fine and output from the target servlet is shown within. But when I get the container.jsp by a POST request, output from the target servlet isn’t shown on the page.
The problem is that I can’t figure out what exactly goes wrong with jsp:include. Why would it work fine in one situation and vanish quietly in another. I tried to turn on org.apache.jasper.runtime.JspWriterImpl logs with log4j at TRACE level but it din’t show anything.
Is there any way/technique/tool to find out what goes inside jsp:include at runtime? Is there any alternative to jsp:include that is easier to work with? Any help will be much appreciated.
When you make XXX request to page1.jsp which includes Servlet1 its
doXxx()will be calledSo for your case youd
doPost()is being called which doesn’t do anything as you mentioned