1 16 package org.getahead.dwrdemo.simpletext; 17 18 import java.io.IOException ; 19 20 import javax.servlet.ServletException ; 21 22 import org.directwebremoting.WebContext; 23 import org.directwebremoting.WebContextFactory; 24 25 29 public class Demo 30 { 31 36 public String sayHello(String name) 37 { 38 return "Hello, " + name; 39 } 40 41 47 public String getInclude() throws ServletException , IOException  48 { 49 WebContext wctx = WebContextFactory.get(); 50 return wctx.forwardToString("/simpletext/forward.html"); 51 } 52 } 53 | Popular Tags |