tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peng Tuck Kwok <pengt...@makmal.net>
Subject Re: Retrieving username and password from url??
Date Mon, 02 Dec 2002 08:44:44 GMT
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>


Mime
View raw message