Re: How to share static content across applications

2005-09-16 Thread Ritchie Gillam
You were right... I simply removed all the Context elements now in the server.xml file and changed all my code to reference ../sharedHRM or /sharedHRM depending on if the tag appends the Application Context or not. Thanks for your help. Ritchie Gillam Programmer Analyst, Information Services,

Re: How to share static content across applications

2005-09-16 Thread Hassan Schroeder
Ritchie Gillam wrote: I need the following entries: and then one entry for each application that references the shared assets like this: I am doing this because sometimes the JSP/JSF tag appends the application context and sometimes it don't. That sounds broken; I would try to fix tha

Re: How to share static content across applications

2005-09-16 Thread Ritchie Gillam
Hassan Ok, I understand so where do I put the reference to the shared asset Context? I cannot put it in server.xml. Let's say I put want to put the reference in an application called app2, that would work fine expect I already have a element defined in context.xml for the app2 application.

Re: How to share static content across applications

2005-09-15 Thread Tim Funk
If the thing being shared are browser sepefic such as images - I create a new webapp. For example: for all my common images I could create an images webapp. Then my webapps which refernce those images can link to /images directly (and take it on faith that there is an /images webapp out there)

Re: How to share static content across applications

2005-09-15 Thread Hassan Schroeder
Ritchie Gillam wrote: In the applications that need the shared assets, I already have > a defined in the context.xml file for each app and > I can only have the one. ? An "application" *is* a Context; the point is to create a single "shared asset" Context and reference it from wherever. As bel

Re: How to share static content across applications

2005-09-15 Thread Ritchie Gillam
In the applications that need the shared assets, I already have a defined in the context.xml file for each app and I can only have the one. Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167 Fax: (902) 490-6583

Re: How to share static content across applications

2005-09-15 Thread Ritchie Gillam
My situation is quite different but here is what I am currently doing: In my server.xml file I have ... Notice I am referring to the same docBase but the path represents the application content or in the case of the first entry the without the application context. So no matter what JSP

Re: How to share static content across applications

2005-09-15 Thread Hassan Schroeder
Ritchie Gillam wrote: I am creating a new element for the shared assets but > the problem is by putting the element directly in the > server.xml file, I am not longer able to undeploy and redeploy > the "shared assets application" without restarting the server... OK, so don't do that :-)

Re: How to share static content across applications

2005-09-15 Thread Maurice Yarrow
Hello Tim Saw your posting on the tomcat user's list. I have a question about your response: So how do you access the static resources, i.e., images, from the other two web apps? This is what I tried and it does not work: I created a separate webapp context with images, and placed into tomcat/

Re: How to share static content across applications

2005-09-15 Thread Ritchie Gillam
am not sure if this is suppose to be done in the Tomcat/Java world but here > is my question anyway. > > How do I go about allowing applications to share static content in Tomcat > 5.5.7? Some would argue that each WAR file should be self contained but > surely there is a way t

Re: How to share static content across applications

2005-09-15 Thread Tim Funk
suppose to be done in the Tomcat/Java world but here is my question anyway. How do I go about allowing applications to share static content in Tomcat 5.5.7? Some would argue that each WAR file should be self contained but surely there is a way to use the same image file for all applications

How to share static content across applications

2005-09-15 Thread Ritchie Gillam
I am not sure if this is suppose to be done in the Tomcat/Java world but here is my question anyway. How do I go about allowing applications to share static content in Tomcat 5.5.7? Some would argue that each WAR file should be self contained but surely there is a way to use the same image

Re: Caching static content -> Bug in Filter implementation?

2005-07-07 Thread Jon Wingfield
I think that's expected behaviour: You can't set headers after the response has been committed (more body data has been written to the outputstream than the buffer size). In the case of the 200 response code the call to filterChain.doFilter(...) actually serves the content. Setting of the hea

Caching static content -> Bug in Filter implementation?

2005-07-06 Thread juergen . dufner
Hello I do some further analysis in this problem and got following result: Precondition: The filter manipulates the HTTP header when returning a static resource (e.g. image). HTTP 200 In case of a HTTP 200 (OK) result the header is not added when the doFilter method is like following: filte

Caching static content

2005-07-06 Thread juergen . dufner
Hello How to set the HTTP-Header Cache-Control:max-age=3600 in the Response of an image file? Here I will describe what I did: I implemented a Filter that added the header response.setHeader("Cache-Control", "max-age=3600"); This works, but not in every case. The first request for an ima

Re: images/static content in jar

2005-04-10 Thread Don Hill
do that is to have some ability like "skins" in Mozilla and other products, right? I mean, all static content can be a packaged into a WAR file, if packaging is what you need. If you'd like to have skins for your application, even dynamic skins, I'd sugest a servlet that

Re: images/static content in jar

2005-04-09 Thread Nikola Milutinovic
ability like "skins" in Mozilla and other products, right? I mean, all static content can be a packaged into a WAR file, if packaging is what you need. If you'd like to have skins for your application, even dynamic skins, I'd sugest a servlet that would unpack/remove all s

images/static content in jar

2005-04-09 Thread Don Hill
I have a war that has folder like /images and /content, is there a way to config tomcat so that I can package these in jar, I know I can write a custom servlet todo this but I would like this to be handled by the servers servlet container. The reason this is my concern is that I think that the

Re: Altering default HTTP header fields for serving static content

2005-03-02 Thread Andrew Miehs
here a way to alter the default HTTP header fields when a request is made to Tomcat for static content? I would like to be able to add the Cache-Control general header field with value "no-cache" when serving images so they are not cached on the client side. Can anyone please help? I&

Altering default HTTP header fields for serving static content

2005-03-01 Thread David.Ratcliffe
Is there a way to alter the default HTTP header fields when a request is made to Tomcat for static content? I would like to be able to add the Cache-Control general header field with value "no-cache" when serving images so they are not cached on the client side. Can anyone please help?

Re: Allow Apache to Serve Static Content

2005-02-15 Thread Andre Van Klaveren
_log_%Y_%m_%d.txt" > JkMount /*.jsp tomcat > JkMount /*.do tomcat > > > Charlie > > Dave Morrow said the following on 2/15/2005 3:25 PM: > > >Hi all, I have Apache integrated with Tomcat using mod_jk2 and all is > >working well with the exception

Re: Allow Apache to Serve Static Content

2005-02-15 Thread Peter Lin
I hope that helps peter On Tue, 15 Feb 2005 15:25:28 -0500, Dave Morrow <[EMAIL PROTECTED]> wrote: > Hi all, I have Apache integrated with Tomcat using mod_jk2 and all is working > well with the exception of performance. I would like to direct Apache to > serve the static conten

Re: Allow Apache to Serve Static Content

2005-02-15 Thread Charles N. Harvey III
tegrated with Tomcat using mod_jk2 and all is working well with the exception of performance. I would like to direct Apache to serve the static content components of my Java application. How is this done? I presume there must be some type of httpd.conf setting to do this? David A. Morrow Te

Allow Apache to Serve Static Content

2005-02-15 Thread Dave Morrow
Hi all, I have Apache integrated with Tomcat using mod_jk2 and all is working well with the exception of performance. I would like to direct Apache to serve the static content components of my Java application. How is this done? I presume there must be some type of httpd.conf setting to do

Re: How do to manage static content?

2005-01-07 Thread Alain Gaeremynck
I realize i might be a little more helpfull if i try to be a little bit more verbose... the * in /jsp-examples/* tells apache to sent everything after /jsp-examples/ to the worker. if you want the static content handled by apache then do something like this JkMount /jsp-examples/*.jsp ajp13w

Re: How do to manage static content?

2005-01-07 Thread Alain Gaeremynck
the answer is 1 what do i win? Troy Simpson wrote: I have the following configuration: Apache2 2.0.52 Tomcat 5.0.28 mod_jk 1.2.8 I have this directive in my httpd.conf file. JkMount /jsp-examples/* ajp13w 1. Does this mean that the worker ajp13w will process all content, including static content

How do to manage static content?

2005-01-06 Thread Troy Simpson
I have the following configuration: Apache2 2.0.52 Tomcat 5.0.28 mod_jk 1.2.8 I have this directive in my httpd.conf file. JkMount /jsp-examples/* ajp13w 1. Does this mean that the worker ajp13w will process all content, including static content? 2. Or is the static content being processed by

RE: Can apache deal with static content in packed application(war ,ear) with jk2 and jboss/tomcat

2004-10-13 Thread Phillip Qin
: October 13, 2004 5:35 AM To: [EMAIL PROTECTED] Subject: Can apache deal with static content in packed application(war,ear) with jk2 and jboss/tomcat In jboss3.2.1-tomcat4.1.24 , deply a ear package usally cause war was deployed in a temporary directory,and jsp will be compiled into a temproray

Re: Blocking access to static content

2004-10-12 Thread QM
On Tue, Oct 12, 2004 at 09:01:04AM -0600, Robert Harper wrote: : http://localhost:8080/ctimpact/usr/1234567890/.properties, : I would get the contents of that file. This is not acceptable. So far, so good. What about putting the and inside tags? That works for me: Subscri

RE: Blocking access to static content

2004-10-12 Thread Robert Harper
Message- > From: QM [mailto:[EMAIL PROTECTED] > Sent: Monday, October 11, 2004 9:05 PM > To: Tomcat Users List > Subject: Re: Blocking access to static content > > On Mon, Oct 11, 2004 at 01:27:14PM -0600, Robert Harper wrote: > : I tried filters but my filters were not

Re: Blocking access to static content

2004-10-11 Thread QM
On Mon, Oct 11, 2004 at 01:27:14PM -0600, Robert Harper wrote: : I tried filters but my filters were not always called. It may be helpful to get to the root of why the filters weren't called. What happened? What was in web.xml? Better yet, just define security-constraints in web.xml and limit ac

RE: Blocking access to static content

2004-10-11 Thread Arnaud HERITIER
You can put all your resources (images, jsp, ..) under the WEB-INF directory. Arnaud. > -Message d'origine- > De : Robert Harper [mailto:[EMAIL PROTECTED] > Envoyé : lundi 11 octobre 2004 21:27 > À : 'Tomcat Users List' > Objet : RE: Blocking access to stati

RE: Blocking access to static content

2004-10-11 Thread Robert Harper
I tried filters but my filters were not always called. Robert S. Harper 801.265.8800 ex. 255 > -Original Message- > From: QM [mailto:[EMAIL PROTECTED] > Sent: Monday, October 11, 2004 12:57 PM > To: Tomcat Users List > Subject: Re: Blocking access to static content >

Re: Blocking access to static content

2004-10-11 Thread QM
On Mon, Oct 11, 2004 at 12:39:13PM -0600, Robert Harper wrote: : I have turned the listings off in the default servlet. Now how do I keep users : from directly accessing anything outside of the defined servlets and JSP pages : even if the user knows the path to the file? Filters, filters, filters.

Re: Blocking access to static content

2004-10-11 Thread Tim Funk
The best way is to place all protected content under WEB-INF. -Tim Robert Harper wrote: I have turned the listings off in the default servlet. Now how do I keep users from directly accessing anything outside of the defined servlets and JSP pages even if the user knows the path to the file?

Blocking access to static content

2004-10-11 Thread Robert Harper
I have turned the listings off in the default servlet. Now how do I keep users from directly accessing anything outside of the defined servlets and JSP pages even if the user knows the path to the file? Robert S. Harper Senior Engineer 1100 East 6600 South, Suite 300 Salt Lake City, UT 84121

Re: serving static content

2004-07-09 Thread Matthew Hixson
Got it! My colleague discovered this post: http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840204#3840204 I put the defaultWebXml attribute into the Context and pointed it to the stock global Tomcat web.xml file. Now Tomcat thinks that /watermarks/ is a real webapp apparently and file

Re: serving static content

2004-07-09 Thread QM
On Fri, Jul 09, 2004 at 01:58:40PM -0700, Matthew Hixson wrote: : : : : Please, humor me: what about and try the URL http://localhost:{port}/watermarks What happens then? btw, Tomcat uses commons-logging (or is that log4j?)

Re: serving static content

2004-07-09 Thread Matthew Hixson
;d not see it in the manager. Or it might be that tomcat, for whatever reason, isn't starting the context. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Matthew Hixson [mailto:[EMAIL PROTECTED] Sent: Friday, July 09, 2004 2:48 PM To: Tomcat Users List Subject: R

RE: serving static content

2004-07-09 Thread Mike Jackson
> Subject: Re: serving static content > > > Under JBoss this file is > /usr/local/jboss/server/default/conf/jboss.web/localhost/ > watermarks.xml. I've tried deleting that file and > restarting, but it > doesn't make a bit of difference. The content of

Re: serving static content

2004-07-09 Thread Matthew Hixson
tify the sender immediately by reply e-mail and delete all copies of this message and attachments. Thank you. -Original Message- From: Matthew Hixson [mailto:[EMAIL PROTECTED] Sent: Fri 09 July 2004 5:09 pm To: Tomcat Users List Subject: Re: serving static content I actually did try t

RE: serving static content

2004-07-09 Thread Jim Cox
pient, please notify the sender immediately by reply e-mail and delete all copies of this message and attachments. Thank you. -Original Message- From: Matthew Hixson [mailto:[EMAIL PROTECTED] Sent: Fri 09 July 2004 5:09 pm To: Tomcat Users List Subject: Re: serving static content I actuall

Re: serving static content

2004-07-09 Thread Matthew Hixson
opies of this message and attachments. Thank you. -Original Message- From: Matthew Hixson [mailto:[EMAIL PROTECTED] Sent: Fri 09 July 2004 4:59 pm To: Tomcat Users List Subject: Re: serving static content prefix="localhost_access_

RE: serving static content

2004-07-09 Thread Jim Cox
attachments. Thank you. -Original Message- From: Matthew Hixson [mailto:[EMAIL PROTECTED] Sent: Fri 09 July 2004 4:59 pm To: Tomcat Users List Subject: Re: serving static content On Jul 9, 2004, at 1:52 PM, Jim Cox wrote: > What's your

RE: serving static content

2004-07-09 Thread Mike Curwen
st > Subject: Re: serving static content > > > I'm trying to serve images from /usr/local/watermarks. The > URL should > be http://mymachine.com/watermarks/. I've tried adding a Context to > server.xml, but every time I try to access > http://mymachin

RE: serving static content

2004-07-09 Thread Mike Curwen
To unsubscribe, e-mail: [EMAIL PROTECTED] ! > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, July 09, 2004 3:57 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: RE: serving static content > >

Re: serving static content

2004-07-09 Thread Matthew Hixson
ECTED] Sent: Fri 09 July 2004 4:54 pm To: Tomcat Users List Subject: Re: serving static content I'm trying to serve images from /usr/local/watermarks. The URL should be http://mymachine.com/watermarks/. I've tried adding a Context to server.xml, but every time I try to access http:

RE: serving static content

2004-07-09 Thread CAGALLOM
PLaese no send emailthank you -Mensaje original- De: Matthew Hixson [mailto:[EMAIL PROTECTED] Enviado el: Viernes 9 de Julio de 2004 15:54 Para: Tomcat Users List Asunto: Re: serving static content I'm trying to serve images from /usr/local/watermarks. The URL should be

RE: serving static content

2004-07-09 Thread Jim Cox
rving static content I'm trying to serve images from /usr/local/watermarks. The URL should be http://mymachine.com/watermarks/. I've tried adding a Context to server.xml, but every time I try to access http://mymachine.com/watermarks I get a 404 message: The requested resource (/wate

Re: serving static content

2004-07-09 Thread Matthew Hixson
available. This is with Tomcat 5.0.26 embedded in JBoss 3.2.4. There are not any error messages in any logfiles. Thanks, -M@ On Jul 9, 2004, at 1:41 PM, Mike Curwen wrote: Tomcat will serve static content, pretty much "out of the box". What is the problem you're experiencing

RE: serving static content

2004-07-09 Thread Mike Curwen
Tomcat will serve static content, pretty much "out of the box". What is the problem you're experiencing ? > -Original Message- > From: Matthew Hixson [mailto:[EMAIL PROTECTED] > Sent: Friday, July 09, 2004 3:27 PM > To: Tomcat Users List > Subject: servi

serving static content

2004-07-09 Thread Matthew Hixson
Does there exist a howto on serving static content with Tomcat? Even better would be one that shows how to do this with Tomcat+JBoss. Searching Google seems to turn up lots of hits that say basically, "Use Apache instead of Tomcat to serve static content." I really need to get th

Re: getting Tomcat 5.0 to serve static content

2004-07-09 Thread Matthew Hixson
On Jul 8, 2004, at 11:56 PM, [EMAIL PROTECTED] wrote: -Original Message- From: Matthew Hixson I'm using Tomcat 5.0.26 with JBoss 3.2.4. I'm attempting to upgrade from Tomcat 4.1.something that was included with JBoss 3.2.3. I cannot figure out how to configure a c

Re: getting Tomcat 5.0 to serve static content

2004-07-09 Thread Dennis Dai
I'm not familiar with JBoss stuff but I think to make a context work, you'll need the WEB-INF dir and the associated web.xml ... On 7/8/2004 10:23 PM, Matthew Hixson wrote: I'm using Tomcat 5.0.26 with JBoss 3.2.4. I'm attempting to upgrade from Tomcat 4.1.something that was included with JBos

RE: getting Tomcat 5.0 to serve static content

2004-07-08 Thread David . Pawson
-Original Message- From: Matthew Hixson I'm using Tomcat 5.0.26 with JBoss 3.2.4. I'm attempting to upgrade from Tomcat 4.1.something that was included with JBoss 3.2.3. I cannot figure out how to configure a context so that Tomcat will serve files from a sp

getting Tomcat 5.0 to serve static content

2004-07-08 Thread Matthew Hixson
I'm using Tomcat 5.0.26 with JBoss 3.2.4. I'm attempting to upgrade from Tomcat 4.1.something that was included with JBoss 3.2.3. I cannot figure out how to configure a context so that Tomcat will serve files from a specific directory. The directory contains images and should be accessib

RE: Serving up static content through apache using mod_jk

2004-06-03 Thread Cox, Charlie
[EMAIL PROTECTED] > Sent: Thursday, June 03, 2004 11:08 AM > To: Tomcat Users List > Subject: Re: Serving up static content through apache using mod_jk > > Yes but in my case I have a ton of directories that are dynamically changed > so I want everything served through tomcat except

Re: Serving up static content through apache using mod_jk

2004-06-03 Thread Oscar Serrano
wise resin's. for an intra net or predictable amount of users would work fine. The advantages of load balancing the static content from the java stuff takes some work out of catalina's hands but also means with apache in the middle you can load balance between containers. This article expla

Re: Serving up static content through apache using mod_jk

2004-06-03 Thread Mark Lowe
I believe that the built in http server is good enough in some cases yes. Likewise resin's. for an intra net or predictable amount of users would work fine. The advantages of load balancing the static content from the java stuff takes some work out of catalina's hands but also

RE: Serving up static content through apache using mod_jk

2004-06-03 Thread Shapira, Yoav
Hi, >This is the third time I have heard this piece of advice recently. When I >started off with Tomcat back in the 3.x days the recommendation was always >to run Tomcat for the dynamic servlet/jsp stuff and a "real" web server >(Apache/IIS) for the static content. Yes: th

RE: Serving up static content through apache using mod_jk

2004-06-03 Thread Varley, Roger
ynamic servlet/jsp stuff and a "real" web server (Apache/IIS) for the static content. Are we now saying that Tomcat is as good a web server for static content as is Apache? Regards Roger __ This e-mail an

RE: Serving up static content through apache using mod_jk

2004-06-03 Thread Shapira, Yoav
>Subject: Re: Serving up static content through apache using mod_jk > >Yes but in my case I have a ton of directories that are dynamically changed >so I want everything served through tomcat except some static stuff in one >directory:) > >Any ideas? > > >- Original Message

Re: Serving up static content through apache using mod_jk

2004-06-03 Thread James Sherwood
IL PROTECTED]> Sent: Thursday, June 03, 2004 11:50 AM Subject: Re: Serving up static content through apache using mod_jk > On Thu, Jun 03, 2004 at 11:52:11AM -0300, James Sherwood wrote: > : If the JKMount /* ajp13 passes everything to the jk handler, is there a way > : route everything

Re: Serving up static content through apache using mod_jk

2004-06-03 Thread QM
On Thu, Jun 03, 2004 at 11:52:11AM -0300, James Sherwood wrote: : If the JKMount /* ajp13 passes everything to the jk handler, is there a way : route everything : but /staticserve directory to the jk handler? I've never done that, so I wouldn't know. I prefer the opposite approach: have a handful

Re: Serving up static content through apache using mod_jk

2004-06-03 Thread James Sherwood
ne 03, 2004 11:27 AM Subject: Re: Serving up static content through apache using mod_jk > On Thu, Jun 03, 2004 at 11:26:52AM -0300, James Sherwood wrote: > : > : ServerAdmin [EMAIL PROTECTED] > : DocumentRoot %pathtoapache%/htdocs/staticserve > : ServerName mydoma

Re: Serving up static content through apache using mod_jk

2004-06-03 Thread QM
On Thu, Jun 03, 2004 at 11:26:52AM -0300, James Sherwood wrote: : : ServerAdmin [EMAIL PROTECTED] : DocumentRoot %pathtoapache%/htdocs/staticserve : ServerName mydomain.ca : JKMount /* ajp13 : ErrorLog mylog.log : : : My problem is that apache is not serving up the contents i

Serving up static content through apache using mod_jk

2004-06-03 Thread James Sherwood
Hi, I am trying to serve up some of our static content through Apache instead of Tomcat I am using apache 2.049 and Tomcat 5.025 with mod_jk 1.2.5 Lets say in tomcat I have a directory serving up static html called staticserve. I reach it through www.mydomain.ca/staticserve/index.html I

Serving static content in tomcat 5

2004-02-26 Thread First Last
to the \WEB-INF\web.xml file: But it doesn't seem to work. Can someone please point me in the right direction to serve static content / files? Thanks, -Alex __ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://anti

RE: Serving static content in tomcat 5

2004-02-26 Thread Shapira, Yoav
Howdy, > I tried adding a to the >\WEB-INF\web.xml file: A context IS a web application: it's a one to one relationship. >But it doesn't seem to work. Can someone please point >me in the right direction to serve static content / >files? You don't need to co

RE: Serving static content in tomcat 5

2004-02-26 Thread Alex Smith
t doesn't seem to work. Can someone please > point > >me in the right direction to serve static content / > >files? > > You don't need to configure tomcat to serve static > content, it does so > automatically. You just need to place the static > content in y

RE: Serving static content in tomcat 5

2004-02-26 Thread Shapira, Yoav
led hi.html, I can access that >via https:///theWebApp/certs/hi.html > >I have checked my /conf/web.xml and there >is a mime mapping for .cer files. What gives? You should start a separate thread for a separate question ;) Because of the mime type mapping the browser will not tre

static content

2004-01-27 Thread Vano Beridze
d put those files under the root, so I can access them as http://mydomain:8080/resources/images/some.gif or http://mydomain:8080/resources/images/some.js My question is: can Tomcat serve static content outside the webapp context? Thanks

Re: tomcat 4.1.29 and static content in non Latin (ISO-8895-1) characters

2003-11-18 Thread Remy Maucherat
Galbayar wrote: Hi I have same problem. If you change apache httpd.conf file AddDefaultCharset windows-1251 static data has to be seen Cyrillic. However it is very bad solution:-) For a real fix, you can apply a patch to the Tomcat code: Index: Response.java

RE: tomcat 4.1.29 and static content in non Latin (ISO-8895-1) characters

2003-11-18 Thread Galbayar
omcat Users List' Subject: RE: tomcat 4.1.29 and static content in non Latin (ISO-8895-1) characters Have you tried running the page through native2ascii and then using the output of that as your JSP? -Original Message- From: Yavor Trapkov [mailto:[EMAIL PROTECTED] Sent: Tuesday, N

RE: tomcat 4.1.29 and static content in non Latin (ISO-8895-1) characters

2003-11-18 Thread George Sexton
Have you tried running the page through native2ascii and then using the output of that as your JSP? -Original Message- From: Yavor Trapkov [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 1:16 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.29 and static content in non Latin (ISO

tomcat 4.1.29 and static content in non Latin (ISO-8895-1) characters

2003-11-18 Thread Yavor Trapkov
Hello, I red some similar problems reported, but I'd like to post my question to the tomcat user community. I have an existing static documents (something.html) which has to be seen in Cyrillic (Windows-1251). An appropriate meta tag is included to tell the browser to use the right charset:

Re: Access static content ...

2003-11-07 Thread Jack Lauman
RL www.nwcascades.com ... We include keywords, dropdown selects (as CDATA), almost anything that is static from one page to the next. Make maintenance a great deal easier. In the JSP pages we use things similar to the following to separate the static content on apache and the dynamic content

Re: Access static content ...

2003-11-07 Thread Rodrigo Ruiz
The problem is the "/resources" entry. If you map it to the default servlet, the directory name itself will not be part of the path, but a "root" for the actual one, so the default servlet will understand you want to get the path following "resources", and it is "". I guess the same will happen

Re: Access static content ...

2003-11-07 Thread Samuel Le Berrigaud
Thanks for your help, I'll do it another way I think and I'll probably come back on that problem later on. SaM Tim Funk wrote: Then there is either - a bug in tomcat - a config error (most likely) but don't know what could be the culprit I never heard of this before. Seems quite odd. -Tim Sa

Re: Access static content ...

2003-11-07 Thread Tim Funk
Then there is either - a bug in tomcat - a config error (most likely) but don't know what could be the culprit I never heard of this before. Seems quite odd. -Tim Samuel Le Berrigaud wrote: Yes Tim Funk wrote: [Need more coffee] Does that mean that http://myserver/context/resources is serving

Re: Access static content ...

2003-11-07 Thread Samuel Le Berrigaud
.HttpServlet) doGet(HttpServletRequest req, HttpServletResponse resp) { if (req.getRequestURI().indexOf("/resources")>-1) { //Use the default servlet to serve the static content getServletContext().getNamedDispatcher("default").forward(req, resp); return; }

Re: Access static content ...

2003-11-07 Thread Tim Funk
tpServletRequest req, HttpServletResponse resp) { if (req.getRequestURI().indexOf("/resources")>-1) { //Use the default servlet to serve the static content getServletContext().getNamedDispatcher("default").forward(req, resp); return; } //Normal logic } -Tim Sam

Re: Access static content ...

2003-11-07 Thread Samuel Le Berrigaud
ervlet which maps to /* ... (assuming your extending javax.servlet.http.HttpServlet) doGet(HttpServletRequest req, HttpServletResponse resp) { if (req.getRequestURI().indexOf("/resources")>-1) { //Use the default servlet to serve the static content getServletContext().getNamedDispatc

Re: Access static content ...

2003-11-07 Thread Tim Funk
sources")>-1) { //Use the default servlet to serve the static content getServletContext().getNamedDispatcher("default").forward(req, resp); return; } //Normal logic } -Tim Samuel Le Berrigaud wrote: Hi all, I want to map my servlet with /* url pattern except the

Re: Access static content ...

2003-11-07 Thread Samuel Le Berrigaud
* ... (assuming your extending javax.servlet.http.HttpServlet) doGet(HttpServletRequest req, HttpServletResponse resp) { if (req.getRequestURI().indexOf("/resources")>-1) { //Use the default servlet to serve the static content getServletContext().getNamedDispatcher("def

Re: Access static content ...

2003-11-07 Thread Tim Funk
, HttpServletResponse resp) { if (req.getRequestURI().indexOf("/resources")>-1) { //Use the default servlet to serve the static content getServletContext().getNamedDispatcher("default").forward(req, resp); return; } //Normal logic } -Tim Samuel Le Berrigaud wro

Re: Access static content ...

2003-11-07 Thread Tim Funk
ve the static content getServletContext().getNamedDispatcher("default").forward(req, resp); return; } //Normal logic } -Tim Samuel Le Berrigaud wrote: Hi all, I want to map my servlet with /* url pattern except the /resources directory which contains static content that I want

Access static content ...

2003-11-07 Thread Samuel Le Berrigaud
Hi all, I want to map my servlet with /* url pattern except the /resources directory which contains static content that I want to acces directly. Is there any particular configuration that could allow me to do so, in my web.xml file or in the server.xml config file ? I want to do that on a

RE: Apache + Tomcat, a default servlet, and static content

2003-09-17 Thread Mike Curwen
All 3 of those are great solutions. Thanks to both of you. > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker > Sent: Tuesday, September 16, 2003 10:16 PM > To: [EMAIL PROTECTED] > Subject: Re: Apache + Tomcat, a default servlet, and

Re: Apache + Tomcat, a default servlet, and static content

2003-09-16 Thread Bill Barker
t. It is now your > servlet's job to also serve static content. > > A simple workaround: Extend the DefaultServlet, then use super.doGet(), > super.doPost() ... when your servlet doesn't want the mapping. > > -Tim > > Mike Curwen wrote: > > > Apologies if

Re[2]: Memory Leak with static content

2003-09-16 Thread Anton Tagunov
Hello Yoav! Seth Newton <[EMAIL PROTECTED]> wrote: SN>Virtual Size: 112592 SN>Real Size: 61880 SN>Time Up(days-hours:minutes:seconds): 01:05:20 SY> You realize these numbers are meaningless to anyone except you, as we SY> don't know what you're measuring, how you're measuring it, what the SY> pro

Apache + Tomcat, a default servlet, and static content

2003-09-16 Thread Mike Curwen
foo.css"; type="text/css"> Finally the question: Is there a way around having to use the separate virtual host to serve static content? ---

Re: Apache + Tomcat, a default servlet, and static content

2003-09-16 Thread Tim Funk
That is because your have overridden the default servlet. It is now your servlet's job to also serve static content. A simple workaround: Extend the DefaultServlet, then use super.doGet(), super.doPost() ... when your servlet doesn't want the mapping. -Tim Mike Curwen wrote: Ap

Apache + Tomcat, a default servlet, and static content

2003-09-16 Thread Mike Curwen
ve whatever requests it gets. And of course, I'd construct my links in such a manner: http://img.myfoo.com/img/foo.gif"; /> http://img.myfoo.com/myfoo.css"; type="text/css"> Finally the question: Is there a way around having to use the separate vir

RE: Memory Leak with static content

2003-09-15 Thread Shapira, Yoav
Howdy, >RESPONSE: Yeah, that's what I want for now. I want to see what happens >when >the garbage collector is called normally. Don't forget to enable verbose GC. >On a side note, I just called System.gc() manually and it only cleared a >couple hundred bytes. I will try later though, as it ha

Re: Memory Leak with static content

2003-09-15 Thread Seth Newton
nly cleared a couple hundred bytes. I will try later though, as it hasn't been long since last restart. - Original Message - From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, September 15, 2003 3:04

RE: Memory Leak with static content

2003-09-15 Thread Shapira, Yoav
Howdy, >> You realize these numbers are meaningless to anyone except you, as we >> don't know what you're measuring, how you're measuring it, what the >> proper results / proper behavior is, etc. >No, I didn't realize my numbers meant nothing. I figured them to be >self-explanatory. The numbers

Re: Memory Leak with static content

2003-09-15 Thread Seth Newton
t;Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, September 15, 2003 2:17 PM Subject: RE: Memory Leak with static content > > Howdy, > > >Here's what's happened on the server since 12:40 today > > > >Virtual Size: 112592 > >Real Si

RE: Memory Leak with static content

2003-09-15 Thread Shapira, Yoav
Howdy, >Here's what's happened on the server since 12:40 today > >Virtual Size: 112592 >Real Size: 61880 >Time Up(days-hours:minutes:seconds): 01:05:20 You realize these numbers are meaningless to anyone except you, as we don't know what you're measuring, how you're measuring it, what the p

Re: Memory Leak with static content

2003-09-15 Thread Seth Newton
Newton" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, September 15, 2003 2:01 PM Subject: Re: Memory Leak with static content > Yoav, > > Thanks for the response. I've used what you've suggested in the past on > developm

  1   2   >