KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > poker > presentation > main > RedirectPresentation


1 /*
2  *
3  * EnhyDraw!, beta 4, 5/21/99
4  *
5  * Copyright 1999, Larry Wolcot & Daryl Tempesta
6  * ALL rights reserved. Not for commercial use
7  * without written permission from both authors.
8  *
9  * This is a sample presentation object written by hand (not using the
10  * Jolt compiler). Since this presentation object only redirects, and does
11  * not emit any HTML, it does not need Jolt.
12  * This type of presentation object could, for example, be the target of
13  * a form's submit button, process the data, and then decide where to send
14  * the user (back or on to the next page).
15  */

16
17 package poker.presentation.main;
18
19 import com.lutris.appserver.server.httpPresentation.*;
20
21
22 public class RedirectPresentation implements HttpPresentation {
23
24    /*
25     * There is the only function needed in order to be a presentation object.
26     */

27     public void run(HttpPresentationComms comms) throws Exception JavaDoc {
28         throw new ClientPageRedirectException(
29                       comms.request.getAppFileURIPath("FirstDealPresentation.po"));
30     }
31
32 }
33
Popular Tags