Re: Amazing stuff with Tomcat

2008-08-15 Thread ying lcs
On Sat, Aug 9, 2008 at 8:11 PM, Johnny Kewl [EMAIL PROTECTED] wrote: We now doing absolutely incredible stuff with Tomcat... and I just want to show you where we at. For those that dont know... we made Tomcat not only do our web stuff, Tomcat is also our application server... But have a look

Setting SC_INTERNAL_SERVER_ERROR in http servlet response

2007-09-05 Thread ying lcs
Hi, In my servlet, I set the response code to 500, like this: response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); Why tomcat attached this in my http response? And how can I disable it? Thank you. htmlheadtitleApache Tomcat/4.1.36 - Error report/titleSTYLE!--H1{font-family :

how to close all the port allocated by tomcat after a doGet() request

2007-09-01 Thread ying lcs
Hi, I have a simple Servlet (stateless) which has a doGet() metohd. How can I make sure both Tomcat and the client calling that servlet's doGet() to close all the ports allocated upon the doGet() request. Thank you. - To

tomcat 5.0 context redirect

2006-12-12 Thread ying lcs
Hi, I notice some strange feature in tomcat 5.0. If i have a url like this http://localhost:8080/mytestapp?qa=1, it will be redirected to http://localhost:8080/mytestapp/?qa=1, in order words, context is automatically redirected to context/. Can you please tell me why tomcat 5.0 does it? i

how to configure etags in tomcat

2006-12-11 Thread ying lcs
Hi Can anyone please tell me how can I configure the strong etag, weak etag of a static resouce in tomcat? I see this in html capture, I would like to know how can i get rid of the 'W/' in etags. http://64.27.165.81/j.htm GET /j.htm HTTP/1.1 Host: 64.27.165.81 User-Agent: Mozilla/5.0

how to disable 'Etag' , 'Last-Modified' in tomcat

2006-12-10 Thread ying lcs
hi, I use Tomcat to server a static image (i put the image in the 'images' under WEB-INF directory). But when I do a HTTP trace, it always send back 'Etag' , 'Last-Modified' in http response. HTTP/1.x 200 OK Etag: W/942-1165631787000 Last-Modified: Sat, 09 Dec 2006 02:36:27 GMT Content-Type:

Re: Getting a webapp to run on tomcat 4.1

2006-11-29 Thread ying lcs
Thanks. Can you please tell me which tag lib that i am using causing problem when i try to run in under Tomcat 4.x? From the exception that I see, it does not say which tag lib is causing the problem. On 11/29/06, Mark Thomas [EMAIL PROTECTED] wrote: ying lcs wrote: Hi, I have a web app

UrlRewrite Rule works on tomcat 4.1.34 but fails on tomcat 5.0.28

2006-11-28 Thread ying lcs
I am using UrlRewrite filter on tomcat. I would like to do the following: rewrite from http://localhost:8080/testApp?arg1=abcarg2=def to http://localhost:8080/testApp/index.jsp?arg1=abcarg=def So i have the following rule in my urlrewrite.xml (under WEB-INF directory) rule

Getting a webapp to run on tomcat 4.1

2006-11-28 Thread ying lcs
Hi, I have a web app runs fine on tomcat 5.0. And i am trying to see if it can run on tomcat 4.1. However, I am getting the following error (in the catalina.out): I check that i don't have any 'taglib' in my web.xml. So i am not sure which file is causing the problem. thanks for any

http.proxyHost

2006-11-22 Thread ying lcs
Hi, Does tomcat setup this system property 'http.proxyHost to when it runs? If yes, can you please tell me how to disable that functionality? Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,

Using URL Rewrite Filter in tomcat 5.0.28

2006-11-14 Thread ying lcs
Running URL Rewrite Filter (http://tuckey.org/urlrewrite) in tomcat 5.0.28 I am using URL Rewrite Filter in my web app. It works fine in Tomcat 4.1.34, but when I deploy the same web app in 5.0.28, it does not work. Here is my rule: rule from ^\?lang=([a-z]{2})$/from

Use tomcat ant task to precompile jsp file in my webapp

2006-11-08 Thread ying lcs
Hi, Can you please tell me where can i find tomcat ant task to precompile jsp files in my webapp? I am using tomcat 4.1. From here it said i shouldn't use the jspc task in ant. http://ant.apache.org/manual/OptionalTasks/jspc.html and from here, i can't find an example of how to use tomcat

Re: Use tomcat ant task to precompile jsp file in my webapp

2006-11-08 Thread ying lcs
Sorry, I found it: http://tomcat.apache.org/tomcat-4.1-doc/jasper-howto.html On 11/8/06, ying lcs [EMAIL PROTECTED] wrote: Hi, Can you please tell me where can i find tomcat ant task to precompile jsp files in my webapp? I am using tomcat 4.1. From here it said i shouldn't use the jspc task

Using Tomcat admin console to configure my WEB app

2006-11-03 Thread ying lcs
Hi, Can you please tell me what do I need to do in my web app so that I can use Tomcat admin console to configure my WEB app? Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL

Administrate Tomcats in a cluster

2006-10-19 Thread ying lcs
Hi, I am running multiple Tomcats in a cluster. Can you please tell me if I can have a single admin console which administrate the whole cluster? e.g. load a war file across the whole cluster? or change the configuration of Tomcat across the whole cluster? Thank you.

Question about hot deployment on Tomcat

2006-10-12 Thread ying lcs
I am reading the hot deployment on Tomcat here, http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html#Deploying%20on%20a%20running%20Tomcat%20server And I have a few questions about the update case: 1. It said 'the Host will attempt to deploy and update web applications dynamically, as