hello.jsp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <%@ page contentType="text/html;charset=EUC-KR" %>
  2. <%@ page import = "java.rmi.*,
  3. javax.naming.*,
  4. javax.rmi.*,
  5. java.net.*,
  6. javax.ejb.*,
  7. java.util.*,
  8. hello.*"
  9. %>
  10. <%
  11. ResourceBundle res = ResourceBundle.getBundle("WebRes", Locale.getDefault());
  12. %>
  13. <head>
  14. <title>Hello World!</title>
  15. </head>
  16. <body bgcolor="#DCDCDC" TEXT="#000000" LINK="#0000EE" VLINK="#551A8B" ALINK="#FF0000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  17. <br><br><div align="center"><img src="./images/Splash.gif"></div>
  18. <h2 align="center">
  19. <br>JEUS 5 Web Application Server is successfully Installed on this server!</h2>
  20. <h2 align="center">
  21. <br>
  22. <%
  23. try{
  24. InitialContext initial = new InitialContext();
  25. Object objref = initial.lookup("HelloApp");
  26. hello.HelloHome home = (hello.HelloHome)PortableRemoteObject.narrow(objref, hello.HelloHome.class);
  27. hello.Hello hello = home.create();
  28. out.println(hello.sayHello());
  29. } catch(Exception e) {
  30. out.println("Error caught : " + e.getMessage());
  31. e.printStackTrace();
  32. }
  33. %>
  34. </h2></p>
  35. </body>
  36. </html>