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

Struts example source code file (transferDone.jsp)

This example Struts source code file (transferDone.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

click, click, examples, examples, for, struts, the, the, this, this, try

The Struts transferDone.jsp source code

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

<body>
    <h1>Token Examples

    The transfer is done at <s:text name="token.transfer.time">

    <br/>New balance of source account: 
    <br/>New balance of destination account: 

    <p/>
    Try using the browser back button and submit the form again. This should result in a double post
    that Struts should intercept and handle accordingly.
    <p/>
    For example 3 (session token) you should notice that the date/time stays the same. This interceptor
    catches that this is a double post but doens't display the double post page, but just renders the
    web page result from the first post. 

    <p/>
    Click here to <s:url var="back" value="/token"/>return.

</body>
</html>

Other Struts examples (source code examples)

Here is a short list of links related to this Struts transferDone.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.