Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Vazzdoin Rocko
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • 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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Tim Moores
Bartender
Posts: 2951
46
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic