Originally posted by marlon tan:
"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
Originally posted by R K Singh:
<hr></blockquote>
Dir structure of the above problem[/QB]
Originally posted by lali lali:
hi sir you are adding 2 jsp pages header.jsp and header.html
in these jsp there should not be any request dispatcher
RequestDispatcher rd = request.getRequestDispatcher("/a.jsp");
rd.forward(request,response);
remove this code from both the jsp you are including.
i hope it will help you
.
Originally posted by marlon tan:
What do you mean by the directory structure has a problem? [/QB]
"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
Originally posted by Mike Curwen:
marlon,
R K was trying to say that your directory structure as given, was "too flat". It looks like all of those folders are all hanging off of TOMCAT_HOME
Also, I think my answer in the Apache/Tomcat forum will help you.
https://coderanch.com/t/83450/Tomcat/jsp-include-page-header-html
Originally posted by Mike Curwen:
Something else worth mentioning...
If you're able to upgrade to Tomcat 4.1.x or Tomcat 5.x, then you could actually use a <%@ include directive. This would benefit you in two ways:
1) You've got a much more stable, actively supported, and faster version of Tomcat
2) You've avoided the problem of the default servlet being invoked twice.
I use <%@ include on files that change periodically, and Tomcat 4.1.29 will recognize that this included file has changed, and recompile the parent file (without the parent file having to change).
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |