tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhishek Srivastava" <absri...@cisco.com>
Subject RE: Retrieving username and password from url??
Date Mon, 02 Dec 2002 08:52:49 GMT
I think my question was a little unclear, I mean I'm accessing a servlet
from the web using this URL, and on tomcat side, is there a method exposed
by Httpservlet or any alternative which returns me the username and password
send by the browser like we have the "getParameters()" to get the parameters
from the url.

regards,
Abhishek

-----Original Message-----
From: Peng Tuck Kwok [mailto:pengtuck@makmal.net]
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 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

Abhishek Srivastava wrote:
> 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:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message