This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I included the following line of code into my JSP file <jsp:include page="HealthPolicies.jsp" /> and I am getting Invalid jsp:include Tag error. The HealthPolicies.jsp executes fine when I invoke it independently. Internal Servlet Error: org.apache.jasper.compiler.CompileException: C:\Tomcat\webapps\MyJSP\Project\PresentCompanyHealthCareInfo.jsp(5,0) Invalid jsp:include tag at org.apache.jasper.compiler.IncludeGenerator.(IncludeGenerator.java:95) at org.apache.jasper.compiler.JspParseEventListener.handleInclude(JspParseEventListener.java:877) at org.apache.jasper.compiler.DelegatingListener.handleInclude(DelegatingListener.java:185) at org.apache.jasper.compiler.Parser$Include.accept(Parser.java:299)......... Note: Running on Tomcat 3.2 on win98 OS. Please help me. Raj.
In cases like this, the JSP specification is indispensible. It documents the syntax and semantics of all JSP elements. You can't really write JSP effectively without referring to it. The problem is that the <jsp:include> tag (at least in JSP 1.1) requires the flush="true" attribute: <jsp:include page="HealthPolicies.jsp" flush="true"/>
Phil Hanna<BR>Sun Certified Programmer for the Java 2 Platform<BR>Author of :<BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072127686/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">JSP: The Complete Reference</A><BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072124253/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">Instant Java Servlets</A>
If, like me, you can never quite remember the correct magic incantation to sacrifice a virgin Cookie to a clustered servlet by full moon, you will find Sun's JSP 1.1 syntax reference card also indispensable. - Peter
[This message has been edited by Peter den Haan (edited May 14, 2001).]
"Raj_kurup", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements. Thanks.