• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

How to I get login params of web server login (htaccess)?

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

I�m using Apache Web Server 1.3 and Tomcat Servlet Server 4.x (Connection established).
Some directories on my web server are protected (htaccess). After the successful login the user will be redirected to my webapp.

How do I get the login parameters (login, password) of a user from the web server. I imagine that Apache passes the parameters to the servlet server in some way.

I might get these params like that way ...
request.getParameter(?);

Would be great if someone can help me!

Regards,
Robert.
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
check out the javadocs for HttpServletRequest.
There is a getRemoteUser method that will do what you need.
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html
(or similar for your jdk)
 
I'm THIS CLOSE to ruling the world! Right after reading this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic