Source Viewer : /general/navigation-b.htm
You are currently on page <span>NavigationB</span>.
<p>
<h4>Forward</h4>
To forward to <b>NavigationA</b> click <a href="$forwardLink.href">here</a>.
<pre class="javaCode">
setForward(<span class='st'>"/navigation-a.htm"</span>);
</pre>
To forward to <b>NavigationA</b> passing the parameter $forwardParamLink.value click
<a href="$forwardParamLink.getHref()">here</a>.
<pre class="javaCode">
getContext().getRequest().setAttribute(<span class='st'>"param"</span>, param);
setForward(<span class='st'>"/navigation-a.htm"</span>);
</pre>
<h4 style="margin-top:2em;">Redirect</h4>
To redirect to <b>NavigationA</b> click <a href="$redirectLink.href">here</a>.
<pre class="javaCode">
setRedirect(<span class='st'>"/navigation-a.htm"</span>);
</pre>
To redirect to <b>NavigationA</b> passing the parameter $redirectParamLink.value click
<a href="$redirectParamLink.href">here</a>.
<pre class="javaCode">
setRedirect(<span class='st'>"/navigation-a.htm?param="</span> + param);
</pre>
<p style="margin-top:2em;">
Take notice of the different URLs in your browser when you use forward and redirect.
</p>
Please also see the <a href="../pageflow/start-page.htm">Page Flow</a> example.