01: /*
02: *
03: * EnhyDraw!, beta 4, 5/21/99
04: *
05: * Copyright 1999, Larry Wolcot & Daryl Tempesta
06: * ALL rights reserved. Not for commercial use
07: * without written permission from both authors.
08: *
09: * 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: public class RedirectPresentation implements HttpPresentation {
22:
23: /*
24: * There is the only function needed in order to be a presentation object.
25: */
26: public void run(HttpPresentationComms comms) throws Exception {
27: throw new ClientPageRedirectException(comms.request
28: .getAppFileURIPath("FirstDealPresentation.po"));
29: }
30:
31: }
|