RE: How to do the precompilation on jsp

2006-08-14 Thread Wang, Hansen
Download Tomcat Deployer and play with it. There is straightforward documentation and example in the deployer. Regards, Hansen -Original Message- From: Raju Balugu [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 11:42 PM To: Tomcat Users List Subject: Re: How to do the precom

RE: session GC

2006-03-31 Thread Wang, Hansen
If you would like something simple and intuitive, you can create a class and overwrite the finalized() method to print out simple log. Then, create a separate object of your class for each httpsession and add it as an attribute of the httpsession. Of cause you want to make sure that you do not keep

RE: [5.5] path specified in context.xml not being used

2006-03-31 Thread Wang, Hansen
Users List Subject: Re: [5.5] path specified in context.xml not being used > see also my other post in "*Setting the context path for expanded WARs* " > > On 24/03/06, Wang, Hansen <[EMAIL PROTECTED]> wrote: >> The path is ignored when you deploy webapps this way. T

RE: security-constraint

2006-03-29 Thread Wang, Hansen
If you are using struts for your webapp, there is an extension "sslext" for this purpose. What it does are: 1) gernerate complete url with property scheme using it's tag; 2) redirect (as you said in your email) if the incoming has unmatched scheme for the target resource. Hansen -Original Me

RE: [5.5] path specified in context.xml not being used

2006-03-24 Thread Wang, Hansen
The path is ignored when you deploy webapps this way. Tomcat will use the basename of the war file as the context path. If you want to use something different than that, you can create a context.xml and put in under the virtual host's conf direction (e.g. CATALINA_HOME/conf/Catalina/localhost). In

RE: JNDI Datasource Problem

2006-02-27 Thread Wang, Hansen
Two problems: 1. In ResourceLink, the value for attribute "golbal" should be "jdbc/galleryDB" instead of "galleryDB". 2. The factory classname is wrong if you are using tomcat5's naming-factory-dbcp.jar. You can just remove that line and the default is used. -Original Message- From: lee

RE: first jdbc tomcat application

2006-02-23 Thread Wang, Hansen
If you are using tomcat5, do not use ResourceParams. Instead, define those params as attribute of , as this: -Original Message- From: David McMinn [mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 2006 9:20 AM To: users@tomcat.apache.org Subject: first jdbc tomcat application I'

RE: tomcat 5.5.15 404 - extra path after jsp page

2006-02-22 Thread Wang, Hansen
It is because no servlet is selected for that url based on both explicit and implicit servlet mappings. You would need to pre-compile the jsp into class file (e.g. basic-arithmetic_jsp.class) and then define and map the servlet: basic-arithmetic_jsp /basic-arithmetic.jsp/*