Results 1 to 3 of 3
Thread: servlets
- 09-18-2009, 09:21 AM #1
Member
- Join Date
- Sep 2009
- Posts
- 10
- Rep Power
- 0
- 09-27-2009, 03:07 AM #2
the servlet API does not do this.
You could have a servlet doGet() method invoke a system command, that is to call the host's traceroute program and then capture the output of it and return the process output to the html response .
- 09-28-2009, 07:43 AM #3
Member
- Join Date
- Sep 2009
- Posts
- 10
- Rep Power
- 0
thank u... i tried,
Process proc = Runtime.getRuntime().exec("tracert address");
BufferedReader input=new BufferedReader(new InputStreamReader(proc.getInputStream()));
String output=null;
String tracert="";
while ((output = input.readLine())!= null)
{
tracert+=output;
out.println(output);
}
it is working............
Similar Threads
-
Servlets
By javahelp00 in forum New To JavaReplies: 1Last Post: 02-28-2009, 06:28 PM -
1 form 2 servlets
By sandor in forum Java ServletReplies: 2Last Post: 01-22-2008, 10:47 AM -
Deploying Servlets
By gapper in forum New To JavaReplies: 2Last Post: 01-17-2008, 12:43 PM -
servlets or jsp
By krishnapal in forum Advanced JavaReplies: 1Last Post: 12-13-2007, 02:31 PM -
Servlets
By nagaroopanandha in forum Advanced JavaReplies: 1Last Post: 08-07-2007, 02:09 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks