alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Struts example source code file (example1.jsp)

This example Struts source code file (example1.jsp) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Struts tags/keywords

amount, amount, example, example, examples, this, transfer, transfer, we, we

The Struts example1.jsp source code

<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
    <head>Token Examples

<body>
    <h1>Token Example 1

    <b>Example 1: This example illustrates a situation where you can transfer money from
    one account to another. We use the token to prevent double posts so the transfer only
    happens once.
    <p/>

    <br/>Balance of source account: 
    <br/>Balance of destination account: 
    <p/>

    <s:form action="transfer">
        <s:token/>
        <s:textfield label="Amount" name="amount" required="true" value="100"/>
        <s:submit value="Transfer money"/>
    </s:form>

</body>
</html>

Other Struts examples (source code examples)

Here is a short list of links related to this Struts example1.jsp source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.