Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: describe the existence and use of the attached HelloWorld.war file, for the really impatient...

...

  1. Create a new directory to hold all the application related files. In the rest of this section, this directory is referred to as <app_home>.
  2. In the <app_home> directory, create a plain text file named HelloWorld.jsp, and then copy the following code to this file.

Note: To save time, you can download HelloWorld.war file from this page.

Code Block
html
html
borderStylesolid
titleHelloWorld.jsp
<html>
   <head>
      <jsp:useBean id="datetime" class="java.util.Date"/>
         <title>
             Basic HelloWorld JSP
         </title>
   </head>
   <body bgcolor="#1276C2">
      <h1>
         <font face="tahoma" color="white">
               Hello world from GERONIMO!
         </font>
      </h1>
      <font face="tahoma" color="white">on ${datetime}</font>
   </body>
</html>

...

No Format
borderStylesolid
deploy --user system --password manager deploy --inPlace <app_home>

Note: As a quick alternative, the three files in this Hello World sample have been packaged into HelloWorld.war and attached to this page. To deploy it:

  1. Download HelloWorld.war to <war_home> on your system.
  2. Deploy it via:
No Format
borderStylesolid

deploy --user system --password manager deploy <war_home>/HelloWorld.war

When the application is successfully deployed, you can see the following message:

...