⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nameapp.java

📁 java servlet编程源码
💻 JAVA
字号:
import com.go.teaservlet.*;
import javax.servlet.*;

public class NameApp implements Application {

  // Both init(ApplicationConfig) and destroy() must be implemented because
  // they are declared in the Application interface.  They can be left empty.
  public void init(ApplicationConfig config) throws ServletException {
  }

  // Creating a context provides functions accesible from the templates.
  public Object createContext(ApplicationRequest request,
                              ApplicationResponse response) {
    // You often pass on the request and response even if
    // they are not used, since they may be used later
    return new NameContext(request, response);
  }

  // This method must be implemented to return the class of the object
  // returned by createContext()
  public Class getContextType() {
    return NameContext.class;
  }

  public void destroy() {
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -