Webapp Directory Root and JSP Include problem.
I solved my previous problem. Thanx for all the assistance. Now I am hitting another snag. When my JSP pages execute I am getting a Exception. org.apache.jasper.JasperException: /index.jsp(24,0) File /includes/inc_setup_edit.jsp not found The jsp pages are stored in /var/www/html/dev_new And the include files are stored in /var/www/html/dev_new/includes This used to work in Tomcat 3, but now that I am migrating over to tomcat4 im getting this error. Is there something I have forgotten to configure? I really don't want to go in and edit hundreds of pages to add the /dev_new at the beginning of each include. Here is the line that is causing the error: %@ include file=/includes/inc_setup_edit.jsp % Here are the changes I made to server.xml: !-- Add the context for the SBA website -- Context path=/dev_new docBase=/var/www/html/dev_new debug=0 reloadable=true crossConnect=true /Context and workers2.preoperties: # Map the jsp extension in the dev_new directory to tomcat [uri:/dev_new/*.jsp] info=Extension mapping [uri:/dev_new/*] info=Map the whole webapp Emil Diego Website Administrator University of Miami School of Business --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Webapp Directory Root and JSP Include problem.
I think you will have to include at least a . (dot) before /includes or you should remove the first backslash. That's a simple find replace Diego, Emil escribi: I solved my previous problem. Thanx for all the assistance. Now I am hitting another snag. When my JSP pages execute I am getting a Exception. org.apache.jasper.JasperException: /index.jsp(24,0) File /includes/inc_setup_edit.jsp not found The jsp pages are stored in /var/www/html/dev_new And the include files are stored in /var/www/html/dev_new/includes This used to work in Tomcat 3, but now that I am migrating over to tomcat4 im getting this error. Is there something I have forgotten to configure? I really don't want to go in and edit hundreds of pages to add the /dev_new at the beginning of each include. Here is the line that is causing the error: %@ include file=/includes/inc_setup_edit.jsp % Here are the changes I made to server.xml: !-- Add the context for the SBA website -- Context path=/dev_new docBase=/var/www/html/dev_new debug=0 reloadable=true crossConnect=true /Context and workers2.preoperties: # Map the jsp extension in the dev_new directory to tomcat [uri:/dev_new/*.jsp] info=Extension mapping [uri:/dev_new/*] info=Map the whole webapp Emil Diego Website Administrator University of Miami School of Business --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Webapp Directory Root and JSP Include problem.
I have many differnet include folders, that would would be a real pain. Plus there are other sites beign hosted as well. I'd really hate to have to edit all the pages and tell other webadmins to edit their pages as well. I was really hoping there would be a configuration change instead of code change. Emil Diego Website Administrator University of Miami School of Business 305.284.5449 -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 10:18 AM To: Tomcat Users List Subject: Re: Webapp Directory Root and JSP Include problem. I think you will have to include at least a . (dot) before /includes or you should remove the first backslash. That's a simple find replace Diego, Emil escribi?: I solved my previous problem. Thanx for all the assistance. Now I am hitting another snag. When my JSP pages execute I am getting a Exception. org.apache.jasper.JasperException: /index.jsp(24,0) File /includes/inc_setup_edit.jsp not found The jsp pages are stored in /var/www/html/dev_new And the include files are stored in /var/www/html/dev_new/includes This used to work in Tomcat 3, but now that I am migrating over to tomcat4 im getting this error. Is there something I have forgotten to configure? I really don't want to go in and edit hundreds of pages to add the /dev_new at the beginning of each include. Here is the line that is causing the error: %@ include file=/includes/inc_setup_edit.jsp % Here are the changes I made to server.xml: !-- Add the context for the SBA website -- Context path=/dev_new docBase=/var/www/html/dev_new debug=0 reloadable=true crossConnect=true /Context and workers2.preoperties: # Map the jsp extension in the dev_new directory to tomcat [uri:/dev_new/*.jsp] info=Extension mapping [uri:/dev_new/*] info=Map the whole webapp Emil Diego Website Administrator University of Miami School of Business --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Webapp Directory Root and JSP Include problem.
Now that i think of it there should be a way to specify that references to the root in pages inside a Context are referencing the root context however, i don't know a way to do that and mi tomcat 5 does the same thing Diego, Emil escribi: I have many differnet include folders, that would would be a real pain. Plus there are other sites beign hosted as well. I'd really hate to have to edit all the pages and tell other webadmins to edit their pages as well. I was really hoping there would be a configuration change instead of code change. Emil Diego Website Administrator University of Miami School of Business 305.284.5449 -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 10:18 AM To: Tomcat Users List Subject: Re: Webapp Directory Root and JSP Include problem. I think you will have to include at least a . (dot) before /includes or you should remove the first backslash. That's a simple find replace Diego, Emil escribi?: I solved my previous problem. Thanx for all the assistance. Now I am hitting another snag. When my JSP pages execute I am getting a Exception. org.apache.jasper.JasperException: /index.jsp(24,0) File /includes/inc_setup_edit.jsp not found The jsp pages are stored in /var/www/html/dev_new And the include files are stored in /var/www/html/dev_new/includes This used to work in Tomcat 3, but now that I am migrating over to tomcat4 im getting this error. Is there something I have forgotten to configure? I really don't want to go in and edit hundreds of pages to add the /dev_new at the beginning of each include. Here is the line that is causing the error: %@ include file=/includes/inc_setup_edit.jsp % Here are the changes I made to server.xml: !-- Add the context for the SBA website -- Context path=/dev_new docBase=/var/www/html/dev_new debug=0 reloadable=true crossConnect=true /Context and workers2.preoperties: # Map the jsp extension in the dev_new directory to tomcat [uri:/dev_new/*.jsp] info=Extension mapping [uri:/dev_new/*] info=Map the whole webapp Emil Diego Website Administrator University of Miami School of Business --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Webapp Directory Root and JSP Include problem.
Now that i think of it there should be a way to specify that references to the root in pages inside a Context are referencing the root context however, i don't know a way to do that and mi tomcat 5 does the same ? thing Anyone have any ideas how this may be done ? Emil Diego Website Administrator University of Miami School of Business -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 10:35 AM To: Tomcat Users List Subject: Re: Webapp Directory Root and JSP Include problem. Now that i think of it there should be a way to specify that references to the root in pages inside a Context are referencing the root context however, i don't know a way to do that and mi tomcat 5 does the same thing Diego, Emil escribi?: I have many differnet include folders, that would would be a real pain. Plus there are other sites beign hosted as well. I'd really hate to have to edit all the pages and tell other webadmins to edit their pages as well. I was really hoping there would be a configuration change instead of code change. Emil Diego Website Administrator University of Miami School of Business 305.284.5449 -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 10:18 AM To: Tomcat Users List Subject: Re: Webapp Directory Root and JSP Include problem. I think you will have to include at least a . (dot) before /includes or you should remove the first backslash. That's a simple find replace Diego, Emil escribi?: I solved my previous problem. Thanx for all the assistance. Now I am hitting another snag. When my JSP pages execute I am getting a Exception. org.apache.jasper.JasperException: /index.jsp(24,0) File /includes/inc_setup_edit.jsp not found The jsp pages are stored in /var/www/html/dev_new And the include files are stored in /var/www/html/dev_new/includes This used to work in Tomcat 3, but now that I am migrating over to tomcat4 im getting this error. Is there something I have forgotten to configure? I really don't want to go in and edit hundreds of pages to add the /dev_new at the beginning of each include. Here is the line that is causing the error: %@ include file=/includes/inc_setup_edit.jsp % Here are the changes I made to server.xml: !-- Add the context for the SBA website -- Context path=/dev_new docBase=/var/www/html/dev_new debug=0 reloadable=true crossConnect=true /Context and workers2.preoperties: # Map the jsp extension in the dev_new directory to tomcat [uri:/dev_new/*.jsp] info=Extension mapping [uri:/dev_new/*] info=Map the whole webapp Emil Diego Website Administrator University of Miami School of Business --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: include Problem with Internet Explorer
I had a similar problem a while back. I think this is a invalid path problem. Mozilla just ignored it, but IE was not as forgiving. Debugging technique: comment out any links one-by-one to see which one is causing the problem. Hope this helps. -Yan -Original Message- From: Daniel Scholnick [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 11:18 AM To: [EMAIL PROTECTED] Subject: jsp:include Problem with Internet Explorer Hi, I seem to have a problem with Tomcat 4.1.18, IE 6, and jsp:include. I have a jsp, lets call is source.jsp, that looks something like this: jsp:include nameincluded.jsp flush=true jsp:param name=foo value=bar/ /jsp:include When I access source.jsp using Mozilla, everything shows up just fine. But when I access it from IE, none of the html generated by included.jsp is sent to the browser. Does anyone know what's up? Thanks in advance for your help. This one is killing me. Regards, Daniel Scholnick __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ideas on solving a jsp include problem
I have about 100 jsp pages that represent pieces of a page, and a jsp page that is dynamically build that can include all these pages and include them multiple times (currently our biggest has about 1000 includes) right now we have a hacked version of tomcat that allows us to call the service method directly on a cached instance of the jsp include file. We would like to have a better solution to this. What we would like to do is have only one instance of the included jsp pages that we can pass different params to so that we could cut our includes down to a max of the 100 jsp piece pages. If anyone has an ideas.. I would love to hear them.. Thanks, John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Order of execution - JSP/RequestDispatcher include problem
Hi, I am facing a problem while using RequestDispatcher to include the contents of a text file. I'm using RequestDispatcher from within a JSP page to include the contents of a text (common content) file. The format of the JSP page is as follows: - HTML BODY Some text % ServletContext ctx2 = application.getContext(/ssi); RequestDispatcher rd = ctx2.getRequestDispatcher (/app/commonHeader.txt); rd.include(request, response); % jsp:include page=/servlet/SomeJavaServlet flush=true/ This is some text garbage. % ServletContext ctx2_1 = application.getContext(/ssi); RequestDispatcher rd2_1 = ctx2_1.getRequestDispatcher (/app/commonFooter.txt); rd2_1.include(request, response); % /BODY /HTML - The output to the browser doesn't show up in the order that was defined in the JSP. The contents of the commonHeader.txt gets displayed before the Some text. Same with commonFooter.txt. It appears before This is some text garbage.. Is this behaviour normal? The source code generated in the work folder in the correct order. Maybe the RequestDispatcher is higher up in the oder of execution. I can't use %@ include .% nor jsp:include./ directives since the ssi folder is a defined as a different Servlet Context. Any help/ideas/comments would be appreciated. Thanks. RS -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
jsp include problem
Hello, I am using tomcat 4.01 on Windows 95. I have a simple jsp file and its contents are: / %@ page contentType=text/xml% jsp:include page=portfolio.xml / / and portfolio.xml's contents are: // ?xml version=1.0 encoding=utf-8? ?xml-stylesheet type=text/xsl href=portfolio.xsl? portfolio stock symbolSUNW/symbol nameSun MicroSystems Inc./name price15.2/price /stock stock symbolIBM/symbol nameInternational Business Machines/name price50.2/price /stock stock symbolMS/symbol nameMicrosoft Corporation/name price99.99/price /stock /portfolio / Whenever I access this file following exception is thrown. This problem doesn't arise when I use Resin web server. Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception java.lang.IllegalStateException at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:109) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1143) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1125) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:570) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:493) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:818) at org.apache.jsp.xmljsp$jsp._jspService(xmljsp$jsp.java:60) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at
jsp include problem
Hello, I am using tomcat 4.01 on Windows 95. I have a simple jsp file and its contents are: / %@ page contentType=text/xml% jsp:include page=portfolio.xml / / and portfolio.xml's contents are: // ?xml version=1.0 encoding=utf-8? ?xml-stylesheet type=text/xsl href=portfolio.xsl? portfolio stock symbolSUNW/symbol nameSun MicroSystems Inc./name price15.2/price /stock stock symbolIBM/symbol nameInternational Business Machines/name price50.2/price /stock stock symbolMS/symbol nameMicrosoft Corporation/name price99.99/price /stock /portfolio / Whenever I access this file following exception is thrown. This problem doesn't arise when I use Resin web server. Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception java.lang.IllegalStateException at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(Serv letResponseWrapperInclude.java:109) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav a:1143) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1125) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:679) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch er.java:570) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher java:493) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8 18) at org.apache.jsp.xmljsp$jsp._jspService(xmljsp$jsp.java:60) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
include problem
I am trying to include files using tomcat 3.2, right now I'm testing out my setup with the %@ include file=bleh However, the file value only works when I specify a _relative_ path inside one of the Contexts. How can I make it so that an absolute path will work with any file on my server? cheers -ryan www.the45.dhs.org
RE: include problem
only path relative to the your application context root works. On Monday, June 04, 2001 2:20 PM, Ryan [SMTP:[EMAIL PROTECTED]] wrote: I am trying to include files using tomcat 3.2, right now I'm testing out my setup with the %@ include file=bleh However, the file value only works when I specify a _relative_ path inside one of the Contexts. How can I make it so that an absolute path will work with any file on my server? cheers -ryan www.the45.dhs.org __ Tato komunikace je urcena vyhradne pro adresata a je duverna. This communication is intended solely for the addressee and is confidential.
include problem!
hi, i have the following directory structure root - level1 -level21 -level22 -level23 how can i include a file a.jsp in files b.jsp in level21,c.jsp level22,d.jsp in level 23 this is what i have done %@ include file="../a.jsp"% is something wrong in the syntax? thanx in advance kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
include problem
hi, i have the following directory structure root - level1 -level21 -level22 -level23 i hav a file a.jsp in the level1 directory. how can i include the file a.jsp in files b.jsp in level21, c.jsp level22, d.jsp in level 23 this is what i have done %@ include file="../a.jsp"% is something wrong in the syntax? thanx in advance kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: include problem
Title: RE: include problem instead of ../ just do level21/b.jsp === Gary Grewal Contractor NEC America Phone: 214-262-5911 E-Mail: [EMAIL PROTECTED] -Original Message- From: Kishor K [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 3:55 AM To: Tomcat User Mailing List Subject: include problem hi, i have the following directory structure root - level1 -level21 -level22 -level23 i hav a file a.jsp in the level1 directory. how can i include the file a.jsp in files b.jsp in level21, c.jsp level22, d.jsp in level 23 this is what i have done %@ include file=../a.jsp% is something wrong in the syntax? thanx in advance kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: include problem
Hey, I believe (correct me if I'm an idiot) that the usual include syntax should work:- !-- #include file="../a.jsp" -- Regards, Adam. Adam Fowler Second year Computer Science undergraduate University of Wales, Aberystwyth Carroll College, WI, USA(2000-2001) web: http://gucciboy.dyndns.org/aff9 e-mail: [EMAIL PROTECTED] "Every new beginning comes from some other beginning's end" -Original Message- From: Kishor K [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 3:55 AM To: Tomcat User Mailing List Subject: include problem hi, i have the following directory structure root - level1 -level21 -level22 -level23 i hav a file a.jsp in the level1 directory. how can i include the file a.jsp in files b.jsp in level21, c.jsp level22, d.jsp in level 23 this is what i have done %@ include file="../a.jsp"% is something wrong in the syntax? thanx in advance kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: include problem
Title: RE: include problem i want to include a.jsp in b.jsp, c.jsp and d.jsp - Original Message - From: Grewal, Gary To: '[EMAIL PROTECTED]' Sent: Monday, March 19, 2001 9:57 PM Subject: RE: include problem instead of ../ just do level21/b.jsp === Gary Grewal Contractor NEC America Phone: 214-262-5911 E-Mail: [EMAIL PROTECTED] -Original Message- From: Kishor K [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 3:55 AM To: Tomcat User Mailing List Subject: include problem hi, i have the following directory structure root - level1 -level21 -level22 -level23 i hav a file a.jsp in the level1 directory. how can i include the file a.jsp in files b.jsp in level21, c.jsp level22, d.jsp in level 23 this is what i have done %@ include file="../a.jsp"% is something wrong in the syntax? thanx in advance kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: include problem
Hi, Just try to use the full path name, relative you your server's root... And include the files...;-) Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
Puzzling include problem
The following results in Jasper throwing NullPointerException when I try to include a JSP's output into a servlet's output by calling the following routine in the servlet code: void include(String path, HttpServletRequest req, HttpServletResponse res) throws ServletException { javax.servlet.RequestDispatcher rd = req.getRequestDispatcher(path); if (rd==null) throw new ServletException(null RequestDispatcher"); try { rd.include(req, res); } catch (java.io.IOException e) { throw new ServletException ("IO Exception", e); } catch (java.lang.IllegalStateException e) { throw new ServletException ( "Response was already committed", e); } catch (ServletException e) { throw new ServletException (Servlet exceptionbr", e.getRootCause()); } } Any idea what the problem is? The complete error message is: Internal Servlet Error: javax.servlet.ServletException: Sequencer.include(D:\JavaProjects\TomcatDocs\webapp\sessions\1x82j0rsy1.jsp) : servlet exception at com.mslinn.Sequencer.include(Sequencer.java:126) at com.mslinn.Sequencer.doService(Sequencer.java:91) at com.mslinn.Sequencer.doPost(Sequencer.java:30) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NullPointerException at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:199) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl .java:345) at com.mslinn.Sequencer.include(Sequencer.java:119) at com.mslinn.Sequencer.doService(Sequencer.java:91) at com.mslinn.Sequencer.doPost(Sequencer.java:30) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Mike Slinn
Puzzling include problem
... never mind, I just discovered that if I invoke the servlet in the HTML form as: form method="post" action="/Validator/servlet/com.mslinn.Sequencer" class="formInput" Then I need to get rid of the "/servlet" part of the URL in the servlet's call to my include() method as follows: include("../my.jsp", req, res); Mike Slinn
Include problem
hi, i have the following directory structure root - level1 -level21 -level22 -level23 how can i include a file a.jsp in files b.jsp in level21,c.jsp level22,d.jsp in level 23 this is what i have done %@ include file="../a.jsp"% this was working properly with tomcat3.1 but it is not working with tomcat3.2.1 is something wrong in the syntax? thanx in advance kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]