File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat login Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat login" Watch "Tomcat login" New topic

Tomcat login

John Williamer

Joined: Mar 27, 2002
Posts: 23
How would i go about login in to a restricted web page using jdbc realms through a servlet. I've got jdbc realms working fine but I'm looking to get the authentication from a servlet and passing it to tomcat. For example http://username assword@localhost:8080/restricted.html
This would work in the servlet with a redirect but the password is clear to see. Any help would be great.
Justin Chu
Ranch Hand

Joined: Apr 19, 2002
Posts: 209
Use SSL. Since practically anything that is not encrypted are viewable by any in route servers.
I agree. Here's the link:
subject: Tomcat login
jQuery in Action, 3rd edition