KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > ejosa > piggybank > presentation > enhydra > Redirect


1 /**
2  * Title: OpenUSS - Open Source University Support System
3  * My Piggy Bank Example
4  * Description: Enhydra Presentation Object
5  * Copyright: Copyright (c) 2003 by B. Lofi Dewanto, T. Menzel
6  * Company: University of Muenster, HTWK Leipzig
7  * @author B. Lofi Dewanto, T. Menzel
8  * @version 1.1
9  *
10  * This is a sample presentation object written by hand (not using the
11  * Jolt compiler). Since this presentation object only redirects, and does
12  * not emit any HTML, it does not need Jolt.
13  * This type of presentation object could, for example, be the target of
14  * a form's submit button, process the data, and then decide where to send
15  * the user (back or on to the next page).
16  */

17 package net.sourceforge.ejosa.piggybank.presentation.enhydra;
18
19 import com.lutris.appserver.server.httpPresentation.*;
20
21
22 /**
23  * The redirection object for Enhydra.
24  *
25  * @author B. Lofi Dewanto, T. Menzel
26  * @version 1.1
27  */

28 public class Redirect implements HttpPresentation {
29     /*
30      * There is the only function needed in order to be a presentation object.
31      */

32     public void run(HttpPresentationComms comms) throws Exception JavaDoc {
33         throw new ClientPageRedirectException(comms.request.getAppFileURIPath(
34                                                       "Welcome.po"));
35     }
36 }
Popular Tags