资源简介
apache-tomcat-7.0.90.tar.gz官网下载,适用于CentOS。。。。
代码片段和文件信息
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License Version 2.0
* (the “License“); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package mypackage;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Simple servlet to validate that the Hello World example can
* execute servlets. In the web application deployment descriptor
* this servlet must be mapped to correspond to the link in the
* “index.html“ file.
*
* @author Craig R. McClanahan
*/
public final class Hello extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* Respond to a GET request for the content produced by
* this servlet.
*
* @param request The servlet request we are processing
* @param response The servlet response we are producing
*
* @exception IOException if an input/output error occurs
* @exception ServletException if a servlet error occurs
*/
@Override
public void doGet(HttpServletRequest request
HttpServletResponse response)
throws IOException ServletException {
response.setContentType(“text/html“);
PrintWriter writer = response.getWriter();
writer.println(““);
writer.println(““);
writer.println(“tle>Sample Application Servlet Page tle>“);
writer.println(““);
writer.println(““);
writer.println(““);
writer.println(““);
writer.println(““);
writer.println(““);
writer.println(“ “);
writer.println(““);
writer.println(“Sample Application Servlet
“);
writer.println(“This is the output of a servlet that is part of“);
writer.println(“the Hello World application.“);
writer.println(“ “);
writer.println(“ “);
writer.println(“
“);
writer.println(““);
writer.println(““);
}
}
- 上一篇:ICP算法二维实现
- 下一篇:满足三角不等式的TSP问题的近似算法
相关资源
- 基于linux下QT开发的简易音乐播放器
- Mycat-server-1.4-release-linux.tar
- e2fsprogs-1.45.4.tar.gz
- linux Apache httpd-2.2.9.tar.gz
- 高质量嵌入式LinuxC编程_试读版PDF电子
- linux1.0内核详解含1.0源码
- 音视频即时通讯Linux
- linux应用程序开发详解完整版PDF+源码
- kali linux 无线密码破解教程
- linux samba
- tomcat-8.5.20-windows-64位
- 最新windows和linux的adb工具
- 无线网卡ath9k驱动Linux
- gawk-4.1.3.tar.gz
- Linux Device Drivers Development_ Develop cust
- 精通linuxlinux书籍
- Linux运维工程师面试题总结
- redis-5.0.6.tar目前最新安装包.zip
- 精简版黑白棋demo-Qt
- 快乐的 Linux 命令行中英文PDF
- 基于Centos6.9+7.4主备DNS服务器搭建实战
- linux多线程编程书籍
- linux expect安装及expect,tcl安装包
- torchvision-0.5.0+cpu-cp36-cp36m-linux_x86_64.
- Orange pi PC(H3)移植linux总结
- Linux Wireless架构总结.pdf
- 博创2410开发板光盘资料---linux实验
- 互联网各厂运维方向面试题汇总附答
- 超详细的Win10+MyEclipse2018+Tomcat9.0环境搭
- LInux项目实战及程序员必备
评论
共有 条评论