<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- We need a doctype to allow us to use special characters like &nbsp;
We use a "strict" DTD to make IE follow the alignment rules. -->
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd">
<body class="container">
<h3>Passing Data Between Pages: by Persist</h3>
<div class="eg">
<p>You asked for ${name}.</p>
<t:eventlink event="return">Return</t:eventlink>
</div>
This page used <code>@Persist</code> to save its data through the redirection.<br/>
<code>@Persist</code> is usually the most appropriate way to pass <strong>whole objects, lengthy data, or data you don't
want to be visible in a URL</strong>.<br/><br/>
In this example we have used the FLASH strategy which stores the field in your session only temporarily - until it is displayed.<br/><br/>
For more information see the Storing Data in a Page example.<br/><br/>
<t:eventlink event="gohome">Home</t:eventlink><br/><br/>
<t:tabgroup>
<t:sourcecodetab src="/web/src/main/java/jumpstart/web/pages/examples/state/PassingByPersist.tml"/>
<t:sourcecodetab src="/web/src/main/java/jumpstart/web/pages/examples/state/PassingByPersist.java"/>
<t:sourcecodetab src="/web/src/main/resources/META-INF/assets/css/examples/olive.css"/>
</t:tabgroup>
</body>
</html>