Re: Server side forward across different webapps?

2006-12-07 Thread IT Desk
Yes, you can do this. You have to get the ServletContext of the other web app. Use your current servletContext and call getContext() with the uripath of the other web app. Use the returned context to get a RequestDispatcher. Use the RequestDispatcher as you would normally. See the servlet api

Re: jsp optimization for db driver load and connection

2006-12-04 Thread IT Desk
Thanks to everyone for the replies. I had kinda been hoping the connection pooling was somehow automatic with the latest version of Tomcat. I'll pass along the information to the decision-makers About 15-20 jsps would need to be changed. There's another 30 jsps but they are not high use (ad

jsp optimization for db driver load and connection

2006-12-04 Thread IT Desk
This isn't Tomcat specific but general to any jsp container and its jvm. I am working on a site where almost everything is done through the jsp page plus one main java class to store state data. The site's jsp page may do up to 7 queries on the database. On each query, the statements are thes

Re: tomcat inserts leading / on include file

2006-12-01 Thread IT Desk
Thanks for all the help. Wouldn't have gotten there without the response. Mark Thomas wrote: IT Desk wrote: Here's the entry in the Tomcat server.xml file (Yes I know I should have a separate context xml file but this is the way things already were when I sta

Re: tomcat inserts leading / on include file

2006-11-30 Thread IT Desk
OK. I guess it was just a Tomcat bug that it ran under 5.5.7. I'll post the results of the test to let others know once I can schedule the server for the test. Mark Thomas wrote: IT Desk wrote: Here's the entry in the Tomcat server.xml file (Yes I know I should have a separa

Re: tomcat inserts leading / on include file

2006-11-30 Thread IT Desk
I also have a entry whose DocumentRoot points to: /home/perap/htdocs/perap Mark Thomas wrote: IT Desk wrote: It runs fine under 5.5.7. It was when I upgraded to 5.5.20 that I got this error. The include would work fine if tomcat didn't do an insert of the leading forward slash to

Re: tomcat inserts leading / on include file

2006-11-30 Thread IT Desk
Just thoughts. Doug - Original Message - From: "IT Desk" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, November 30, 2006 8:25 PM Subject: tomcat inserts leading / on include file In my jsp, I have: <%@ include file=&quo

tomcat inserts leading / on include file

2006-11-30 Thread IT Desk
In my jsp, I have: <%@ include file="Connections/db.jsp" %> and get error: org.apache.jasper.JasperException: /index.jsp(2,0) File "/Connections/db.jsp" not found The error message is showing a leading / was inserted. Why is that? I'm using Tomcat version 5.5.20. I tried hardcoding the full