%@ page contentType="text/html;charset=EUC-KR" %>
<%@ page import = "java.rmi.*,
javax.naming.*,
javax.rmi.*,
java.net.*,
javax.ejb.*,
java.util.*,
hello.*"
%>
<%
ResourceBundle res = ResourceBundle.getBundle("WebRes", Locale.getDefault());
%>
Hello World!
JEUS 5 Web Application Server is successfully Installed on this server!
<%
try{
InitialContext initial = new InitialContext();
Object objref = initial.lookup("HelloApp");
hello.HelloHome home = (hello.HelloHome)PortableRemoteObject.narrow(objref, hello.HelloHome.class);
hello.Hello hello = home.create();
out.println(hello.sayHello());
} catch(Exception e) {
out.println("Error caught : " + e.getMessage());
e.printStackTrace();
}
%>