KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > getahead > dwrdemo > intro > Intro


1 /*
2  * Copyright 2005 Joe Walker
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.getahead.dwrdemo.intro;
17
18 import java.io.IOException JavaDoc;
19
20 import javax.servlet.ServletException JavaDoc;
21
22 import org.directwebremoting.WebContext;
23 import org.directwebremoting.WebContextFactory;
24
25 /**
26  * Used by the default webapp landing page to check basic functionallity
27  * @author Joe Walker [joe at getahead dot ltd dot uk]
28  */

29 public class Intro
30 {
31     /**
32      * A simple test that the DWr is working. Used by the front page.
33      * @return The text of the insert.html page
34      * @throws IOException From {@link WebContext#forwardToString(String)}
35      * @throws ServletException From {@link WebContext#forwardToString(String)}
36      */

37     public String JavaDoc getInsert() throws ServletException JavaDoc, IOException JavaDoc
38     {
39         return WebContextFactory.get().forwardToString("/insert.html");
40     }
41 }
42
Popular Tags