Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

ping IP from JSP page and show result in client's command prompt

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
I want to ping some IP from my webpage and want to display the ping result in command prompt on the client side. i.e. when a client would b accessing my jsp page from any location,the DOS prompt should pop up on his screen and should start pinging the given IP which would be provided as parameter from the previous JSP page.
 
Sheriff
Posts: 67618
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's not anything JSP is going to be able to help you with as JSP executes on the server, not the client. Perhaps a signed applet can do what you want?
 
Vazzdoin Rocko
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for the use of abbreviations. And yeah, i was also thinking that JSP's not gonna help. I must try with applets. Thanks for the reply.
 
Saloon Keeper
Posts: 7225
169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Note that the applet will need to be signed in order to execute DOS/Windows commands via Runtime.exec or ProcessBuilder (assuming that's how you intend to run the Ping). Also note that you need to check what OS is on the client, so that you don't try to run Unix commands on Windows and vice versa.
reply
    Bookmark Topic Watch Topic
  • New Topic