I am newbee to the JSP, Please help for solving this problem

I want to display linux command output though JSP in tomcat.

Linux Command: #fdisk -l | grep -iE 'mb|gb|tb'
How do this command's out put taken out through jsp page though tomcat.

Any suggestions, Please help me.

In php it very simple as
<php? echo ( system(fdisk -l | grep -iE 'mb|gb|tb'));

But JSP?