Java-код
Process proc = Runtime.getRuntime().exec("myshell.sh");
myshell.sh
#!/bin/bash
cd ejbca/bin
./ejbca.sh batch &
Внутри вашего example.jsp
<form method="get">
<input type="submit" name="example" value="Push Me" alt="example button">
<%
if ("Push Me".equals(request.getParameter("example"))) {
Process proc = Runtime.getRuntime().exec("myshell.sh");
}
%>
</form>