dcsimg
<jsp:include> servlet does not work
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Philip_Chen
Posted On:   Thursday, January 17, 2002 12:41 PM

I tried this simply page: in a.jsp: ... ... in b.java: System.out.println("Servlet invoked"); res.getWriter().println("some html"); this.getServletContext().getNamedDispatcher(config.getServletName()).include(req, res); res.getWriter().println("some more html"); There is nothing printed when I invoke a.jsp. In java console I can see "Servlet invoked". No error message. I saw some discussion on JSP including Server elsewhere but none of them gave concrete conclusion. Please help! I am using Tomcat.    More>>

I tried this simply page:

in a.jsp:

			
...

...


in b.java:

			
System.out.println("Servlet invoked");
res.getWriter().println("some html");
this.getServletContext().getNamedDispatcher(config.getServletName()).include(req, res);
res.getWriter().println("some more html");


There is nothing printed when I invoke a.jsp. In java console I can see "Servlet invoked". No error message.

I saw some discussion on JSP including Server elsewhere but none of them gave concrete conclusion. Please help!

I am using Tomcat.

   <<Less
About | Sitemap | Contact