吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:自定义标签-在页面输出HelloWorld
摘要:import java.io.IOException; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.SimpleTagSupport; public class HelloWorldTag extend
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:使用Servlet作为控制器的MVC应用-用户登录验证操作
摘要:<%-- Document : login Created on : 2020-4-12, 16:50:16 Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE ht
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:访问Servlet的配置参数
摘要:/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:servlet服务-load-on-startup Servlet
摘要:/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:servlet获取表单请求参数并在客户端显示2
摘要:<%-- Document : form Created on : 2020-4-12, 11:07:16 Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE htm
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:servlet获取表单请求参数并在客户端显示
摘要:/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:session对象-属性可以在多个页面的跳转之间共享
摘要:<%-- Document : shop Created on : 2020-4-12, 8:49:11 Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:response对象-增加带有中文的Cookie
摘要:<%-- Document : cnCookie Created on : 2020-4-12, 8:34:05 Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:response对象-增加Cookie
摘要:<%-- Document : addCookie Created on : 2020-4-12, 8:16:06 Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:response对象-重定向
摘要:<%-- Document : doRedirect Created on : 2020-4-12, 8:04:22 Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYP
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:response对象-服务器对客户端的响应
摘要:<%-- Document : img Created on : 2020-4-12, 7:49:34 Author : Administrator --%> <%@page import="javax.imageio.ImageIO"%> <%@page import="java.awt.Font
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:操作request范围的属性
摘要:<%-- Document : draw Created on : 2020-4-12, 7:19:39 Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:request对象-获取GET请求里的中文字符
摘要:<%-- Document : form Created on : 2020-4-11, 23:10:56 Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE htm
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:request对象-获取GET请求参数值
摘要:<%-- Document : form Created on : 2020-4-11, 23:10:56 Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE htm
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:request对象-获取请求头-请求参数
摘要:<%-- Document : form Created on : 2020-4-11, 23:10:56 Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE htm
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:pageContext对象-访问JSP之间的共享数据
摘要:<%-- Document : pageContextTest Created on : 2020-4-11, 22:30:37 Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:out对象-页面输出流
摘要:<%-- Document : outTest Created on : 2020-4-11, 22:16:56 Author : Administrator --%> <%@page import="java.sql.ResultSet"%> <%@page import="java.sql.St
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:exception对象-JSP脚本的异常机制
摘要:<%-- Document : throwEx Created on : 2020-4-11, 22:04:20 Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8" errorPage="e
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:使用config获取JSP参数
摘要:<%-- Document : configTest2 Created on : 2020-4-11, 21:49:46 Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCT
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:使用config的一个方法getServletName()
摘要:<%-- Document : configTest Created on : 2020-4-11, 21:43:47 Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTY
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:获得Web应用配置参数
摘要:<%-- Document : getWebParam Created on : 2020-4-11, 20:03:43 Author : Administrator --%> <%@page import="java.sql.ResultSet"%> <%@page import="java.sq
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:让多个JSP、Servelet共享数据
摘要:<%-- Document : put-application Created on : 2020-4-11, 19:51:55 Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:useBean、setProperty、getProperty指令
摘要:<%@ page contentType="text/html; charset=GBK" language="java" errorPage=""%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://ww
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:forward转发用户请求
摘要:<%@ page contentType="text/html; charset=GBK" language="java" errorPage=""%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://ww
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:include指令
摘要:<%@ page contentType="text/html; charset=GBK" language="java" errorPage=""%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://ww
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:指定JSP页面的错误提示页
摘要:<%@ page contentType="text/html; charset=GBK" language="java" isErrorPage="true"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "htt
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:指定JSP页面的描述信息
摘要:<%@ page contentType="text/html; charset=GBK" language="java" errorPage=""%> <!-- 指定info 信息 --> <%@ page info="this is a jsp"%> <!DOCTYPE html PUBLIC
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:JSP脚本
摘要:<%@ page contentType="text/html; charset=GBK" language="java" errorPage=""%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://ww
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:输出JSP表达式
摘要:<%@ page contentType="text/html; charset=GBK" language="java" errorPage=""%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://ww
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:JSP声明
摘要:<%@ page contentType="text/html; charset=UTF-8" language="java" errorPage=""%> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>声明示例</title>
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:JSP的基本原理
摘要:<%@ page contentType="text/html; charset=UTF-8" language="java" errorPage="" %> <html> <head> <title>欢迎</title> </head> <body> 欢迎学习JAVA WEB知识,现在的时间是:
阅读全文
吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:构建WEB应用
摘要:<%@ page contentType="text/html; charset=UTF-8" language="java" errorPage=""%> <html> <head> <title>欢迎</title> </head> <body> 欢迎学习JAVA WEB 知识。 </body>
阅读全文
吴裕雄--天生自然 JAVA-ORACLE学习笔记:JAVA连接ORACLE操作
摘要:导入ORACLE连接的jar包,在安装ORACLE的路径下可以找到 在eclipse对应的文件右键build path选择config那项导入 效果如下 接着编写代码测试连接ORACLE数据库,代码如下: package pkage; import java.sql.Connection; impo
阅读全文
吴裕雄--天生自然 JAVA连接MYSQL:解决Mysql错误:The server time zone value is unrecognized or represents more than one time zone
摘要:编程访问Mysql数据库时,报出时区错误如下: The server time zone value 'й' is unrecognized or represents more than one time zone 通常有以下两种解决方法: 第一,在数据库连接语句后添加?serverTimezon
阅读全文