01: /*
02: * Copyright (c) 1999-2001 Lutris Technologies, Inc. All Rights
03: * Reserved.
04: *
05: * This source code file is distributed by Lutris Technologies, Inc. for
06: * use only by licensed users of product(s) that include this source
07: * file. Use of this source file or the software that uses it is covered
08: * by the terms and conditions of the Lutris Enhydra Development License
09: * Agreement included with this product.
10: *
11: * This Software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
12: * ANY KIND, either express or implied. See the License for the specific terms
13: * governing rights and limitations under the License.
14: *
15: * Contributor(s):
16: *
17: * $Id: Redirect.java,v 1.1 2006-09-11 12:57:49 sinisa Exp $
18: */
19:
20: /*
21: * This is a sample presentation object written by hand (not using the
22: * Jolt compiler). Since this presentation object only redirects, and does
23: * not emit any HTML, it does not need Jolt.
24: * This type of presentation object could, for example, be the target of
25: * a form's submit button, process the data, and then decide where to send
26: * the user (back or on to the next page).
27: */
28:
29: package xalanDoc.presentation;
30:
31: import com.lutris.appserver.server.httpPresentation.*;
32:
33: public class Redirect implements HttpPresentation {
34:
35: /*
36: * There is the only function needed in order to be a presentation object.
37: */
38: public void run(HttpPresentationComms comms) throws Exception {
39: throw new ClientPageRedirectException(comms.request
40: .getAppFileURIPath("Welcome.po"));
41: }
42:
43: }
|