Guest User

Untitled

a guest
May 26th, 2010
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.19 KB | None | 0 0
  1. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  2. <%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
  3.  
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  5. <html>
  6.   <head><title>My First Stripe</title></head>
  7.   <body>
  8.     <h1>Stripes Calculator</h1>
  9.  
  10.     Hi, I'm the Stripes Calculator. I can only do addition. Maybe, some day, a nice programmer
  11.     will come along and teach me how to do other things?
  12.  
  13.     <stripes:form action="/example/Calculator.action" focus="">
  14.         <table>
  15.             <tr>
  16.                 <td>Number 1:</td>
  17.                 <td><stripes:text name="numberOne"/></td>
  18.             </tr>
  19.             <tr>
  20.                 <td>Number 2:</td>
  21.                 <td><stripes:text name="numberTwo"/></td>
  22.             </tr>
  23.             <tr>
  24.                 <td colspan="2">
  25.                     <stripes:submit name="addition" value="Add"/>                    
  26.                 </td>
  27.             </tr>
  28.             <tr>
  29.                 <td>Result:</td>
  30.                 <td>${actionBean.result}</td>
  31.             </tr>
  32.         </table>
  33.     </stripes:form>
  34.   </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment