File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes ping IP from JSP page and show result in client's command prompt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "ping IP from JSP page and show result in client Watch "ping IP from JSP page and show result in client New topic
Author

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

Vazzdoin Rocko
Ranch Hand

Joined: Feb 24, 2010
Posts: 40
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

Joined: Jan 10, 2002
Posts: 60041
    
  65

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Vazzdoin Rocko
Ranch Hand

Joined: Feb 24, 2010
Posts: 40
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ping IP from JSP page and show result in client's command prompt
 
Similar Threads
setTimeOut not working with JS alerts
How to connect JSP and MS-dos
How to create?
Client Server Chat Network Issue
java.sql.SQLException