Re: How do I get user credential in Tomcat

2005-08-01 Thread Jo
Previous mails on 'j-security_check sessions' could give you a useful information. Since you're looking at Basic authentication, try to extract the credential from the authorization header. Jo.- - Original Message - From: Ikonne, Ike [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org

Re: How do I get user credential in Tomcat

2005-08-01 Thread Chris Holden
at this site you might find it useful http://www.unix.org.ua/orelly/java-ent/servlet/ch08_01.htm#ch08-3-fm2xml Chris. - Original Message - From: Jo [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, August 02, 2005 12:36 AM Subject: Re: How do I get user

RE: How do I get user credential in Tomcat

2005-08-01 Thread Ikonne, Ike
Hi Chris, Thanks, the information you provided is very useful. Ike -Original Message- From: Chris Holden [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 6:48 PM To: Tomcat Users List Subject: Re: How do I get user credential in Tomcat Well thanks to Frank I have been looking

RE: How do I get user credential in Tomcat

2005-08-01 Thread Ikonne, Ike
Hi Jo, Thanks, that's exactly what I was looking for. Ike -Original Message- From: Jo [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 6:36 PM To: Tomcat Users List Subject: Re: How do I get user credential in Tomcat Previous mails on 'j-security_check sessions' could give you

Re: how do i prevent tomcat5 from adding trailing slash?

2005-07-04 Thread Edmund Urbani
Bill Barker wrote: Edmund Urbani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi! i ran into some trouble with tomcat5 and its slash adding behaviour. there's this MS WebFolder client (M$ for WebDAV), that does not seem to be able to cope with status 302 redirects in some

RE: how do i prevent tomcat5 from adding trailing slash?

2005-07-01 Thread Sheets, Jerald
Greetings... In your mod_jk.conf, you have JkMount directives like so: JkMount /servlet/* ajp13 JkMount /jsp-examples/* ajp13 JkMount /servlets-examples/* ajp13 I find that in your mounts that if you simply remove the trailing slash in these, you can then call those URIs without the slash:

Re: how do i prevent tomcat5 from adding trailing slash?

2005-07-01 Thread Mladen Turk
Sheets, Jerald wrote: In your mod_jk.conf, you have JkMount directives like so: JkMount /servlet/* ajp13 JkMount /jsp-examples/* ajp13 JkMount /servlets-examples/* ajp13 I find that in your mounts that if you simply remove the trailing slash in these, you can then call those URIs without the

Re: how do i prevent tomcat5 from adding trailing slash?

2005-07-01 Thread Edmund Urbani
actually i'm currently using a standalone tomcat with its own http connector. working around the problem by using the apache httpd would be helpful in some production environments, but it's at least as important to get this to work with a standalone configuration for development/testing and other

RE: how do i prevent tomcat5 from adding trailing slash?

2005-07-01 Thread Sheets, Jerald
Works here... -Original Message- From: Edmund Urbani [mailto:[EMAIL PROTECTED] Sent: Friday, July 01, 2005 10:17 AM To: Tomcat Users List Subject: Re: how do i prevent tomcat5 from adding trailing slash? actually i'm currently using a standalone tomcat with its own http connector

Re: how do i prevent tomcat5 from adding trailing slash?

2005-07-01 Thread Bill Barker
Edmund Urbani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi! i ran into some trouble with tomcat5 and its slash adding behaviour. there's this MS WebFolder client (M$ for WebDAV), that does not seem to be able to cope with status 302 redirects in some situations. in order

RE: how do i restrict servlet access?

2005-06-24 Thread Jim Henderson
Take a look at yesterdays (6/23 5:02 PM) posting Blocking urls. That should help. -Original Message- From: Jason Novotny [mailto:[EMAIL PROTECTED] Sent: Thursday, June 23, 2005 10:13 PM To: tomcat-user@jakarta.apache.org Subject: how do i restrict servlet access? Hi, I have a

Re: how do i restrict servlet access? / blocking URLs

2005-06-24 Thread Jason Novotny
Hi Jim, Thanks-- I just looked at using a filter as a solution, but there seems to be a problem. I want the servlet in webapp A to be able to dispatch to B but not a user. The problem is the filter will block all requests including the dispatch from A. I need a way to somehow ensure that

Re: how do i restrict servlet access? / blocking URLs

2005-06-24 Thread Frank W. Zammetti
You could literally examine the IP of the incoming request (look at ServletRequest object), or you could have A set some sort of flag in request to indicate to the filter to let the request through regardless. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies

RE: how do i restrict servlet access? / blocking URLs

2005-06-24 Thread Jim Henderson
, June 24, 2005 1:32 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: how do i restrict servlet access? / blocking URLs Hi Jim, Thanks-- I just looked at using a filter as a solution, but there seems to be a problem. I want the servlet in webapp A to be able to dispatch to B

Re: how do i restrict servlet access? / blocking URLs

2005-06-24 Thread Louis Moore
you can use a Remote Host or Address Filter for webapp B that only allows localhost or whatever server webapp A runs on: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html something like this: Context of webapp B Valve className=org.apache.catalina.valves.RemoteAddrValve

RE: How do I change the error page being served while tomcat is starting up?

2005-06-06 Thread Brian McGovern
From what it sounds like you have apache running as a proxy to tomcat. If thats the case, Add the following to your apache config file httpd.conf change ErrorDocument 503 /your_file.html ErrorDocument 200 /your_file.html -B -Original Message- From: j r [mailto:[EMAIL PROTECTED] Sent:

Re: How do I change the error page being served while tomcat is starting up?

2005-06-06 Thread j r
Brian, You are correct! I was looking in the wrong place by trying to find the solution in tomcat. Changing apache works. Thanks! -jr On 6/6/05, Brian McGovern [EMAIL PROTECTED] wrote: From what it sounds like you have apache running as a proxy to tomcat. If thats the case, Add the

Re: How do I handle International Characters

2005-05-10 Thread Harry Mantheakis
Hi Lutz As far as HTML forms are concerned, you can force the browser to submit them to the server using a particular charset by adding the accept-charset attribute to the form tag, i.e.: form accept-charset=utf-8 ... ... /form

Re: How do I handle International Characters

2005-05-10 Thread Christoph Kutzinski
Lutz Zetzsche wrote: Hi Harry, Am Montag, 9. Mai 2005 20:53 schrieb Harry Mantheakis: Browsers should (and mostly do, I think) respect the encoding you specify when setting the response content-type (and the meta-tag content-type) so you can simply assume (in your filter) that your form-data

RE: How do I handle International Characters

2005-05-10 Thread Allistair Crossley
To: Tomcat Users List Subject: Re: How do I handle International Characters Lutz Zetzsche wrote: Hi Harry, Am Montag, 9. Mai 2005 20:53 schrieb Harry Mantheakis: Browsers should (and mostly do, I think) respect the encoding you specify when setting the response content-type

Re: How do I handle International Characters

2005-05-10 Thread Harry Mantheakis
A method we have used with success for inbound request encoding is to add a Servlet Filter to our application whose sole job is to call request.setCharacterEncoding(UTF-8) Allistair. And you might consider adding a call to: response.setContentType( text/html; charset=UTF-8 ); In the

Re: How do I redirect all tomcat ports to use SSL?

2005-05-09 Thread Donny R Rota
To Donny R Rota/Lexington/[EMAIL PROTECTED], tomcat-user@jakarta.apache.org cc Subject Re: How do I redirect all tomcat ports to use SSL? The below security-constraint will make Tomcat require the use of SSL. To have Tomcat automaitcally redirect for SSL, you must code redirectPort=443

Re: How do I handle International Characters

2005-05-09 Thread Harry Mantheakis
Hello I am using Tomcat 5.0 and I am trying to receive and send thai characters. Can someone please tell me the simplest ways to do this. This worked for me with Japanese characters: Use a filter to set encodings for both requests and responses: request.setCharacterEncoding( UTF-8

Re: How do I handle International Characters

2005-05-09 Thread haim
I am using the following plug-in for properties file. http://propedit.sourceforge.jp/index_en.html Helps when using messages resources , eliminate the need of native2ascii.exe Regards Haim Harry Mantheakis wrote: Hello I am using Tomcat 5.0 and I am trying to receive and send thai characters.

Re: How do I handle International Characters

2005-05-09 Thread Lutz Zetzsche
Hi Harry, Am Montag, 9. Mai 2005 20:53 schrieb Harry Mantheakis: Browsers should (and mostly do, I think) respect the encoding you specify when setting the response content-type (and the meta-tag content-type) so you can simply assume (in your filter) that your form-data will be in UTF-8.

Re: How do I handle International Characters

2005-05-07 Thread Mark Thomas
http://jakarta.apache.org/tomcat/faq/misc.html#tomcat5CharEncoding Mark David Harland wrote: I am using Tomcat 5.0 and I am trying to receive and send thai characters. Can someone please tell me the simplest ways to do this. Many thanks Dave. __ Do

Re: How do I handle International Characters

2005-05-07 Thread David Harland
Hi Mark If I have tried the following. response.setContentType(text/html; charset=utf-8); PrintWriter out = response.getWriter(); request.setCharacterEncoding(UTF-8); String test=request.getParameter(login); out.println(Input string:+test);

Re: How do I handle International Characters

2005-05-07 Thread Mark Thomas
David, You also need to look at how the parameters are set in the first place. Are you using GET or POST? If you are using GET have you set any of the character encoding settings on the connector? The following index.jsp works for me: %@ page contentType=text/html; charset=UTF-8 % !DOCTYPE HTML

Re: How do I handle International Characters

2005-05-07 Thread David Harland
#3655;Hi Mark, Many thanks for your help. Dave. --- Mark Thomas [EMAIL PROTECTED] wrote: David, You also need to look at how the parameters are set in the first place. Are you using GET or POST? If you are using GET have you set any of the character encoding settings on the connector?

Re: How do I redirect all tomcat ports to use SSL?

2005-05-05 Thread Fabian Pena
Software Group 20 Maguire Road, Lexington, MA 02421-3104 Tel: 781 676 2655, Fax: 781 676 7645 [EMAIL PROTECTED] Fabian Pena [EMAIL PROTECTED] 05/04/2005 04:51 PM Please respond to Tomcat Users List To Tomcat Users List tomcat-user@jakarta.apache.org cc Subject Re: How do I redirect all tomcat

Re: How do I redirect all tomcat ports to use SSL?

2005-05-05 Thread Bob Feretich
The below security-constraint will make Tomcat require the use of SSL. To have Tomcat automaitcally redirect for SSL, you must code redirectPort=443 as part of your port=80 connector definition in the server.xml file. Regards, Bob Feretich Subject: Re: How do I redirect all tomcat ports to use SSL

Re: How do I redirect all tomcat ports to use SSL?

2005-05-04 Thread Fabian Pena
In a web application, you can edit your web.xml file and add a security-constraint to redirect all application requests to SSL. I Hope this help Fabian Donny R Rota wrote: This weeks puzzler 8^) I want all my Tomcat requests to go through SSL. I setup tomcat, and got port 80 and port 443 (SSL)

Re: How do I redirect all tomcat ports to use SSL?

2005-05-04 Thread Donny R Rota
Users List tomcat-user@jakarta.apache.org cc Subject Re: How do I redirect all tomcat ports to use SSL? In a web application, you can edit your web.xml file and add a security-constraint to redirect all application requests to SSL. I Hope this help Fabian Donny R Rota wrote: This weeks

Re: How do I redirect all tomcat ports to use SSL?

2005-05-04 Thread Hassan Schroeder
Donny R Rota wrote: Thanks, I use security-constraints now, and I've been looking for this answer for weeks. I've not found that option available. Can you send me an URL to this? In the mean time, I'm going to see if I can find that option in my other sources. Uh, your other sources would

RE: How do I restrict access to webapps applications from browser users?

2005-04-14 Thread Darryl Wilburn
Another option would be the BadInputFilterValve. I can't really speak to that option as I have not used it. But, maybe someone else has? Darryl __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site!

RE: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Fritz Schneider
Ike. You need to complete your security-constraint with authorization, login, and role information. Here is what works for me: !-- Define a Security Constraint on this Application -- security-constraint web-resource-collection web-resource-nameRestricted Files/web-resource-name

RE: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Ikonne, Ike
: RE: How do I restrict access to webapps applications from browser users? Ike. You need to complete your security-constraint with authorization, login, and role information. Here is what works for me: !-- Define a Security Constraint on this Application -- security-constraint web-resource

Re: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Dakota Jack
in order to restrict access to certain directories? Thanks, Ike -Original Message- From: Fritz Schneider [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 11:04 AM To: 'Tomcat Users List' Subject: RE: How do I restrict access to webapps applications from browser

RE: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Fritz Schneider
: Wednesday, April 13, 2005 9:30 AM To: Tomcat Users List Subject: RE: How do I restrict access to webapps applications from browser users? Hi Fritz, So, are you saying that I have to have basic authentication enabled in order to restrict access to certain directories? Thanks, Ike

RE: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Ikonne, Ike
Hi Darryl, Thanks, I thought there was another way to do it other than setting up security constraints and making users to get the signon page that is associated with this. Thanks, Ike -Original Message- From: Darryl Wilburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005

Re: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Jason Bainbridge
On 4/13/05, Ikonne, Ike [EMAIL PROTECTED] wrote: Hi Darryl, Thanks, I thought there was another way to do it other than setting up security constraints and making users to get the signon page that is associated with this. Maybe you need to describe what you are actually trying to achieve

RE: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Ikonne, Ike
tomcat with Apache. Again, thanks for your response -Original Message- From: Jason Bainbridge [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 4:27 PM To: Tomcat Users List Subject: Re: How do I restrict access to webapps applications from browser users? On 4/13/05, Ikonne, Ike

Re: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Hassan Schroeder
Ikonne, Ike wrote: It is more like the last thing you listed below. I know that when fronted with Apache, that can be done, I thought tomcat had similar directory control that apache has without having to setup security constraints. You basically nailed it, I may have to tell my clients to just

Re: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Robert r. Sanders
Note that there are also a number of Filters that can implement something similar, with much more fine grained control than the servlet-spec allows for container-managed security. Darryl Wilburn wrote: I lost the thread to this original message, but found what I consider good information. Ike,

Re: How do I force the expiration of the JSESSIONID cookie for proxies?

2005-01-11 Thread Mike Fowler
Ian - HttpSession.invalidate() will cause the client's cookie to expire. -Mike Fowler I could be a genius if I just put my mind to it, and I, I could do anything, if only I could get 'round to it Ian Stevens wrote: I have a system which renders a session stored in the HttpSession unusable once the

Re: How do I reset the Default Context for all tomcat application in a Server Container??

2005-01-11 Thread Troy Simpson
I was afraid I was going to have to do it for each application. I was hoping that I could set a Tomcat Server Wide Base URL then let each webapp append to it. Does anyone think that this might be a benefitial feature for a future release? Thanks Troy -- Troy Simpson Applications

Re: How do I reset the Default Context for all tomcat application in a Server Container??

2005-01-11 Thread Parsons Technical Services
PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, January 11, 2005 12:15 PM Subject: Re: How do I reset the Default Context for all tomcat application in a Server Container?? I was afraid I was going to have to do it for each application. I was hoping that I could set

Re: How do I reset the Default Context for all tomcat application in a Server Container??

2005-01-10 Thread Parsons Technical Services
To move each app, set their context value in the app.xml to the desired context. As for the welcome page, you will either need a new app(rename ROOT) and add/modify as needed or combine it with another app and tweak the links. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html

Re: How Do I Install A Valve

2005-01-03 Thread Mark Anderson
, not inside the web app, they need to be in the server classpath. You can either do what you did or edit catalina.properties. -Original Message- From: Mark Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 4:48 PM To: Tomcat Users List Subject: Re: How Do I Install

Re: How Do I Install A Valve

2004-12-30 Thread Mark Anderson
Through some trial and error, I solved the problem. The class file apparently needs to be under CATALINA_HOME/server/classes. If one bundles it into a jar file, the jar needs to be in CATALINA_HOME/server/lib. I'm real new to Tomcat, so I don't know if this is really the place to put it. Is

RE: How Do I Install A Valve

2004-12-30 Thread Benson Margulies
catalina.properties. -Original Message- From: Mark Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 4:48 PM To: Tomcat Users List Subject: Re: How Do I Install A Valve Through some trial and error, I solved the problem. The class file apparently needs to be under CATALINA_HOME

Re: how do I unsubscribe from this mailing list?

2004-11-01 Thread Antony Paul
You will get a mail asking for confirmation whether you want to unsuscribe. Send an empty reply for it. rgds Antony Paul On Mon, 1 Nov 2004 09:31:04 -, Adrian Harrison [EMAIL PROTECTED] wrote: can anyone please tell me how to? sent an email to this address but still receiving tomcat

Re: How do I configure Tomcat to write to a Serial Port?

2004-10-02 Thread Parsons Technical Services
What OS? - Original Message - From: Donald Horrell (BT) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 02, 2004 9:04 AM Subject: How do I configure Tomcat to write to a Serial Port? I've downloaded and installed the Java Communications API (version 2) and Tomcat

Re: how do i set max session time in 4.1.27

2004-09-09 Thread Antony Paul
If you are setting maximum session time out you can set it in the WEB-INF/web.xml like this session-config session-timeout30/session-timeout /session-config The time out is in minutes. This is to be placed after servlet-mapping element. or use session.setMaxInactiveInterval(); rgds Antony

Re: how do i set max session time in 4.1.27

2004-09-09 Thread Arun Prasad R
thanks paul though i set session.setMaxInactiveInterval(); sombody is overriding this action any help arun On Thu, 9 Sep 2004 16:24:05 +0530, Antony Paul [EMAIL PROTECTED] wrote: If you are setting maximum session time out you can set it in the WEB-INF/web.xml like this session-config

RE: How do I programmatically find the DocBase of my webapp?

2004-09-03 Thread Shapira, Yoav
Hi, Why don't people ever search the archives before posting? At least that's how it seems ;) Use ServletContext#getRealPath(/) if running unpacked, which I bet is your use case. Yoav Shapira Millennium Research Informatics -Original Message- From: Glanville, Jay [mailto:[EMAIL

RE: How do I programmatically find the DocBase of my webapp?

2004-09-03 Thread Jay Glanville
: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 2:07 PM To: Tomcat Users List Subject: RE: How do I programmatically find the DocBase of my webapp? Hi, Why don't people ever search the archives before posting? At least that's how it seems ;) Use ServletContext

RE: How do I make my servlet the welcome page

2004-09-01 Thread Shapira, Yoav
Hi, I hope ui.html is a directory and not a file, because otherwise your Context docBase is invalid. Specify a DTD (or schema) for your web.xml, and make sure it's valid according to that DTD (or schema). For example, in the 2.3 servlet spec DTD, welcome-file-list can only come after servlets

Re: How do I make my servlet the welcome page

2004-09-01 Thread QM
On Wed, Sep 01, 2004 at 02:16:49PM -0500, Brad Taylor wrote: : I am running tomcat 5.0.9. I currently enter a url like : http://localhost:8080/myapp. This causes a redirect page to be : briefly displayed followed by my servlet getting invoked and serving the : real page. I would like to bypass

Re: How do I make my servlet the welcome page

2004-09-01 Thread Jonathan Eric Miller
Users List [EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 2:26 PM Subject: Re: How do I make my servlet the welcome page On Wed, Sep 01, 2004 at 02:16:49PM -0500, Brad Taylor wrote: : I am running tomcat 5.0.9. I currently enter a url like : http://localhost:8080/myapp. This causes

RE: How do I make my servlet the welcome page - resolved

2004-09-01 Thread Brad Taylor
After trying both suggestions (moving welcome file list to end of web.xml and adding the 2.4 schema to the web tag), it still did not work. I tried changing the web.xml in the tomcat\conf directory, it still did not work. I removed index.html from my directory and it started displaying the

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread QM
On Tue, Aug 31, 2004 at 10:47:27AM -0700, [EMAIL PROTECTED] wrote: : in my head section, but the proxy still caches my page. I read somewhere : to put the cache-control:no-cache in the http header of the request, but I : could not find how to do this in tomcat. Any help would be appreciated.

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread yem
Thanks, I will give this a try. -- Christopher Cullum [EMAIL PROTECTED] QM said: On Tue, Aug 31, 2004 at 10:47:27AM -0700, [EMAIL PROTECTED] wrote: : in my head section, but the proxy still caches my page. I read somewhere : to put the cache-control:no-cache in the http header of the

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread John Gentilin
When I am battling against IE caching or proxy caching, I add the following lines to my response header. A bit brute force but it seems to work, althought I think it cause some issues when backing up on a form, forcing a reload. response.setHeader(Cache-Control,

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread yem
Must you do this as one of the first things you do, before you output any html? -- Christopher Cullum [EMAIL PROTECTED] John Gentilin said: When I am battling against IE caching or proxy caching, I add the following lines to my response header. A bit brute force but it seems to work,

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread John Gentilin
Not sure if order matters but in my code, I set the headers first then process the request. -JG [EMAIL PROTECTED] wrote: Must you do this as one of the first things you do, before you output any html? - To unsubscribe,

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread Ronald Klop
Yes. To be precise: you have to set the headers before Tomcat flushes its outputbuffer for the first time. To be save, just set headers, than output html. Ronald, On Tue Aug 31 20:10:13 CEST 2004 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Must you do this as one of the first things you do, before

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread John Villar
you could also use a filter for your whole app that does that, if you want all your app non-cached, same rules apply Ronald Klop escribió: Yes. To be precise: you have to set the headers before Tomcat flushes its outputbuffer for the first time. To be save, just set headers, than output

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread yem
Can I ask Tomcat if it has flushed it's output buffer yet? -- Christopher Cullum [EMAIL PROTECTED] John Villar said: you could also use a filter for your whole app that does that, if you want all your app non-cached, same rules apply Ronald Klop escribió: Yes. To be precise: you have

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread Carl Howells
[EMAIL PROTECTED] wrote: Can I ask Tomcat if it has flushed it's output buffer yet? As part of the servlet spec... HttpServletResponse has an isCommitted() method. That will tell you whether it's flushed the buffer. But really, it seems like a bad design to rely on that method.

Re: How do I get an intermediary proxy from caching?

2004-08-31 Thread yem
-- Christopher Cullum [EMAIL PROTECTED] Carl Howells said: [EMAIL PROTECTED] wrote: Can I ask Tomcat if it has flushed it's output buffer yet? As part of the servlet spec... HttpServletResponse has an isCommitted() method. That will tell you whether it's flushed the buffer. But

RE: How do I get an intermediary proxy from caching?

2004-08-31 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: How do I get an intermediary proxy from caching? To rely on that method, yes a bad design, to check before you change the headers, so you can head off an exception, not a bad design. However, you're adding code

Re: How do I logout application(s) with Single-sign-on?

2004-08-31 Thread Rick Wong
Thanks Keith, I figured out what I did wrong. It turns out that my logout servlet was running in a separate Web application that is not part of the SSO Realm. Of course, session.invalidate() does nothing to the SSO session! Thanks a lot for your help! Thanks a lot, -- Rick Keith Bottner

RE: How do I get an intermediary proxy from caching?

2004-08-31 Thread yem
PROTECTED] Subject: Re: How do I get an intermediary proxy from caching? To rely on that method, yes a bad design, to check before you change the headers, so you can head off an exception, not a bad design. However, you're adding code for a hopefully infrequent situation to the main path

RE: How do I get an intermediary proxy from caching?

2004-08-31 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: RE: How do I get an intermediary proxy from caching? Adding the headers will not be an infrequent situation, most of my site is dynamic so almost all of the site cannot be cached. The adding of these headers will be part

RE: How do I get an intermediary proxy from caching?

2004-08-31 Thread yem
: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: RE: How do I get an intermediary proxy from caching? Adding the headers will not be an infrequent situation, most of my site is dynamic so almost all of the site cannot be cached. The adding of these headers will be part of the main

Re: How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread Kimmy Lin
Do you have control over how the request is composed? If so, you can put the XML data in a parameter say xmldoc and the equivalent GET request will look like the following http://URL?xmldoc=yourXML.../yourXML ( and not escaped) Then in your program do request.getParameter(xmldoc); to get the

Re: How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread QM
On Tue, Aug 31, 2004 at 06:15:59PM -0400, Kimmy Lin wrote: : http://URL?xmldoc=yourXML.../yourXML : request.getParameter(xmldoc); The OP may run into some limits with that, unless those are very small XML docs. =) Doesn't Request#getInputStream() provide the body? -or does it get the whole

Re: How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread John Gentilin
Try this, override service and not doGet / doPost where the code is public void service( ServletRequest request, ServletResponse response ) throws javax.servlet.ServletException, java.io.IOException { Document doc; // Create an InputStream to read in the XML data to be parsed

Re: How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread Kimmy Lin
though. But Request#getInputStream() does provide the request body w/o the header. kimmy - Original Message - From: QM [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 6:27 PM Subject: Re: How do I read only the XML data in doPost(req,res)? On Tue

RE: How do I logout application(s) with Single-sign-on?

2004-08-27 Thread Keith Bottner
request.getSession().invalidate(); You may also want to invalidate any cookies you have set, but that is specific to your needs. Cookie cookies[] = request.getCookies(); Cookie cookie = null; for (int i = 0; i cookies.length; i++) { cookie = cookies[i]; cookie.setMaxAge(0);

RE: How do I configure Tomcat to translate UTF-8 encoded parameters

2004-08-23 Thread Filip Hanik \(lists\)
doesn't URIEncoding suggest that the URI is encoded, in a POST, the parameters are passed in the body, not in the URI? -Original Message- From: Rick Wong [mailto:[EMAIL PROTECTED] Sent: Monday, August 23, 2004 8:08 PM To: Tomcat Users List Subject: How do I configure Tomcat to

Re: How do I configure Tomcat to translate UTF-8 encoded parameters

2004-08-23 Thread Rick Wong
Filip Hanik (lists) wrote: doesn't URIEncoding suggest that the URI is encoded, in a POST, the parameters are passed in the body, not in the URI? Yes it does, and hence the second part of my question. Do you know how one can configure Tomcat to decode input parameters with UTF-8 encoding?

Re: How do I configure Tomcat to translate UTF-8 encoded parameters

2004-08-23 Thread Jacob Kjome
At 08:34 PM 8/23/2004 -0700, you wrote: Filip Hanik (lists) wrote: doesn't URIEncoding suggest that the URI is encoded, in a POST, the parameters are passed in the body, not in the URI? Yes it does, and hence the second part of my question. Do you know how one can configure Tomcat to decode

Re: how do I call a function in a bean the easy an tidy way?

2004-08-17 Thread Christian Fritze
Tobias Eriksson wrote: Hi I'm trying to call a method in a BEAN that returns an array of objects that I need to enumerate on my page. But I don't want to access a property with EL, like this e.g. ${mybean.names} ) as I need to provide an argument to the method. I need to say how many names I

Re: how do I call a function in a bean the easy an tidy way?

2004-08-17 Thread Cott Lang
I don't know of any easy tidy way, unless you're using Resin, which allows you to call functions that don't match bean naming conventions and pass parameters. It's always nice to have standards to protect us from ourselves. :) There is a more tidy way - define a function in a .tld. Since it has

Re: how do I call a function in a bean the easy an tidy way?

2004-08-17 Thread QM
On Tue, Aug 17, 2004 at 01:46:34PM +0200, Tobias Eriksson wrote: : I'm trying to call a method in a BEAN that returns an array of objects : that I need to enumerate on my page. But I don't want to access a : property with EL, like this e.g. ${mybean.names} ) as I need to provide : an argument to

RE: How do I manage the thread pool in 5.0.27?

2004-08-04 Thread Shapira, Yoav
Hi, You would lower maxSpareThreads on your Connector configuration in server.xml. See the various *Threads parameters for the Connector for more tuning options. Yoav Shapira Millennium Research Informatics -Original Message- From: Joseph Shraibman [mailto:[EMAIL PROTECTED] Sent:

Re: How do I manage the thread pool in 5.0.27?

2004-08-04 Thread Joseph Shraibman
But the jk connector doesn't have those paramaters, does it? Shapira, Yoav wrote: Hi, You would lower maxSpareThreads on your Connector configuration in server.xml. See the various *Threads parameters for the Connector for more tuning options. Yoav Shapira Millennium Research Informatics

RE: How do I manage the thread pool in 5.0.27?

2004-08-04 Thread Shapira, Yoav
Hi, I don't know, I don't use it. Yoav Shapira Millennium Research Informatics -Original Message- From: Joseph Shraibman [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 12:37 PM To: Tomcat Users List Subject: Re: How do I manage the thread pool in 5.0.27? But the jk

Re: How do I find out which version of tomcat is installed?

2004-06-24 Thread Mike Fowler
Andrew Watters wrote: I have full access to the tomcat directory but I can't find the version number in any of the files. It's probably somewhere obvious but I just can't see it. Please help... - To unsubscribe, e-mail: [EMAIL

RE: How do I find out which version of tomcat is installed?

2004-06-24 Thread Schalk
Load the root index file. Usually you will get this by simply going to http://yourdomain.com:8080/ Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436

Re: How do I find out which version of tomcat is installed?

2004-06-24 Thread Andrew Watters
Thanks for your help, unfortunately in this case the manager app isn't there and the default 404 page which I know shows the version number isn't returned because the running application interecepts and shows its own page. Mike Fowler wrote: Andrew Watters wrote: I have full access to the

Re: How do I find out which version of tomcat is installed?

2004-06-24 Thread Andrew Watters
Thanks for your reply, unfortunately the root index file has long since been deleted. Schalk wrote: Load the root index file. Usually you will get this by simply going to http://yourdomain.com:8080/ Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President

RE: How do I find out which version of tomcat is installed?

2004-06-24 Thread Cocalea, Eugen
Hi, 1. Install tomcat 2. go to installation path 3. enter the server/lib directory 4. unzip the catalina.jar file 5. in the directory resulted, go to org\apache\catalina\util 6. ServerInfo.properties has what you're looking for. /EC -Original Message- From: Andrew Watters [mailto:[EMAIL

Re: How do I find out which version of tomcat is installed?

2004-06-24 Thread Andrew Watters
Excellent, thanks very much. Not quite as intuitive as I expected... Cocalea, Eugen wrote: Hi, 1. Install tomcat 2. go to installation path 3. enter the server/lib directory 4. unzip the catalina.jar file 5. in the directory resulted, go to org\apache\catalina\util 6. ServerInfo.properties has

Re: How do I find out which version of tomcat is installed?

2004-06-24 Thread Jarl Skogsholm
It is also listed when Tomcat starts up. Either in your command window or log file. On Thu, 24 Jun 2004 13:17:07 +0100, Andrew Watters [EMAIL PROTECTED] wrote: Excellent, thanks very much. Not quite as intuitive as I expected... Cocalea, Eugen wrote: Hi, 1. Install tomcat 2. go to

Re: How do I run servlets on the root directory of localhost?

2004-06-16 Thread carters2
- :: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] :: Sent: Monday, June 14, 2004 11:13 PM :: To: 'Tomcat Users List' :: Subject: RE: How do I run servlets on the root directory of localhost? :: :: I am not using Apache although I wish we were, my boss believes in an all

RE: How do I run servlets on the root directory of localhost?

2004-06-15 Thread Jarl Skogsholm
can correct and delete the original email. Thank you. :: -Original Message- :: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] :: Sent: Monday, June 14, 2004 11:13 PM :: To: 'Tomcat Users List' :: Subject: RE: How do I run servlets on the root directory of localhost

RE: How do I run servlets on the root directory of localhost?

2004-06-15 Thread carters2
the original email. Thank you. :: -Original Message- :: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] :: Sent: Monday, June 14, 2004 11:13 PM :: To: 'Tomcat Users List' :: Subject: RE: How do I run servlets on the root directory of localhost? :: :: I am

  1   2   3   4   5   >