KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > pim > presentation > RedirectPresentation


1 /*
2  * enhydrapim
3  *
4  * This type of presentation object could be the target of a form's
5  * submit button, process the data, and then decide where to send
6  * the user (back or on to the next page).
7  *
8  */

9
10 package org.enhydra.pim.presentation;
11
12 import com.lutris.appserver.server.httpPresentation.*;
13
14
15 public class RedirectPresentation implements HttpPresentation {
16
17    /*
18     * There is the only function needed in order to be a presentation object.
19     */

20     public void run(HttpPresentationComms comms) throws Exception JavaDoc {
21         throw new ClientPageRedirectException(
22                 comms.request.getAppFileURIPath("Index.po"));
23     }
24
25 }
26
Popular Tags