Re: #INCLUDE question

2003-02-22 Thread Tim Funk
The README that comes with tomcat says how to turn on SSI. -Tim T S wrote: I have Tomcat 4.1.12 installed on WinXP. I am attempting to do an SSI and it appears that the command is not being recognized. Here is the command: !-- #INCLUDE file=js/CMS_header.js -- The include appears to NOT be

Re: #INCLUDE question

2003-02-22 Thread Jacob Kjome
You'd save yourself some time if you took about 2 seconds to look at the docs Tomcat provides to see if your question is answered there before posting to this list. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssi-howto.html Jake At

RE: Include question...

2001-05-24 Thread Joel Kozlow
Sure it is...just do this... % String sPage = index.jsp; if (myCondition()) { sPage = anotherPage.jsp; } else if (anotherCondition()) { sPage = yetAnother.jsp; } % jsp:include page=%= sPage % flush=true / Hope that helps.

RE: Include question...

2001-05-24 Thread Gilles Laborderie
The problem is probably a syntax error such as a forgotten closing } or something like that. This disrupts the rest of the code when the page gets compiled in a servlet resulting in a try not being caught. Double-check the syntax in your jsp code. You can also open the servlet that Tomcat is

RE: Include question...

2001-05-24 Thread Jann VanOver
: Include question... Sure it is...just do this... % String sPage = index.jsp; if (myCondition()) { sPage = anotherPage.jsp; } else if (anotherCondition()) { sPage = yetAnother.jsp; } % jsp:include page=%= sPage % flush=true

RE: Include question...

2001-05-23 Thread Kyle Burke
This was an 'Internal Servlet Error' by the way. Stack trace follows. Thanks. Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPD:\tomcat\work\localhost_8080%2Fadmin\_0002faboutus_0002fedit_0005fstaff_ 0002ejspedit_0005fstaff_jsp_25.java:140: 'catch'

Re: Include question...

2001-05-23 Thread CN=sascha kolski/O=Dcsimtech
Hello Kyle, you should check the compiled jsp in the work directory. The coplete path and filename should be in the error message. There you will see, that in this .java file there is a try catch arround your code. And, so it often happened to me, there ist something wron with the opening and