KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tableapp > presentation > RedirectPresentation


1 /*
2  * tableApp
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  * Prozone
9  *
10  */

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

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