摘要: 在我们写jsp时都会写或看见下面量段熟悉的代码: <%@ page language="java" contentType="text/html; charset=utf-8"> 在head里面也会有meta标签 <meta http-equiv="content-type" content="te 阅读全文
posted @ 2018-03-10 11:42 小身板 阅读(916) 评论(0) 推荐(0) 编辑
摘要: 1.servlet中编写cookie 2.jsp中编写读取cookie功能 3.servlet中编写读取cookie的功能 阅读全文
posted @ 2018-03-10 11:20 小身板 阅读(263) 评论(0) 推荐(0) 编辑
摘要: JSP脚本元素 1、 JSP声明语句 JSP声明语句以<%!开始,以%>结束,其语法格式为:<%! 声明语句 %> 使用声明语句的变量为全局变量,也就是说,当有多个用户在执行此JSP页面时,将共享该变量。 2、 JSP Scriptlets JSP Scriptlets以<%开始,以%>结束,其中包 阅读全文
posted @ 2018-03-10 10:56 小身板 阅读(392) 评论(0) 推荐(0) 编辑