1 16 package org.directwebremoting.servlet; 17 18 import java.io.IOException ; 19 import java.io.PrintWriter ; 20 21 import javax.servlet.http.HttpServletRequest ; 22 import javax.servlet.http.HttpServletResponse ; 23 24 import org.directwebremoting.extend.Handler; 25 import org.directwebremoting.util.MimeConstants; 26 27 31 public class AboutHandler implements Handler 32 { 33 36 public void handle(HttpServletRequest request, HttpServletResponse response) throws IOException 37 { 38 response.setContentType(MimeConstants.MIME_HTML); 39 PrintWriter out = response.getWriter(); 40 out.print("<html><head><title>DWR - Easy Ajax for Java</title></head><body>"); 41 out.print("<h1 style='font-size:100%;font-weight:normal;'>This site is using <a HREF='http://getahead.org/dwr'>DWR - Easy Ajax for Java</a>."); 42 out.print("</body></html>"); 43 } 44 } 45 | Popular Tags |