The moose likes JSP and the fly likes Use JSP to read Windows Registry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Use JSP to read Windows Registry" Watch "Use JSP to read Windows Registry" New topic

Use JSP to read Windows Registry

Deepesh Mishra

Joined: May 14, 2012
Posts: 3
Hi All,

I am designing a web application which needs interaction with some I/O devices.
For this I wish to check from my JSP page whether a specific device driver is installed on client machine or not.
If any specific driver is not installed, page will prompt a message regarding missing driver and and will provide a link to download that specific driver.

To achieve above goal, I am trying to read client's windows registry using JSP but unable to do so.
If any other mechanism is there, please let me know.

Also suggest, how to do this for various OS platforms(windows/linux).

Kathleen Angeles
Ranch Hand

Joined: Aug 06, 2012
Posts: 123

Currently, how are you doing it?

JSP will be running java codes in the server, and arrive as an html in the client pc.

You can start by using an applet. Take note that your applet must be given sufficient access to do stuff like accessing the client harddisk.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
A web app generally has no access to a client machine's registry (which, BTW, is a Windows concept, so asking how to do this on Linux doesn't make sense).

If restricting the web app to IE is acceptable, then you can probably find some ActiveX control that accomplishes this.

Alternatively, a signed applet could use JNI to accomplish the same.
I agree. Here's the link:
subject: Use JSP to read Windows Registry
It's not a secret anymore!