KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > uk > ltd > getahead > dwr > DWRServlet


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 uk.ltd.getahead.dwr;
17
18 import org.directwebremoting.servlet.DwrServlet;
19
20 /**
21  * This is the main servlet that handles all the requests to DWR.
22  * <p>It is on the large side because it can't use technologies like JSPs etc
23  * since it all needs to be deployed in a single jar file, and while it might be
24  * possible to integrate Velocity or similar I think simplicity is more
25  * important, and there are only 2 real pages both script heavy in this servlet
26  * anyway.</p>
27  * <p>There are 5 things to do, in the order that you come across them:</p>
28  * <ul>
29  * <li>The index test page that points at the classes</li>
30  * <li>The class test page that lets you execute methods</li>
31  * <li>The interface javascript that uses the engine to send requests</li>
32  * <li>The engine javascript to form the iframe request and process replies</li>
33  * <li>The exec 'page' that executes the method and returns data to the iframe</li>
34  * </ul>
35  * @deprecated Use org.directwebremoting.servlet.DwrServlet
36  * @author Joe Walker [joe at getahead dot ltd dot uk]
37  */

38 public class DWRServlet extends DwrServlet
39 {
40 }
41
Popular Tags