Execute linux command in java and display output to html table
问题 I have jsp code df -h for display disk information on the website. How can I show the output to html with table? Below the code: String[] disk; String line; String process; Process p; BufferedReader input; p = Runtime.getRuntime().exec("df -h"); input = new BufferedReader(new InputStreamReader(p.getInputStream())); input.readLine(); disk = input.readLine().split("\\s+"); <% <tr bgcolor="#f0f0f0"> <td colspan="2"> <b>Disk</b> </td> <td align="center"> <b>Size<b> </td> <td align="center"> <b