Re: Connection Pooling - Please Help

2001-03-19 Thread Tagunov Anthony

On Mon, 19 Mar 2001 15:07:38 -, RameshBabu R Muthuvel wrote:

Hi

I am using Apache 1.3.12, Tomcat 3.2.1, mySQL 3.23 on Windows NT 4.0

I am trying to include connection pooling in my JSP pages using PoolMan.
Inspite of carrying out all the elaborate installation procedure, yet i
could not establish a connection.


Anyone out there has done connection pooling with tomcat. If so can you help 
me.
Please reply immediately.

Thanking in advance

Haven't used it myself, but here's a "digest" that i have made of answeres to
this question that i met in the list for the last week:

table border="1"
  trtda 
href="http://sourceforge.net/projects/webwork/"webworks/a/tdtd??/td/tr
  trtda 
href="http://poolman.sourceforge.net/"http://poolman.sourceforge.net//a(PoolMan)/td
  tda reported good jdbc connection pooling implementation for jsps, greyson 
sais "nowhere near production"/td/tr
  trtda 
href="http://www.webdevelopersjournal.com/columns/connection_pool.html"http://www.webdevelopersjournal.com/columns/connection_pool.html/a
/td
  tdjdbc connection pooling/td/tr
  trtda href="http://www.codestudio.com"www.codestudio.com/a/td
  tdsome stuff to make it common with sockets, etc/td/tr
  trtda 
href="http://www.bitmechanic.com/projects/jdbcpool/"http://www.bitmechanic.com/projects/jdbcpool//a/td
  tdreported to work for two years/td/tr
  trtda href="www.javasoft.com"www.javasoft.com/a/td
  tdthreads and singleton patterns/td/tr
  trtda 
href="http://www.bitmechanic.com/projects/jdbcpool/"http://www.bitmechanic.com/projects/jdbcpool//a/td
  tdanother one frequently suggested, contact a 
href="[EMAIL PROTECTED] [EMAIL PROTECTED]"1/a/td
  trtda 
href="http://www.knightsofthenet.com/projects/SQLPool"http://www.knightsofthenet.com/projects/SQLPool/a/td
  tdbitmechanic pool for a couple of years. an easy way to set this up I have a 
wrapper for it 
      contact: a href="mailto:Brett Knights 
[EMAIL PROTECTED]"1/a/td
  /tr
/table



Best regards, 
   Tagunov Anthony





Re: org.apache.tomcat libraries

2001-03-19 Thread Tagunov Anthony

On Mon, 19 Mar 2001 11:33:02 -0800, Batsheva Raviv wrote:

Not an expert, but beleive that if you download Tomcat sources,
build with ant you will have an oppotunity to build javadoc
too. (maybe an ant target javadoc or javadocs -- don't remember right now)

can somebody tell me where I can find a reference to the following packages?
org.apache.tomcat.core.Request;
org.apache.tomcat.core.FacadeManager;
org.apache.tomcat.core.Context;
org.apache.tomcat.core.ContextManager;
org.apache.tomcat.util.RequestUtil;
Thanks,
Batsheva
Batsheva


Best regards, 
   Tagunov Anthony





RE: Super Newbie...

2001-03-19 Thread Tagunov Anthony

On Mon, 19 Mar 2001 15:57:56 -0500, Joel R. Cochran wrote:

Thanks Bo,

I tried to install it...but.

1. I've extracted both .zip files
2. Set TOMCAT_HOME to my directory
3. Tried to execute "bin\startup"
4. Received the following:
   C:\Tomcat\jakarta-tomcat-3.2.1bin\startup
   Out of environment space
   Out of environment space
   Unable to determine the value of TOMCAT_HOME.
   C:\Tomcat\jakarta-tomcat-3.2.1

You should tune something up in the windows shourtcut
you use to start the applications, or so other advisors
said, never tried it myself..

Best regards, 
   Tagunov Anthony





test

2001-03-18 Thread Tagunov Anthony

please disregard this message





Plese, could you comment on this.. Hanging Tomcat (Standlone) - problem and solution

2001-03-18 Thread Tagunov Anthony

On Sun, 18 Mar 2001 10:08:42 -0800, Tal Dayan wrote:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1006

This is a severe problem that opens Tomcat stand-alone mode to DOS attaches but 
more importantly, it makes it incapable of surviving a single busy day on a 
production system of one of our partners. 

Year Looks like you've caught A BIG FAT RAT!!! One of the BIGGEST!!!
I'm a person responsible for all java-based-serving on our sites, not very
loaded yet.. And looks like _this_ is the problem that has nearly given
me _grey_ hair!!!

(What i ended up developing is a pinging facility that would find if our
nice good Tomcat is _DEAD_ and force-restart it!!!)

The symptoms are that Tomcat's  built-in Web server (standalone mode) 
accumulates..

Can this happen to Ajp12 connections also? Please, anybody! this is the main 
question that i'd like to find out: our Tomcat falls tead pretty often (guess what
my bosses tell me when our sites stop responding!!!) and we do not know why..
The thing is that although we have built-in Web server set (http connectors) up 
for all Tomcat instances (we still have 3.2b7..), they are not practically used 
much (maybe not invoked at all).. They are used via Ajp12. Can this same thing
happen in this configuration (with mod_jserv on Apache, Apache running on BSD,
Tomcat on Linux RH 6.2)

Most hearty greeting to evryone,
sincerely yours, Tagunov Anthony






Re: Cache problem with IE -- IE setup

2001-03-16 Thread Tagunov Anthony

A wild guess: there may be some problem with the caching setup of the IE
you're using for testing. There are several options available, maybe yours
is _ALWAYS_ to cache.

On Fri, 16 Mar 2001 09:00:55 +0100, Zsolt Koppany wrote:

Hi Randy,

thank you for your answer. I tried everything proposed in this mail-list
(thanks everybody who tried to help) and found no solution. When tomcat
final 4.x comes out I will try it again.

Zsolt

Randy Layman wrote:
 
 Tomcat 3.x doesn't support sending responses back to the client in
 HTTP 1.1 - it only supports 1.0.  If you want to send responses back to the
 browser with HTTP 1.1 you must either use Apache, IIS, iPlanet, or some
 other web server in front of Tomcat, or use Tomcat 4, which is current in
 development.
 
 Randy
 
  -Original Message-
  From: josé placide [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, March 14, 2001 6:29 PM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: Re: Cache problem with IE
 
 
  Hello,
 
 
  Could somebody tell me please,
  how can i set HTTP/1.1 instead of 1.0
 
  regards.
 
  - Original Message -
  From: "Joe Laffey" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, March 13, 2001 7:41 PM
  Subject: Re: Cache problem with IE
 
 
   On Tue, 13 Mar 2001, Zsolt Koppany wrote:
  
I do it from a JSP and not from a servlet and the page look like:
   
%response.setHeader("Cache-Control",
"no-cache");response.setHeader("Pragma", "no-cache");%
  
   OK,
  
   Try telnetting to your box and issue the HTTP command:
  
   GET /root/relative/path/to/file HTTP/1.0
  
   (two returns)
  
   Then look at the header (which will be at the top and may
  scroll off the
   screen). You can also try the HEAD command instead of GET.
  
   You might also try HTTP/1.1 instead of 1.0 and see what the
  responses are.
   If you get headers like the ones you set ("Pragma:
  no-cache", etc.) then
   the problem is with the browser not honoring them. In this
  case try the
   META versions instead. If you do not get those headers than your JSP
   container is not setting the headers for some reason.
  
   When you telnet look also for other headers like max-age
  and expires. You
   may have your server configured to set these for the file.
  The browser may
   be using these instead. Turn off Expires for the directory
  or location in
   question.
  
   Joe Laffey
   LAFFEY Computer Imaging
   St. Louis, MO
   --
  
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
  
  
 

-- 
Zsolt Koppany
Intland GmbH www.intland.com
Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart
Tel: +49-711-7871080 Fax: +49-711-7871017
Tel: +49-711-7871080 Fax: +49-711-7871017






IE caching again (was: expire_

2001-03-16 Thread Tagunov Anthony

Well, there's already been an extensive discussion on this in the
list just the last days all day long. Arrived to nothing.
(only you may try to issue

response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setHeader("Expires",-1)

instead... Please try to search the list, there have been some
references on FAQs on caching..

My own guess is that maybe people that have trouble with this
have caching setting in their IE wrong? There are some
levels there, maybe you have a setting at the stricktest
level that prevents webapps that don't want there pages
cached from working at all?

On Fri, 16 Mar 2001 10:59:50 +0100, Heijns, P.J.B. wrote:

I tried, but it doesn't work. If I push the back button in my browser, the
page isn't expired or correctly resfreshed. So I see the same previous page
where I was before. I used IE, in netscape it works correctly.

Grtz Pieter

-Original Message-
From: Alistair Hopkins [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 16 maart 2001 9:58
To: [EMAIL PROTECTED]
Subject: RE: expire


response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setHeader("Expires","Tue, 01 Jan 1980 1:00:00
GMT");

covers various browsers and os's and the like, but it still seems to get
cached, particularly in ie 5, for unknown reasons and to an intermittent
schedule :-(

-Original Message-
From: Heijns, P.J.B. [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 16, 2001 8:54 AM
To: [EMAIL PROTECTED]
Subject: expire


Hi,

Does anyone know how I can expire a JSP page? I want that if you leave the
JSP page it immediately expires, so that the users can't use the back button
in there browser to go to the previous page.

Thank u,

Pieter Heijms
Pieter Heijms






Re: Disable Directory Browsing in tomcat

2001-03-16 Thread Tagunov Anthony

On Fri, 16 Mar 2001 19:44:33 +0530, Harish Gundecha wrote:

hi ,

Can u please tell me how did you manage to stop directory listing in Apache
!!!

in your server.xml file

change the appropriate
StaticInterceptor  debug="0" listings="true" /
to 
StaticInterceptor  debug="0" listings="false" /

if you want to disable serving static files completely
just comment out this:
!--StaticInterceptor  debug="0" listings="true" /--

Pitifully enough i do not know a way to disable this listing
for one webapp while still allowing it for another.
Maybe someelse does.



best regards, Tagunov Anthony





[OT] RE: Linux-Tomcat-ThreadPool NullpointerException

2001-03-16 Thread Tagunov Anthony

On Fri, 16 Mar 2001 09:44:46 -0800 (PST), Bill Graham wrote:

Frank,

Thanks for the reply. I'm going to start tryiong to
debug Tomcat and see what this NullPointer is.
Let me know if you get anywhere and I'll do the same.

One thing I've read about and experienced was bad
performance with IBM's vm on Linux w/ Tomcat. You
might want to try Sun's vm and see if it gets any
better.

Only don't run in Hotspot mode. Run it in -classic mode.
Because due to some bug in hotspot compiler the JVM
crashes with tomcat. It's a recognized Sun's bug and
funny enough, all the bug reports on that are about
Tomcat -- a rich collection from 3.0 to 3.2b.xy!

(sorry, i've lost the bug id somhow .. :-(  )

Regardless though, I still think something's buggy
in Tomcat.

bill


--- "Lucero, Frank J" [EMAIL PROTECTED]
wrote:
 Bill, 
 
 I'm doing about the same thing.  I'm running the
 following:
 apache 1.3.19
 Tomcat 3.2.1
 IBMJava2-SDK-1.3-5.0.i386.rpm
 classes12.zip (from Oracle)
 
 I am using LoadRunner with a 100 simulated users
 accessing 9 Oracle JSPs.
 I'm running
 this 100 times. It fails about 8 out of 10 times.
 
 What i have found is that even if you only run 10
 users, but run
 the scenario 1000 and it fails at about half way
 through.  
 
 I've been running with both mod_jk in Apache and
 also native tomcat with the
 same results
 so I'm sure the problem is with tomcat.  ...but not
 sure exactly where or
 what to do to fix
 it.  If you find anything, please let me know.
 regards,
 
 
 
 -Original Message-
 From: Bill Graham [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 15, 2001 9:14 PM
 To: [EMAIL PROTECTED]
 Subject: Linux-Tomcat-ThreadPool
 NullpointerException
 
 
 I'm just getting started with Tomcat and the first
 thing I'm doing
 is some load testing. I'm using VA Linux with Tomcat
 3.2.1 and the Sun
 j2re1.3 VM. When hitting Tomcat with 60 threads each
 making 1000 requests,
 I periodically will get the following excepion on my
 client machines:
 
  java.net.SocketException: Connection reset by peer:
 Connection reset by peer
 
 and following excepion on hy server machine:
 
  2001-03-16 03:20:24 - ContextManager: Error reading
 request, ignored -   java.lang.NullPointerException
 at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
  (HttpConnectionHandler.java:191)
 at

org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at

org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)
 
 Of the 20k requests made, I'll get about 60 errors
 on
 the first run, which might be
 exceptable but on subsequest runs They's incread up
 to
 about 150. By the third or
 fourth run, some or all of my client machines will
 hang while waiting for responses.
 This is not acceptable. I'm about to start diggin
 into
 the tomcat source but would
 love it if someone has solved (or knows how to
 soleve)
 this problem already.
 
 anyone?
 
 - bill
 
 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail. 
 http://personal.mail.yahoo.com/
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/
http://personal.mail.yahoo.com/


Best regards, 
   Tagunov Anthony





Re: potential bug

2001-03-16 Thread Tagunov Anthony

On Fri, 16 Mar 2001 15:53:38 EST, [EMAIL PROTECTED] wrote:

Can anyone confirm a problem I have encountered withe Tomcat. Lets say that I 
write a servlet called Test.java and put it in the classes directory  in the 
Web-Inf directory, and I decide to change it a little later. So I recompile 
the servlet and produce a new class file. And have in mind the server is 
running this whole time. Well, the problem I have encountered is that when I 
put the new servlet class in the 'classes' directory, where all the classes 
live, the change doesn't take affect, and sometimes it does. If it doesn''t 
take affect I have to restart the server to see the new changes. Does anyone 
else have the same problem..
else have the same problem..

Configure the context in server.xml. set reloadable="true" where appropriate


Best regards, 
   Tagunov Anthony





Re: [OT] RE: Linux-Tomcat-ThreadPool NullpointerException

2001-03-16 Thread Tagunov Anthony

On Sat, 17 Mar 2001 00:05:43 +0300, Tagunov Anthony wrote:

Only don't run in Hotspot mode. Run it in -classic mode.
Because due to some bug in hotspot compiler the JVM
crashes with tomcat. It's a recognized Sun's bug and
funny enough, all the bug reports on that are about
Tomcat -- a rich collection from 3.0 to 3.2b.xy!

(sorry, i've lost the bug id somhow .. :-(  )

Catching my own e-mail: fogot to mention that this
is Linux only problem, and i persnally have it on
RH 6.2

Best regards, 
   Tagunov Anthony





Re: Cache problem with IE

2001-03-14 Thread Tagunov Anthony

On Tue, 13 Mar 2001 17:13:14 +0100, Zsolt Koppany wrote:

Hi,

with the code below I can get netscape not to cache a jsp page but it
does not work with Internet-Explorer.
Does anybody know why?


response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");\


Hitting the same problem we used at
http://www.mavicanet.com
and it works both on NS and IE!

response.setHeader("Pragma","no-cache");
response.setHeader("Cache-Control","no-cache");
response.setHeader("Expires","Thu, 01 Dec 1994 16:00:00 GMT");



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Re[2]: Off topic: Single login for separate web applications?

2001-03-14 Thread Tagunov Anthony

I heared somewhere that there's a plan to have the following
manner of scalability and load-balancing with servlets:

we have a load balancer that directs request to one of the n
servlet-engine-running boxes.

Sessions are stored permanantly in a DBMS accessible from
all these boxes.

So, the following questions arise:
1) will this solve the problem of single login for different web-apps
2) how is such solution from us, users?

On Tue, 13 Mar 2001 18:21:09 +0100, [EMAIL PROTECTED] wrote:



Thanks, I will check it out.

Wilko





Roby Gamboa
13-03-2001 17:52

Please respond to [EMAIL PROTECTED]

Sent by:  rgamboa


To:   [EMAIL PROTECTED]
cc:(bcc: Wilko Hische/HADV/NL)
Subject:  Re: Off topic: Single login for separate web applications?



I'm using JAAS to handle authentication. One of the things that you're able to
do is use pluggable authentication under Windows and Solaris (using the Sun
implementations) and Linux (with the IBM implementation), or authenticate
against a database (which is what I'm doing). The end result of the
authentication process is a Subject having one or more Principals and public or
private credentials (which can be any Java object).

You can add either the Subject itself (with all of its attached state, in a
secure environment), or just its public credentials (as a token or key in a
non-secure environment) to the session object in JSPs and servlets to indicate
an authenticated user.

You might want to check this out: http://java.sun.com/products/jaas.

Hope this helps.
- Roby

[EMAIL PROTECTED] wrote:

 Yes, but than then client would have to identify itself at the second webapp
 without being challenged for another login. The only way to accomplish this
 would be a session based cookie I guess, in addition to this centrally stored
 information. I was hoping for some standard approach/protocol  that I was not
 aware of. But maybe it just isn't there (yet).

 Thanks,

 Wilko

 "Sam Newman" [EMAIL PROTECTED] on 13-03-2001 15:15:44

 Please respond to [EMAIL PROTECTED]

 To:   [EMAIL PROTECTED]
 cc:(bcc: Wilko Hische/HADV/NL)
 Subject:  Re: Off topic: Single login for separate web applications?

 Having a central repository of logins/passwords would work from one end =
 e.g. when connecting to one of your servers, that server communicates with
 the central repository to veriy the login/password. However, when going to
 another webapp that webapp needs to know you've been authorised. perhaps
 once authorised, you could store information about the client at the central
 respository. When a webapp gets a connection from that client, it looks ion
 the central repository to see if that client has been authorised. Not sure
 on what info would work though

 sam
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, March 13, 2001 12:38 PM
 Subject: Off topic: Single login for separate web applications?

 
 
  Hi,
 
  Sorry for posting this off topic question. I would really appreciate any
  pointers into the right direction.
 
  What I would like to know is what you would need in general to create a
 single
  login to different web applications on different web servers (and possibly
  platforms)? I gues the servers would need some shared repository for
  login/passwords, but how would it be possible after logging in to one
 server to
  pass on this fact to the other servers?
 
  I hope the answer is as simple as the question,
 
  Wilko Hische

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: setContentType / File download

2001-03-14 Thread Tagunov Anthony

On Wed, 14 Mar 2001 09:07:57 +0100, Gerd Trautner wrote:

Hi tomcat-user,

i have some troubles using the setContentType method.
I want to generate a CSV file of my database data and send it to the
browser. the browser should then say "save file as filenam.csv" ...

what i do is:

response.setContentType("application/msexcel;name=\"TUInventory.csv\"\nContent-Disposition:
 attachment;filename=TUInventory.csv;");

this works for netscape browsers, but ie wants to save index.html.


On the cocoon-users there's been a discussion about the following code

response.setHeader("Content-Disposition", "inline;filename=kluge.txt");

they said it was an "unofficial" IE header for the same purpose. haven't tested it 
myself,
but looks like we now have two complementry solutions, for
IE and NS :-)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: problems whilst loading servlets for the first time

2001-03-14 Thread Tagunov Anthony

On Wed, 14 Mar 2001 14:24:26 -0600, Randy Paries wrote:

I have seen that when I don't stop and start apache in the correct order.

after I load new servlets class files,
I stop httpd
  stop tomcat
  start tomcat
  start httpd

By no means i'm an expert, but my soul is shouting:
you shouldn't restart apache!

On the other hand it is normal that tomcat
takes time to come up and if you have
apache running then stop tomcat,
start tomcat some time passes until
the Internal Server Error disappears on
Apache and you get your servlets running.
On our test box it takes several seconds.

Good luck, Tagunov Anthony

P.S. and again: no need to restart Apache, 
for all i know! Restarting Tomcat is more
then enough if you have troubles!

(I also restart it often :-(  )

-Original Message-
From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 1:20 PM
To: [EMAIL PROTECTED]
Subject: problems whilst loading servlets for the first time


Hello,

   I'm running tomcat 3.2.1 on a rh 6.2 box, with apache 1.3.x.
   Servlets run without a single problem EXCEPT on the first couple of times
they are run, and I get an internal server error (from apache).

   After a couple of reloads, everything is fine until the next tomcat
restart.
   Does anyone have a hint to toss at me for such a weird behaviour?

   Yours, rms

--
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: escaping text?? is it non-latin support question?

2001-03-11 Thread Tagunov Anthony

Ryan wrote:

I have made an update page where you place your news update in a textarea and then 
SUBMIT the textarea text to a jsp page via POST method.
 
However, I want HTML to be supported.

It is not very clear what you mean here, Ryan

I was wondering what would be the best way to do this. 
I could escape the text on submission through javascript 
but what about people using lynx?

what is the trouble?

as far as i understand, IE and NS when it is needed
escape chars by themselves.. i don't remember
if the posted input fields are %-ed, but anyway IE/NS work
in sync with Tomcat request.getParameter(), either both
%-it, or both don't. Donno what lynx does.

I also don't want to have to write my own escape function in java.

Well, there's already
static java.net.URLEncoder.encode(String s);

 - o -
Maybe this question is about NLS and in particular about
non-latin1 encodings support? Then this is a wired question.
 - o -
Does anybody know, has there been any progress with this in Servlet 2.3 spec?


Best regards, Tagunov Anthony



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: escaping text?? is it non-latin support question?

2001-03-11 Thread Tagunov Anthony

Ryan wrote:

I have made an update page where you place your news update in a textarea and then 
SUBMIT the textarea text to a jsp page via POST method.
 
However, I want HTML to be supported.

It is not very clear what you mean here, Ryan

I was wondering what would be the best way to do this. 
I could escape the text on submission through javascript 
but what about people using lynx?

what is the trouble?

as far as i understand, IE and NS when it is needed
escape chars by themselves.. i don't remember
if the posted input fields are %-ed, but anyway IE/NS work
in sync with Tomcat request.getParameter(), either both
%-it, or both don't. Donno what lynx does.

I also don't want to have to write my own escape function in java.

Well, there's already
static java.net.URLEncoder.encode(String s);

 - o -
Maybe this question is about NLS and in particular about
non-latin1 encodings support? Then this is a wired question.
 - o -
Does anybody know, has there been any progress with this in Servlet 2.3 spec?


Best regards, Tagunov Anthony



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: escaping text?? is it non-latin support question?

2001-03-11 Thread Tagunov Anthony

Ryan wrote:

I have made an update page where you place your news update in a textarea and then 
SUBMIT the textarea text to a jsp page via POST method.
 
However, I want HTML to be supported.

It is not very clear what you mean here, Ryan

I was wondering what would be the best way to do this. 
I could escape the text on submission through javascript 
but what about people using lynx?

what is the trouble?

as far as i understand, IE and NS when it is needed
escape chars by themselves.. i don't remember
if the posted input fields are %-ed, but anyway IE/NS work
in sync with Tomcat request.getParameter(), either both
%-it, or both don't. Donno what lynx does.

I also don't want to have to write my own escape function in java.

Well, there's already
static java.net.URLEncoder.encode(String s);

 - o -
Maybe this question is about NLS and in particular about
non-latin1 encodings support? Then this is a wired question.
 - o -
Does anybody know, has there been any progress with this in Servlet 2.3 spec?


Best regards, Tagunov Anthony



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Webapp in another location

2001-03-11 Thread Tagunov Anthony

On Sun, 11 Mar 2001 19:57:02 +0100, Sven Rixen wrote:

Hello

I have to develop a web application for my thesis at university.
Therefore I want to place all files of that application (classes, jsp,
etc.) in a seperate directory which is also on another drive.
I am using win2000. The tomcat examples work fine and my own servlets do
the same, as long as I place them in the examples folder.

I now want something like http://127.0.0.1/pavis/servlets/HelloWorldTest

Apache and Tomcat are on a drive G: while I want all my thesis stuff
(including the application) to be on drive K:

Looks like all you have to do is put 
Context path="---whatever you want--" 
 docBase="K:\the\dir\you\want" 
 ...
/Context
Haven't tried it much on not-Linux, but guess that should work.

P.S. You'll have regular web-app structure there, WEB-INF and its contents and all the 
stuff




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Is Tomcat 3.3m2 available already?

2001-03-11 Thread Tagunov Anthony

Hello, evrybody!

Sorry for disturbance..
Still has 3.3m2 been released?
Is available as a tarball already?
Or only from cvs?

Thanx in advance, Tagunov Anthony



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: plain text login

2001-03-07 Thread Tagunov Anthony

On Wed, 07 Mar 2001 00:54:34 -0800, Rob Tanner wrote:

If the issue is pages after verify.jsp, you can 
either create a session or simply create a cookie.  Choosing between 
the two mechanisms should be pretty straight forward.  If you're doing 
session kinds of things like an e-commerce shopping cart, for example, 
then create a session.  But if each successive page, each get and post, 
etc, is really independent of all the others, such as authenticating 
prior to viewing a document archive, than a simple cookie will do. 

Hmm.. And what do I check this cookie coming from the browser against?
I mean i can't just check to see if ANY coocie is ther, i need to check
for a particular value their.. I'm pretty intrested in this not-using sessions
approach, but I can not understand it.. Please, Rob, could you tell more
on this?

Best regards, Tagunov Anthony





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Shutdown problem red-hat 6.2

2001-03-07 Thread Tagunov Anthony

Hello!
On Wed, 07 Mar 2001 16:38:40 +0100, Peter Hrastnik wrote:
We are running tomcat 3.2 and IBMJava2 SDK 1.3 on an Intel Red Hat 6.2
machine with Apache 1.3.12 and mod_jserv.

When shutdown.sh is called, it is very rare that the contexts are
removed and java processes are still running for some minutes. 

Well, this problem is very familiar for me too. It look like Tomcat bugs:

http://znutar.cortexity.com/BugRatViewer/ShowBug/47
http://znutar.cortexity.com/BugRatViewer/ShowReport/313 (actually a repetition of the 
previous bugreport)

The problem arises when we have more then one 1 or 2 contexts mounted.

Would like to know: does it happen only on Linux? Does it happen on NT?

And all we - users - can do is await the developer to fix this problem.

Sometimes
they don't disappear at all and have to be removed manually with kill.

Yes, that's what i do too  :-(

If you try to startup, it won't work because these processes are still
running.Sometimes startup does not work even though no tomcat-java processes
exist. Tomcat receives the request (there is no Internal Server Error as
it occures when tomcat is not running) but does not deliver anything.

Does anybody have an idea how to solve this problems?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: a brain dump on i18n, tomcat, xerces, oracle, etc.....

2001-03-05 Thread Tagunov Anthony

On Mon, 5 Mar 2001 11:05:44 +0200, Amir Nuri wrote:

But when I get the text from an html form to my servlet, and put it into a
string (by getParameter) I get text in UTF-8 (3 bytes for character),

Maybe the problem is here: usually i have to do the following:

new String (request.getParameter("aaa").getBytes("8859_1"),"UTF-8")

does it help?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: a brain dump on i18n, tomcat, xerces, oracle, etc.....

2001-03-04 Thread Tagunov Anthony

On Sun, 4 Mar 2001 14:53:58 -0500, Michael Mealling wrote:

This is where things got tricky. The APIs in Xerces make you think
that you'll get a properly converted string out but you don't. 
Node.getNodeValue() gives you a String that contains bytes that are
still UTF-8 encoded! You have to do this to get 'em into a real Java
String:

   String newCN = new String(query.getCommonName().getBytes(), "UTF-8");

Well, it's clear that the the data is encoded incorrectly if you have to do this.
How do you get the data fed into Xerces? (I understand that you've got a
DOM tree.)

If it comes from reading a file then make sure there's a 
?xml version="1.0" encoding="whatever"?
at the top of your doc. There may be other ways
to feed Xerces correctly.

(This is not an error of Xerces. It gives nice qute Java strings when asked.
If it gives mess then it was fed incorrectly.

Best regards, Tagunov Anthony



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]