You can use servlets as opposed to JSP as they sit on the server as compiled Java Classes, but as with what nvoigt said about MIDL - it can easily be decompiled