This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
It's not a secret anymore!