jsp源码实例1(输出)

JV0K5Q

JV0K5Q

2016-01-29 12:04

jsp源码实例1(输出),jsp源码实例1(输出)
  package coreservlets;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

/** Simple servlet that generates HTML.
* <P
* Taken from Core Servlets and JavaServer Pages
* from Prentice Hall and Sun Microsystems Press,
* http://www.coreservlets.com/.
* &copy; 2000 Marty Hall; may be freely used or adapted.
*/

public class HelloWWW2 extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String docType =
"<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 " +
"Transitional//EN"n";
out.println(docType +
"<HTMLn" +
"<HEAD<TITLEHello WWW</TITLE</HEADn" +
"<BODYn" +
"<H1Hello WWW</H1n" +
"</BODY</HTML");
}
}
 
展开更多 50%)
分享

猜你喜欢

jsp源码实例1(输出)

Java JAVA基础
jsp源码实例1(输出)

jsp源码实例1(输出)

Java JAVA基础
jsp源码实例1(输出)

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

jsp源码实例5(cookie)

Java JAVA基础
jsp源码实例5(cookie)

jsp源码实例3(获取jsp各种参数)

Java JAVA基础
jsp源码实例3(获取jsp各种参数)

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

jsp源码实例2(获取表单参数)

Java JAVA基础
jsp源码实例2(获取表单参数)

jsp源码实例2(获取表单参数)

Java JAVA基础
jsp源码实例2(获取表单参数)

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

DHTML编写经得起考验的可移植代码

DHTML编写经得起考验的可移植代码

《全民打怪兽》玩家双倍掉率解析

《全民打怪兽》玩家双倍掉率解析
下拉加载更多内容 ↓