geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jb...@apache.org
Subject svn commit: r655672 - /geronimo/samples/branches/2.1/samples/calculator-stateless-pojo/calculator-stateless-war/src/main/webapp/sample-docu.jsp
Date Mon, 12 May 2008 22:24:05 GMT
Author: jbohn
Date: Mon May 12 15:24:04 2008
New Revision: 655672

URL: http://svn.apache.org/viewvc?rev=655672&view=rev
Log:
GERONIMO-4009 fix HTML errors and warnings from calculator-stateless-pojo - patch by Ted Kirby

Modified:
    geronimo/samples/branches/2.1/samples/calculator-stateless-pojo/calculator-stateless-war/src/main/webapp/sample-docu.jsp

Modified: geronimo/samples/branches/2.1/samples/calculator-stateless-pojo/calculator-stateless-war/src/main/webapp/sample-docu.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/calculator-stateless-pojo/calculator-stateless-war/src/main/webapp/sample-docu.jsp?rev=655672&r1=655671&r2=655672&view=diff
==============================================================================
--- geronimo/samples/branches/2.1/samples/calculator-stateless-pojo/calculator-stateless-war/src/main/webapp/sample-docu.jsp
(original)
+++ geronimo/samples/branches/2.1/samples/calculator-stateless-pojo/calculator-stateless-war/src/main/webapp/sample-docu.jsp
Mon May 12 15:24:04 2008
@@ -19,18 +19,17 @@
 <html>
 <head>
   <title>A Stateless Session Sample - Calculator</title>
-  <meta content="text/html; CHARSET=iso-8859-1" http-equiv="Content-Type">
+  <meta content="text/html; CHARSET=iso-8859-1" http-equiv="Content-Type" />
   <style type="text/css">
   .header  { background-color:aqua; text-align:center }
   .cell    { text-align:center } 
   </style>
 </head>
 
-<BODY>
+<body>
   <font face="Verdana, Helvetica, Arial">
-<FORM ACTION="calculator" method="get">
-  <h2>A Stateless Session Sample</H2>
-  <H3>Calculator</h2>
+  <h2>A Stateless Session Sample</h2>
+  <h3>Calculator</h3>
   <font style="font-size:12px">
   <p>
   This sample shows an EJB 3.0 Stateless session bean.
@@ -42,7 +41,8 @@
   %>
 
   </p>
-  <table cols="4" border="3" id="mainTable" cellpadding="0">
+  <form action="calculator" method="get">
+  <table border="3" id="mainTable" cellpadding="0">
     <thead id="mainTableHead">
     <tr>
       <td class="header">First Number</td>
@@ -53,56 +53,56 @@
     </thead>
     <tr>
       <td class="cell">
-        <INPUT TYPE="text" name="firstNumber" value="0">
+        <input type="text" name="firstNumber" value="0" />
       </td>
       <td class="cell">
-        <INPUT TYPE="text" name="secondNumber" value="0">
+        <input type="text" name="secondNumber" value="0" />
       </td>
       <td class="cell">
-        <INPUT TYPE="submit" name="operation" value="add">
-        <BR>
-        <INPUT TYPE="submit" name="operation" value="multiply">
+        <input type="submit" name="operation" value="add" />
+        <br />
+        <input type="submit" name="operation" value="multiply" />
       </td>
       <td class="cell"><%=result%></td>
     </tr>
   </table>
-</FORM>
-  <P>
+</form>
+  <p>
   This sample demonstrates the following new features from EJB 3.0
-  <OL>
-    <LI>Elimination of the requirement for EJB component interfaces for session beans.
The required
+  <ol>
+    <li>Elimination of the requirement for EJB component interfaces for session beans.
The required
 business interface for a session bean can be a plain Java interface rather than an EJBObject,
 EJBLocalObject, or java.rmi.Remote interface.
-    <LI>Elimination of the requirement for home interfaces for session beans.
-    <LI>Encapsulation of environmental dependencies and JNDI access through the use
of annotations,
+    <li>Elimination of the requirement for home interfaces for session beans.
+    <li>Encapsulation of environmental dependencies and JNDI access through the use
of annotations,
 dependency injection mechanisms, and simple lookup mechanisms.
-    <LI>Introduction of Java metadata annotations to be used as an alternative to deployment
descriptors.
-  </OL>
-  <P>
-  </FONT>
-  <H3>A POJO as a business interface</H3>
+    <li>Introduction of Java metadata annotations to be used as an alternative to deployment
descriptors.
+  </ol>
+  <p>
+  </font>
+  <h3>A POJO as a business interface</h3>
   <font style="font-size:12px">
-  Notice that the stateless session bean <A HREF="./xref/org/apache/geronimo/samples/slsb/calculator/Calculator.html"
target="source_window"><CODE>Calculator.java</CODE></A> implements
+  Notice that the stateless session bean <a href="./xref/org/apache/geronimo/samples/slsb/calculator/Calculator.html"
target="source_window"><code>Calculator.java</code></a> implements
   just a simple java interface and not an EJB component interface like EJBObject, EJBLocalObject
or java.rmi.Remote.
-  </FONT>
+  </font>
   
-  <H3>Dependency Injection</H3>
+  <h3>Dependency Injection</h3>
   <font style="font-size:12px">
-  Notice that the servlet <A HREF="./xref/org/apache/geronimo/samples/calculator/CalculatorServlet.html"
target="source_window"><CODE>CalculatorServlet.java</CODE></A> 
+  Notice that the servlet <a href="./xref/org/apache/geronimo/samples/calculator/CalculatorServlet.html"
target="source_window"><code>CalculatorServlet.java</code></a> 
   declares an instance variable with an @EJB annotation. The variable is that of a session
bean and it's type is the same as that of it's business interface. 
   In earlier versions, the servlet would have done a JNDI lookup of the bean's home interface
in the component's environment. 
   It then would have had to create the instance using the create method of the home interface.

   However in Java EE 5.0, the servlet can just declare its dependency on the bean by just
annotating the instance variable with the @EJB annotation. 
   When the servlet instance is created during runtime, the container automatically initializes
these annotated variables with an instance of an object that implements the business interface.
   This initialization occurs before any business methods are invoked on the bean instance
and after the time the bean’s EJBContext is set.
-  </FONT>
+  </font>
   
-  <H3>No deployment descriptor</H3>
+  <h3>No deployment descriptor</h3>
   <font style="font-size:12px">
-  Notice the absence of the traditional deployment descriptor, <CODE>ejb-jar.xml</CODE>.
The bean declarations that used to be done there are now done by the
+  Notice the absence of the traditional deployment descriptor, <code>ejb-jar.xml</code>.
The bean declarations that used to be done there are now done by the
   annotations in the code.
-  </FONT>
-
-  </FONT>
+  </font>
+  
+  </font>
 </body>
 </html>



Mime
View raw message