RE: [OT] Basic int/char conversion question

2009-01-01 Thread Caldarale, Charles R
> From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] > Subject: Re: [OT] Basic int/char conversion question > > reset() is not implemented in InputStreamReader Quite correct; sorry - the revised code would be this: import java.io.ByteArrayInputStream; import java.io.InputStreamReader; impor

Re: How can the login page see parameters in the original request?

2009-01-01 Thread removeps-groups
Most thorough, thanks! --- On Thu, 1/1/09, Konstantin Kolinko wrote: > From: Konstantin Kolinko > Subject: Re: How can the login page see parameters in the original request? > To: "Tomcat Users List" > Date: Thursday, January 1, 2009, 3:53 PM > 2009/1/1 : > > Do you mean set session attribut

Re: [OT] Basic int/char conversion question

2009-01-01 Thread Konstantin Kolinko
2009/1/2 Caldarale, Charles R : >> From: Len Popp [mailto:len.p...@gmail.com] >> Subject: Re: [OT] Basic int/char conversion question >> >> If there's an easy way to convert a single character, >> someone please point it out. > > Not particularly easy, but this should work: > > (...) >isr = new

RE: [OT] Basic int/char conversion question

2009-01-01 Thread Caldarale, Charles R
> From: Len Popp [mailto:len.p...@gmail.com] > Subject: Re: [OT] Basic int/char conversion question > > If there's an easy way to convert a single character, > someone please point it out. Not particularly easy, but this should work: import java.io.ByteArrayInputStream; import java.io.InputStream

RE: [OT] Basic int/char conversion question

2009-01-01 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: [OT] Basic int/char conversion question > > Suppose I do this : > > String knownEncoding = "ISO-8859-1"; // or "ISO-8859-2" > InputStreamReader fromApp; > fromApp = = new InputStreamReader(socket.getInputStream(), > Charset.forName(know

RE: [OT] Basic int/char conversion question

2009-01-01 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: [OT] Basic int/char conversion question > > I must say that I find it a bit curious that Java does not > have an easy out-of-the-box method to convert a byte to a > char, with a character filter specifier. This would be possible only fo

Re: [OT] Basic int/char conversion question

2009-01-01 Thread André Warnier
To Konstantin and all the others who have responded, many thanks for all the tips, specially since this was quite a bit off-topic. I need some time to digest the tips though, and choose the best way according to the code that was dumped in my lap. I must say that I find it a bit curious that J

Re: How can the login page see parameters in the original request?

2009-01-01 Thread Konstantin Kolinko
2009/1/1 : > Do you mean set session attributes? How do you do that from the client side? > > a) You can set them in another page (an unprotected one) that is accessed before, or that redirects to this one. b) You can pass your secrets as a cookie, or as a request header. Cookies can be created

Re: [OT] Basic int/char conversion question

2009-01-01 Thread Konstantin Kolinko
2009/1/1 André Warnier : > Hi. > > This has nothing specific to Tomcat, it's just a problem I'm having as a > non-java expert in modifying an exiting webapp. > I hope someone on this list can answer quickly, or send me to the > appropriate place to find out. I have tried to find, but get somewhat

RE: [OT] Basic int/char conversion question

2009-01-01 Thread Martin Gainty
Andre/Len in case the earlier responses did not answer how to receive a CharSet encoded InputStream to a reader suggest implmenting a Reader which will accomodate charset (such as InputStreamReader) http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStreamReader.html InputStreamReader public

Re: [OT] Basic int/char conversion question

2009-01-01 Thread Len Popp
On Thu, Jan 1, 2009 at 14:39, André Warnier wrote: > I note with satisfaction that I'm not the only one laboring away on this > day-after, but you're just all going a bit too fast for me and my growing > but still limited Java knowledge. No hang-over here. :-) > In other words, in order to keep

Re: Setting Up PHP on Tomcat

2009-01-01 Thread michel
- Original Message - From: "Mark Thomas" To: "Tomcat Users List" Sent: Thursday, January 01, 2009 2:51 PM Subject: Re: Setting Up PHP on Tomcat michel wrote: - Original Message - From: "Mark Thomas" To: "Tomcat Users List" Sent: Thursday, January 01, 2009 2:12 PM Subjec

Re: Setting Up PHP on Tomcat

2009-01-01 Thread Mark Thomas
michel wrote: > - Original Message - > From: "Mark Thomas" > To: "Tomcat Users List" > Sent: Thursday, January 01, 2009 2:12 PM > Subject: Re: Setting Up PHP on Tomcat > > >> michel wrote: >>> I am following the instructions at Using PHP With Tomcat from >>> http://wiki.apache.org/tomc

Re: [OT] Basic int/char conversion question

2009-01-01 Thread André Warnier
Caldarale, Charles R wrote: From: Len Popp [mailto:len.p...@gmail.com] Subject: Re: [OT] Basic int/char conversion question I note with satisfaction that I'm not the only one laboring away on this day-after, but you're just all going a bit too fast for me and my growing but still limited Java

Re: Setting Up PHP on Tomcat

2009-01-01 Thread michel
- Original Message - From: "Hassan Schroeder" To: "Tomcat Users List" Sent: Thursday, January 01, 2009 2:38 PM Subject: Re: Setting Up PHP on Tomcat On Thu, Jan 1, 2009 at 11:22 AM, michel wrote: ouch, I got that one wrong thanks ... but I can't find "make" that is supposed to b

Re: Setting Up PHP on Tomcat

2009-01-01 Thread Hassan Schroeder
On Thu, Jan 1, 2009 at 11:22 AM, michel wrote: > > ouch, I got that one wrong thanks ... but I can't find "make" that is > supposed to be in the same directory as configure Dunno what makes you think that, but it's wrong -- `make` should be on your system (in your PATH), that's all. -- Hassan S

Re: Setting Up PHP on Tomcat

2009-01-01 Thread michel
- Original Message - From: "Mark Thomas" To: "Tomcat Users List" Sent: Thursday, January 01, 2009 2:12 PM Subject: Re: Setting Up PHP on Tomcat > michel wrote: >> I am following the instructions at Using PHP With Tomcat from >> http://wiki.apache.org/tomcat/UsingPhp >> and I am ok unt

Re: Setting Up PHP on Tomcat

2009-01-01 Thread michel
- Original Message - From: "André Warnier" To: "Tomcat Users List" Sent: Thursday, January 01, 2009 1:57 PM Subject: Re: Setting Up PHP on Tomcat michel wrote: I am following the instructions at Using PHP With Tomcat from http://wiki.apache.org/tomcat/UsingPhp and I am ok until I

Re: Setting Up PHP on Tomcat

2009-01-01 Thread Mark Thomas
michel wrote: > I am following the instructions at Using PHP With Tomcat from > http://wiki.apache.org/tomcat/UsingPhp > and I am ok until I run Makefile and I the following: > Command '"./Makefile"' > failed with return code 2 and error message > ./Makefile: line 1: srcdir: command not found > ./M

Re: Setting Up PHP on Tomcat

2009-01-01 Thread André Warnier
michel wrote: I am following the instructions at Using PHP With Tomcat from http://wiki.apache.org/tomcat/UsingPhp and I am ok until I run Makefile and I the following: Command '"./Makefile"' failed with return code 2 and error message ./Makefile: line 1: srcdir: command not found ./Makefile: li

Setting Up PHP on Tomcat

2009-01-01 Thread michel
I am following the instructions at Using PHP With Tomcat from http://wiki.apache.org/tomcat/UsingPhp and I am ok until I run Makefile and I the following: Command '"./Makefile"' failed with return code 2 and error message ./Makefile: line 1: srcdir: command not found ./Makefile: line 2: build

RE: [OT] Basic int/char conversion question

2009-01-01 Thread Caldarale, Charles R
> From: Len Popp [mailto:len.p...@gmail.com] > Subject: Re: [OT] Basic int/char conversion question > > I didn't mean to change the input stream at all, just change "buf" > from a StringBuffer to a ByteBuffer, then create a String with the > correct byte-to-character conversion after all the bytes

Re: [OT] Basic int/char conversion question

2009-01-01 Thread Len Popp
On Thu, Jan 1, 2009 at 12:09, Caldarale, Charles R wrote: >> From: Len Popp [mailto:len.p...@gmail.com] >> Subject: Re: [OT] Basic int/char conversion question >> >> Another option: Read the bytes into a ByteBuffer, then convert >> the bytes into a string. You can tell the String constructor >> wh

RE: [OT] Basic int/char conversion question

2009-01-01 Thread Caldarale, Charles R
> From: Len Popp [mailto:len.p...@gmail.com] > Subject: Re: [OT] Basic int/char conversion question > > Another option: Read the bytes into a ByteBuffer, then convert > the bytes into a string. You can tell the String constructor > which charset to use. That would seem to violate one of the specif

Re: [OT] Basic int/char conversion question

2009-01-01 Thread Len Popp
On Thu, Jan 1, 2009 at 11:13, André Warnier wrote: > Hi. > > This has nothing specific to Tomcat, it's just a problem I'm having as a > non-java expert in modifying an exiting webapp. > I hope someone on this list can answer quickly, or send me to the > appropriate place to find out. I have tried

RE: [OT] Basic int/char conversion question

2009-01-01 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: [OT] Basic int/char conversion question > I cannot change the InputStream into something else Actually, I think you can. If you wrapper the InputStream with an InputStreamReader specifying the desired character set, the rest of the code

[OT] Basic int/char conversion question

2009-01-01 Thread André Warnier
Hi. This has nothing specific to Tomcat, it's just a problem I'm having as a non-java expert in modifying an exiting webapp. I hope someone on this list can answer quickly, or send me to the appropriate place to find out. I have tried to find, but get somewhat lost in the Java docs. Problem

Re: How can the login page see parameters in the original request?

2009-01-01 Thread removeps-groups
Do you mean set session attributes? How do you do that from the client side? --- On Wed, 12/31/08, Konstantin Kolinko wrote: > From: Konstantin Kolinko > Subject: Re: How can the login page see parameters in the original request? > To: "Tomcat Users List" , removeps-gro...@yahoo.com > Date: W

Re: [us...@httpd] Problem with mod_headers ?

2009-01-01 Thread André Warnier
Rainer Jung wrote: On 31.12.2008 10:08, André Warnier wrote: Juha Laiho wrote: [...] Thanks, Juha. That helps me think in another direction. Maybe indeed in this case the mod_headers module does not get a chance to modify the response headers, because it is added before the mod_jk module, and mo