• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MAC Address

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all..
If any body know how to get the mac address(physicall address) of a client system using JSP,Please let me know..

binypanackal@gmail.com
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pure Java (and thus JSP) can't do this. Either you need to use JNI to access system calls, or use Runtime.exec to run some utility that can do this.

But JSPs run on a server, where the MAC address is always the same - how about looking it up once manually, and storing it somewhere in the web app?
 
biny panackal
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks alot for your replay.

Now i decided to youse ".hta" and "jscript" for getting mac id.
One problem existing now is eache time when i access the .hta page am getting one popup asking; do you want to run or save this file.Is there any possiblity to avoid this pop up and run that file directly in the client machine..

Regards,
Biny panackal binypanackal@gmail.com
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm certain that you can't avoid this popup, since running code that accesses the system at such a deep level should not be run without the user explicitly consenting to it.

Since this is a client-side issue, I'm moving the topic to the HTML and JavaScript forum.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic