Hi,
Is there a way that I can retrieve the username and password from the url
given as below using a servlet.
https://username:password@hostname/servletname/servlet
Regards,
Abhishek
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL
You could use a regular expression to get the items you want or Tokenize
the string until you get what you want.
There are several regular expression packages that you can use, which is
available under the jakarta project or if you are so inclined you can
use the one that comes with jdk1.4
the parameters
from the url.
regards,
Abhishek
-Original Message-
From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 2:15 PM
To: Tomcat Users List
Subject: Re: Retrieving username and password from url??
You could use a regular expression to get the items you want
somehow
Hope it helps
-reynir
-Original Message-
From: Abhishek Srivastava [mailto:[EMAIL PROTECTED]]
Sent: 2. desember 2002 08:30
To: [EMAIL PROTECTED]
Cc: Sunu Joseph
Subject: Retrieving username and password from url??
Hi,
Is there a way that I can retrieve the username
-Original Message-
From: Abhishek Srivastava [mailto:[EMAIL PROTECTED]]
Sent: 2. desember 2002 08:30
To: [EMAIL PROTECTED]
Cc: Sunu Joseph
Subject: Retrieving username and password from url??
Hi,
Is there a way that I can retrieve the username and password
from the url given
to authenticate every request, I think it
has to do with cookie settings and more.
Hope it helps
-reynir
-Original Message-
From: Andreas Probst [mailto:[EMAIL PROTECTED]]
Sent: 2. desember 2002 14:09
To: Tomcat Users List
Subject: RE: Retrieving username and password from url??
Hi