Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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

Win a copy of The Software Craftsman this week in the Agile forum!
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.
Have you tried LearnNowOnline?
subject: Tomcat login