吴裕雄--天生自然JAVA开发JSP-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学习笔记:自定义标签-编写带标签体的标签
摘要:/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open
阅读全文
吴裕雄--天生自然JAVA开发JSP-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学习笔记:解决启动TOMCAT服务器乱码问题
摘要:启动TOMCAT出现乱码 1.打开安装Tomcat的所在目录 2. 打开后选择conf目录。 3. 将里面的logging.properties文件用编辑器打开,本例子是使用“Notepad++”编辑器打开。 4. 打开后大约在50行左右找到java.util.logging.ConsoleHand
阅读全文
吴裕雄--天生自然JAVA开发JSP-SERVLET学习笔记:配置TOMCAT服务器
摘要:第一步鼠标右键计算机->属性->高级系统设置,进去之后,点击环境变量,如下图所示: 第二步开始配置tomcat的环境变量,新建系统变量名CATALINA_BASE,值tomcat的安装路径,如下图所示: 第三步新建系统变量CATALINA_HOME,值tomcat的安装路径,如下图所示: 第四步找到
阅读全文
吴裕雄--天生自然JAVA开发JSP-SERVLET学习笔记:修改服务器端口
摘要:1、确认8082是不会发生冲突的端口 2、找到tomcat\conf\server.xml文件。如图 3、打开server.xml文件,找到<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPor
阅读全文
吴裕雄--天生自然JAVA开发JSP-SERVLET学习笔记:解决服务端口8080被占用的问题
摘要:启动服务器报:服务端口8080被占用 解决方法: 第一步,查看windows所有端口进程: 点击开始菜单选择运行(win+r),接着在运行对话框中输入“cmd”,回车打开命令提示符窗口,然后在窗口中输入【netstat -ano】,回车,之后就会显示所有的端口占用情况 第二步,继续输入【netsta
阅读全文
吴裕雄--天生自然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
阅读全文