Click
Click Examples

Source Viewer : /general/navigation-a.htm

You are currently on page <span>NavigationA</span>.
<p>

<h4>Forward</h4>

To forward to <b>NavigationB</b> click <a href="$forwardLink.href">here</a>.

<pre class="javaCode">
    setForward(<span class='st'>"/navigation-b.htm"</span>);
</pre>

To forward to <b>NavigationB</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-b.htm"</span>);
</pre>

<h4 style="margin-top:2em;">Redirect</h4>

To redirect to <b>NavigationB</b> click <a href="$redirectLink.href">here</a>.

<pre class="javaCode">
    setRedirect(<span class='st'>"/navigation-b.htm"</span>);
</pre>

To redirect to <b>NavigationB</b> passing the parameter $redirectParamLink.value click
<a href="$redirectParamLink.href">here</a>.

<pre class="javaCode">
    setRedirect(<span class='st'>"/navigation-b.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.