Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ page contentType="text/html;charset=UTF-8" language="java" %>
- <%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html>
- <head><title>My First Stripe</title></head>
- <body>
- <h1>Stripes Calculator</h1>
- Hi, I'm the Stripes Calculator. I can only do addition. Maybe, some day, a nice programmer
- will come along and teach me how to do other things?
- <stripes:form action="/example/Calculator.action" focus="">
- <table>
- <tr>
- <td>Number 1:</td>
- <td><stripes:text name="numberOne"/></td>
- </tr>
- <tr>
- <td>Number 2:</td>
- <td><stripes:text name="numberTwo"/></td>
- </tr>
- <tr>
- <td colspan="2">
- <stripes:submit name="addition" value="Add"/>
- </td>
- </tr>
- <tr>
- <td>Result:</td>
- <td>${actionBean.result}</td>
- </tr>
- </table>
- </stripes:form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment