File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes how to extract user browser header? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to extract user browser header?" Watch "how to extract user browser header?" New topic
Author

how to extract user browser header?

sachin yadav
Ranch Hand

Joined: Nov 24, 2005
Posts: 156
hi all,

i am building an application where i have to extract the information from a digital certificated installed in user browser. i am using ---

------------------code----------------------

String User_name= request.getHeader("orcladmin");

----------------------------------------------

here orcladmin is the common name of certificate. but my User_Name is returned as null. can sombody help me to rectify the problem.

regards,

Sachin.

Manuel Palacio
Ranch Hand

Joined: Oct 16, 2000
Posts: 45
Check [ UD: removed link to copyrighted material ]
[ August 03, 2007: Message edited by: Ulf Dittmer ]

<a href="http://www.newinstance.net" target="_blank" rel="nofollow">http://www.newinstance.net</a>
sachin yadav
Ranch Hand

Joined: Nov 24, 2005
Posts: 156
thanx for your reply, but i have alredy tried this and it does't work. i am working on Oracle 10 AS and i have to make user logged it on the basis of his DN presented in his digital certificate.

the link you have suggested also says that this can only be implemented on Java server. it's not working on my oracle server. can you suggest any other solution ?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
If this was my problem I think I would use TCPMON or similar utility to see what was actually being transmitted in the request. Perhaps there is a simple difference in spelling that would become apparent.
Bill
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by William Brogden:
If this was my problem I think I would use TCPMON or similar utility to see what was actually being transmitted in the request. Perhaps there is a simple difference in spelling that would become apparent.
Bill


The LiveHTTPHeaders plugin for Firefox also makes it very easy to see watch the headers being passed back and forth, in real time.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to extract user browser header?
 
Similar Threads
SecondaryTable Mapping
using JSP variable in java script
how to prevent multiple users overriding each other operations
sharing data among applications in the same server
Jasper Exception