第一部分JSP的学习目录的流程图。

目录

第一部分JSP的学习目录的流程图。

第二部分JSP的知识的架构跟着Html网页去浏览内容。、

第三部分Jsp的代码运行。

 六个案例进行说明上面所展示的内容。

A-1

 A-2

​ A-3

 A-4



第二部分JSP的知识的架构跟着Html网页去浏览内容。、

 

 

 

 

 

 

 

 

 

 

 

 

 

 


第三部分Jsp的代码运行。

 六个案例进行说明上面所展示的内容。

A-1

package com.servlet;import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;/*** Servlet implementation class ExitServlet*/
@WebServlet("/ExitServlet")
public class ExitServlet extends HttpServlet {private static final long serialVersionUID = 1L;/*** @see HttpServlet#HttpServlet()*/public ExitServlet() {super();// TODO Auto-generated constructor stub}/*** @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)*/protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {//把勾选的自动登录去掉HttpSession session=request.getSession();session.removeAttribute("islogin");//跳转到登录页面response.sendRedirect("LoginServlet");}/*** @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)*/protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {// TODO Auto-generated method stubdoGet(request, response);}}package com.servlet;import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;/*** Servlet implementation class GetLoginInfoServlet*/
@WebServlet("/GetLoginInfoServlet")
public class GetLoginInfoServlet extends HttpServlet {private static final long serialVersionUID = 1L;/*** @see HttpServlet#HttpServlet()*/public GetLoginInfoServlet() {super();// TODO Auto-generated constructor stub}/*** @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)*/protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {// TODO Auto-generated method stubresponse.getWriter().append("Served at: ").append(request.getContextPath());}/*** @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)*/protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {//获得Session对象HttpSession session=request.getSession();//获得用户的QQ号String qq=request.getParameter("qq");//获得用户的密码String psd=request.getParameter("psd");//获得记住密码的状态String ispsd=request.getParameter("ispsd");//获得自动登录的状态String islogin=request.getParameter("islogin");if (ispsd!=null&&!"".equals(ispsd)&&!"null".equals(ispsd)) {//获得的记住密码的状态不为空,说明用户在登录的时候勾选了记住密码session.setAttribute("qq", qq);session.setAttribute("psd", psd);session.setAttribute("ispsd", ispsd);}else {//表示用户不想要记住密码,意味着要把保存的数据进行删除session.removeAttribute("qq");session.removeAttribute("psd");session.removeAttribute("ispsd");}if (islogin!=null&&!"".equals(islogin)&&!"null".equals(islogin)) {//获得的自动登录的状态不为空,说明用户勾选了自动登录session.setAttribute("islogin", islogin);}//进入主页response.sendRedirect("HomeServlet");}}package com.servlet;import java.io.IOException;
import java.io.PrintWriter;import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;/*** Servlet implementation class HomeServlet*/
@WebServlet("/HomeServlet")
public class HomeServlet extends HttpServlet {private static final long serialVersionUID = 1L;/*** @see HttpServlet#HttpServlet()*/public HomeServlet() {super();// TODO Auto-generated constructor stub}/*** @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)*/protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {response.setContentType("text/html");response.setCharacterEncoding("UTF-8");PrintWriter pw=response.getWriter();pw.append("<p>欢迎进入QQ登录主页面</p>");pw.append("<a href='ExitServlet'>注销</a>");}/*** @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)*/protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {// TODO Auto-generated method stubdoGet(request, response);}}package com.servlet;import java.io.IOException;
import java.io.PrintWriter;import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;/*** Servlet implementation class LoginServlet*/
@WebServlet("/LoginServlet")
public class LoginServlet extends HttpServlet {private static final long serialVersionUID = 1L;/*** @see HttpServlet#HttpServlet()*/public LoginServlet() {super();// TODO Auto-generated constructor stub}/*** @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)*/protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {//判断用户上一次登录的时候是否有勾选自动登录HttpSession session=request.getSession();Object object=session.getAttribute("islogin");if (object!=null) {//说明用户上一次勾选了自动登录//直接进入主页面response.sendRedirect("HomeServlet");}Object object2=session.getAttribute("ispsd");String qq="";String psd="";boolean ispsd=false;if (object2!=null) {//说明用户上一次勾选了记住密码//把QQ号,密码显示在登录页面上,并且要勾上记住密码的状态qq=(String) session.getAttribute("qq");psd=(String) session.getAttribute("psd");ispsd=true;}response.setContentType("text/html");response.setCharacterEncoding("UTF-8");PrintWriter pw=response.getWriter();pw.append("<div align='center'>");pw.append("<h2>QQ登录</h2>");pw.append("<form action='GetLoginInfoServlet' method='post'>");if (ispsd) {pw.append("QQ号:<input type='text' value='"+qq+"' name='qq'><br>");pw.append("密码:<input type='password' value='"+psd+"' name='psd'><br>");pw.append("<input type='checkbox' value='true' checked='checked' name='ispsd'>记住密码&nbsp;&nbsp;");}else {pw.append("QQ号:<input type='text'  name='qq'><br>");pw.append("密码:<input type='password'  name='psd'><br>");pw.append("<input type='checkbox' value='true'  name='ispsd'>记住密码&nbsp;&nbsp;");}pw.append("<input type='checkbox' value='true' name='islogin'>自动登录<br>");pw.append("<input type='submit' value='登录'>");pw.append("</form>");pw.append("</div>");}/*** @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)*/protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {// TODO Auto-generated method stubdoGet(request, response);}}


 A-2

package com.servlect;import java.io.IOException;
import java.io.PrintWriter;import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;/*** Servlet implementation class One*/
@WebServlet("/One")
public class One extends HttpServlet {private static final long serialVersionUID = 1L;int age=20;/*** @see HttpServlet#HttpServlet	()*/public One() {super();// TODO Auto-generated constructor stub}/*** @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)*/protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {// TODO Auto-generated method stubresponse.setContentType("text/html");response.setCharacterEncoding("UTF-8");PrintWriter pw=response.getWriter();pw.append("<h1>我是jsp创建的标题一</h1>"+age);System.out.println(age);}/*** @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)*/protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {// TODO Auto-generated method stubdoGet(request, response);}}
<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
*{
font-size: 30px;
color: red;
font-weight:  bolder;
}
</style>
<title>Insert title here</title>
</head>
<body>
<!--   application对象数据跟服务器有关 只要服务器不停址 数据都能共享  -->
<%--applicatio  --%><%//application.setAttribute("d", "我第四个数据");
/*  对象四 application*/
pageContext.setAttribute("d", "我是pageContext最大的数据,数据与服务器的关闭有关", pageContext.APPLICATION_SCOPE);
String d=(String)application.getAttribute("d");
out.write("<br>");
out.write(d);
%><%-- 对象三 pageContext --%><%
pageContext.setAttribute("aa", "我是pageContext数据中范围第四小的数据只能自己使用");
String aa=(String)pageContext.getAttribute("aa");
out.write("<br>");
out.write(aa);
%>
<%-- 对象二 request --%>
<%//request对象中的数据是可以形成多个页面共享数据,但是要通过请求转发的方式打开其他页面才能形成共享数据//写法一//request.setAttribute("b", "我是request的数据");//写法二//第一个参数表示要添加的数据的名称 第二个参数表示要存储的数据  第三个参数表示要把数据存储给哪个对象pageContext.setAttribute("bb", "我是request的存放的数据可以形成多个页面共享数据,但是要通过请求转发的方式打开其他页面才能形成共享数据", PageContext.REQUEST_SCOPE);String bb=(String)request.getAttribute("bb");out.write("<br>");out.write(bb);//通过请求转发的方式跳转至five.jsp/* request.getRequestDispatcher("b.jsp").forward(request, response);*/
%></body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body><h1>获取到了对象四</h1>
<%
/* application 对象四   */
/* String d=(String)application.getAttribute("d"); */
String d=(String)pageContext.getAttribute("d",pageContext.APPLICATION_SCOPE);
out.write(d);
%><h1>获取了对象三</h1>
<%
String b = (String)pageContext.getAttribute("bb",pageContext.REQUEST_SCOPE);
out.write(b);%><h1>对象二</h1>
<%
//方法一    request对象自己直接获得数据
//String b=(String)request.getAttribute("b");
//方法二   pageContext帮request获得数据
String c=(String)pageContext.getAttribute("b", PageContext.REQUEST_SCOPE);
out.write("我获得了four.jsp页面的request对象的数据:"+c);%>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div style="width: 900px;height: 400px;background: white ;">我是Center部</div></body>
</html><%@ page language="java"  isELIgnored ="true" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body><%-- 页面有误 调到 error.jsp页面errorPage="error.jsp"    页面有误跳到的目标isELIgnored ="true"  页面目标跳转之后 请选择true false --%>
<h1>这是我的异常的页面内容</h1>
<h1 style="color: red;">当前页面错误,出现除法异常请等待</h1>
<h1>include指定静态包含:把多个文件</h1><a href="Nine.jsp">Nine.jsp</a>
<hr>
<a href="index.jsp">index.jsp</a>
<hr>
<a href="Two.jsp">Two.jsp</a>
<hr>
<a href="Tree.jsp">Tree.jsp</a>
<hr>
<a href="Nine.jsp">Nine.jsp</a>
<hr>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div style="width: 900px;height: 200px;background: yellow; margin: auto;">我是footer部</div>
<a href="Nine.jsp">Nine.jsp</a>
<hr>
<a href="index.jsp">index.jsp</a>
<hr>
<a href="Two.jsp">Two.jsp</a>
<hr>
<a href="Tree.jsp">Tree.jsp</a>
<hr>
<a href="Nine.jsp">Nine.jsp</a>
<hr>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
*{
font-size: 50px;
font-weight: bolder;
background-color: purple;
}
</style>
</head>
<body>
<div style="width: 900px;height: 800px;background: pink; margin: auto;">我是head部<!--  head--><%@ include file="head.jsp" %><%@ include file="center.jsp" %><%@ include file="footer.jsp" %></div>
<a href="Nine.jsp">Nine.jsp</a>
<hr>
<a href="index.jsp">index.jsp</a>
<hr>
<a href="Two.jsp">Two.jsp</a>
<hr>
<a href="Tree.jsp">Tree.jsp</a>
<hr>
<a href="Nine.jsp">Nine.jsp</a>
<hr>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div style="width: 900px;height: 100px;background: red;">我是head部</div>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
*
{
font-size: 30px;
font-weight: bold;
}
</style>
</head>
<body><h1>
</h1>
<hr>
<%-- @1<%!%>用途定义全局变量 定义方法   @2<%%>用途定义java代码。@3<%-- -- %>用于页面的注释。@4<%@%>用于jsp文件的操作指令--%><!-- 全局变量 --><%! int a=20; int b=30;  int c=45;%>
<!-- 定义方法 -->
<%! public int add (int x,int y,int z) {return x+y+z;
}
%>
<hr>
<h1 style="color: green;">a+b+c的结果为:<%= add(a,b,c) %></h1>
<br>
<hr><%! int e=110; int f=340;%>
<%! public int adde(int w,int r) {return f/e;
}%>
<h1 style="color: red;">我是JSP创建的标题一<%=adde(e,f) %></h1><!--输出10000行H3标签  -->
<!--执行代码体,多行代码  java代码  -->
<!--java 代码分段操作  -->
<%for(int i=0;i<10;i++) {%><!-- out.write("<h1>Hellow Jsp</h1>"); --><h1 style="color: red;">Hellow Jsp</h1><%}%>
<hr>
<a href="Nine.jsp">Nine.jsp</a>
<hr>
<a href="index.jsp">index.jsp</a>
<hr>
<a href="Two.jsp">Two.jsp</a>
<hr>
<a href="Tree.jsp">Tree.jsp</a>
<hr>
<a href="Nine.jsp">Nine.jsp</a>
<hr>
<a href="error.jsp">error.jsp</a></body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
*{
font-size: 23px;
}
</style>
<meta charset="UTF-8">
<title>登陆页面JSP</title>
</head>
<body bgcolor="pink">
<form action="index.jsp" method="post" name="form1">
输入用户名称:
<input type="text" name="loginName" size="20"/>
<br>输入用户密码:
<input type="password" name="password" size="20"/>
<br>在次输入密码:
<input type="passwords" name="passwords" size="20"/>
<br>:输入信息:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" name="submit" value="提交" size="12">
<input type="reset" name="reset" value="重值" size="12">
</form>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>九九乘法表</title>
<style type="text/css">
*{background:yellow;
border:solid 7px black; 
font-size: 37px;
font-weight: bold;
color: black;text-shadow: 5px 5px 12px brown;
}
</style>
</head>
<body ><h1 style="background-color: pink;align: center; text-align: center;">九九乘法表</h1>
<br><%for(int i=1;i<=9;++i){%><%for(int j=1;j<=i;++j){ %><%=i+"*"+j+"="+i*j+" " %><%} %><br><%} %><hr>
<a href="Nine.jsp">Nine.jsp</a>
<hr>
<a href="index.jsp">index.jsp</a>
<hr>
<a href="Two.jsp">Two.jsp</a>
<hr>
<a href="Tree.jsp">Tree.jsp</a>
<hr>
<a href="Nine.jsp">Nine.jsp</a>
<hr>
<a href="error.jsp">error.jsp</a></body>
</html><%@ page language="java"  errorPage="error.jsp"   contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%-- 页面有误 调到 error.jsp页面errorPage="error.jsp"    页面有误跳到的目标isELIgnored ="true"  页面目标跳转之后 请选择true false --%>
<%int a=100/0; %>
</body>
</html><%-- <%@ 用于jsp文件的操作指令用于控制管理整个jsp页面的 %> --%>
<%@page import="java.util.Calendar"%><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>定义一个变量为int类型为int</title>
</head>
<body>
<!--  创建日历类 获得 年 月日-->
<%Calendar  Calenr =Calendar .getInstance() ;int year=Calenr.get(Calenr.YEAR);int month=Calenr.get(Calenr.MONTH)+1;int day=Calenr.get(Calenr.DAY_OF_MONTH);
%>
<h1>现在的日期为:<%=year %>年<%=month %>月<%=day %>日:<br></h1><!--拽为控制台输入  -->
<!--jsp编程注释内容  -->
<%-- <%int r=89; %>  --%><%! int a=59; %>
<%
if(a>59){	
%>
<h1 style="color: green;">成绩合格</h1>
<%} else { %><h1 style="color: red;">成绩不合格</h1><%}%>
</h1><hr>
<%-- <%@ 用于jsp文件的操作指令 %> --%><!-- 9*9=81 -->
<a href="Nine.jsp">Nine.jsp</a>
<hr>
<a href="index.jsp">index.jsp</a>
<hr>
<a href="Two.jsp">Two.jsp</a>
<hr>
<a href="Tree.jsp">Tree.jsp</a>
<hr>
<a href="Nine.jsp">Nine.jsp</a>
<hr>
</body>
</html>

 

 A-3

<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
*{
background: red;
color: yellow;
font-size: 30px;
}
</style>
</head>
<body>
<h1 style="color: red;">欢迎来到a.jsp文件</h1><%String a=(String)request.getAttribute("a");out.write("通过请求转发获得的数据为"+a);
%>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<style type="text/css">
*{
background: red;
color: yellow;
font-size: 30px;
}
</style><%-- application,	ServlectContext	对象八ServlectContext 		共享数据  整个项目中只会有一个对象 
tomcat 服务器 一关闭 数据释放 数据的共享更服务器相关 --%><%
//获得静态数据String info =application.getInitParameter("a");out.write(info);//动态数据out.write("<hr>");application.setAttribute("c", "我是动态数据");out.write((String)application.getAttribute("c"));
%></body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
*{
background: red;
color: yellow;
font-size: 30px;
}
</style>
</head>
<body>
<%--     config 第七个对象		类名ServlectConfig			增加静态数据   --%>
<%
String name = config.getServletName();
out.write(name);%>
</body>
</html><%@ page language="java"  errorPage="error.jsp"    contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
*{
background: red;
color: yellow;
font-size: 30px;
}
</style></style>
</head>
<body><%-- <%int a=100/0; %> --%>
<hr><% int [] arr =new int [3];
System.out.println(arr[3]);
%>
<hr>
<%-- <%
Integer i =new Integer ("abd");
%> --%>
<hr></body>
</html><%@ page language="java"    isErrorPage="true"  contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<style type="text/css">
*{
background: red;
color: yellow;
font-size: 30px;
}
</style>
<h1>
除数不能为0:用户
</h1><h1><%= exception.getMessage() %></h1>
<h3><%=exception.toString() %></h3>
<h4><%=exception.hashCode()%></h3></body>
</html><%@page import="java.util.Calendar"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
*{
background: red;
color: yellow;
font-size: 30px;
}
</style>
<title>九大内置对象的学习</title>
</head>
<body>
<h3 style="background: red;color: white;">----对象一out</h3>
<%
//创建日历类Calendar  calendar =Calendar.getInstance();int AM_PM=calendar.get(calendar.AM_PM);if(AM_PM==calendar.AM){out.write("<h1 style=' color:red'>上午时间是</h1>");}else if(AM_PM==calendar.PM){out.write("<h1 style=' color:green'>下午时间是</h1>");}%><h3 style="background: red;color: white;">----对象二Application</h3>
<%
//获得静态数据String info =application.getInitParameter("a");out.write(info);//动态数据out.write("<hr>");application.setAttribute("c", "我是动态数据");out.write((String)application.getAttribute("c"));
%><h3 style="background: red;color: white;">----对象三page</h3>
<%
out.write((page.equals(this)?"page是当前对象":"page不是当前对象"));
out.write((session.equals(this)?"page是当前对象":"page不是当前对象"));
%><h3 style="background: red;color: white;">----对象四Response</h3>
<%response.sendRedirect("a.jsp");out.write("Hellow JSP");%>
</body>
</html><%@page import="java.util.Calendar"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
*{
background: red;
color: yellow;
font-size: 30px;
}
</style>
<title>Out对象</title>
</head>
<body>
<%--<!-- jsp九大对象之一:out对象 对应的类  JspWripiter -->  --%>
<%
//创建日历类Calendar  calendar =Calendar.getInstance();int AM_PM=calendar.get(calendar.AM_PM);if(AM_PM==calendar.AM){out.write("<h1 style=' color:red'>上午时间</h1>");}else if(AM_PM==calendar.PM){out.write("<h1 style=' color:green'>下午时间</h1>");}%><h1>
四大作用域(有四个对象)有四个对象共享数据
<hr>
seesion   浏览器不切
<hr>
application  服务器不关闭
<hr>
request:请求转发跳转页面的情况,只能两个页面共享数据
<hr>
pageContext:该对象中只能页面自己用
<hr>
才能用setAttribute的方法
<hr>
将四作用域排序
<hr>
pageContext  request  seesion   application 
</h1>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<style type="text/css">
*{
background: red;
color: yellow;
font-size: 30px;
}
</style>
<body>
<%--对象 page 对象 六  page,		Servlect(this)			jsp翻译出来类的对象   --%>
<%
out.write((page.equals(this)?"page是当前对象":"page不是当前对象"));
out.write((session.equals(this)?"page是当前对象":"page不是当前对象"));
%></body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<style type="text/css">
*{
background: red;
color: yellow;
font-size: 30px;
}
</style>
<body>
<!--  pageContext.	PageContextjsp			管理者由这个对象引出所有对象--></body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Request对象</title>
</head>
<body>
<style type="text/css">
*{
background: red;
color: yellow;
font-size: 30px;
}
</style>
<%-- jsp九大对象 request 类名HttpSevlectRequest --%>
<% String name=request.getParameter("name");out.write("<h1>我收到浏览器发送的数据为</h1>"+name);out.write("<h2 style='color:red'>http://localhost:8080/Day_13/Request.jsp?name=xao</h2>");//携带数据跳转页面request.setAttribute("a", "apple");request.getRequestDispatcher("a.jsp").forward(request, response);%>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<style type="text/css">
*{
background: red;
color: yellow;
font-size: 30px;
}
</style>
<%-- jsp九大内置对象  Respone对象三类名 HttpServlectRespone--%>
<h1 style="color: red;">Respone.jsp</h1><%response.sendRedirect("Out.jsp");out.write("Hellow JSP");%>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<style type="text/css">
*{
background: red;
color: yellow;
font-size: 30px;
}
</style>
<%----  对象四Session  HttpSession   Session放的数据为同已过浏览器服务器 所有Servlect 和 jsp都能共享Session里数据 --%>
<%session.setAttribute("b", "我是session对象的定义b");session.setAttribute("c", "我是session对象的定义c");out.write((String)session.getAttribute("b"));out.write((String)session.getAttribute("c"));%>
</body>
</html>

 

 

 

 

 

 

 A-4


 

package com.Actor;
/*** 创建角色* @author MZFAITHDREAM**/
public class Actor {private  String number;private String  name;private  String dexcription;public Actor() {// TODO Auto-generated constructor stubSystem.out.println("这是无惨书构造 有 number name dexcription ");System.out.println( "定义一个标准的类  无惨构造 有参构造 get set tostring ");}public Actor(String number, String name, String dexcription) {super();this.number = number;this.name = name;this.dexcription = dexcription;}public String getNumber() {return number;}public void setNumber(String number) {this.number = number;}public String getName() {return name;}public void setName(String name) {this.name = name;}public String getDexcription() {return dexcription;}public void setDexcription(String dexcription) {this.dexcription = dexcription;}@Overridepublic String toString() {return "Actor [number=" + number + ", name=" + name + ", dexcription=" + dexcription + "]";}}、package com.Dog;public class Dog {private String name;private int age;public Dog() {System.out.println("这是无惨构造");}public Dog(String name, int age) {super();this.name = name;this.age = age;}public String getName() {return name;}public void setName(String name) {this.name = name;}public int getAge() {return age;}public void setAge(int age) {this.age = age;}@Overridepublic String toString() {return "Dog [name=" + name + ", age=" + age + "]";}}package com.People;
/*** 创建一个标准的类*  MZFAITHDREAM* 类的封装 在jsp中称为 javaBean* javabean中必须有无惨有参get  set tostring 这五要素*/
public class People {private String id;private String name;private int age;private String  sex;private String phone;private String addr;private String height;private String weight;private String a;private String b;private String c;public People() {System.out.println("这是无惨构造");
}public People(String id, String name, int age, String sex, String phone, String addr, String height, String weight,String a, String b, String c) {super();this.id = id;this.name = name;this.age = age;this.sex = sex;this.phone = phone;this.addr = addr;this.height = height;this.weight = weight;this.a = a;this.b = b;this.c = c;
}public String getId() {return id;
}public void setId(String id) {this.id = id;
}public String getName() {return name;
}public void setName(String name) {this.name = name;
}public int getAge() {return age;
}public void setAge(int age) {this.age = age;
}public String getSex() {return sex;
}public void setSex(String sex) {this.sex = sex;
}public String getPhone() {return phone;
}public void setPhone(String phone) {this.phone = phone;
}public String getAddr() {return addr;
}public void setAddr(String addr) {this.addr = addr;
}public String getHeight() {return height;
}public void setHeight(String height) {this.height = height;
}public String getWeight() {return weight;
}public void setWeight(String weight) {this.weight = weight;
}public String getA() {return a;
}public void setA(String a) {this.a = a;
}public String getB() {return b;
}public void setB(String b) {this.b = b;
}public String getC() {return c;
}public void setC(String c) {this.c = c;
}@Override
public String toString() {return "People [id=" + id + ", name=" + name + ", age=" + age + ", sex=" + sex + ", phone=" + phone + ", addr="+ addr + ", height=" + height + ", weight=" + weight + ", a=" + a + ", b=" + b + ", c=" + c + "]";
}}package com.Student;
/*** 2021/12/23* 类的封装 在jsp中称为 javaBean* javabean中必须有无惨有参get  set tostring 这五要素* @author MZFAITHDREAM**/
public class Student {private String id;private String name;private int age;private String  sex;private String phone;private String addr;//无惨构造public Student() {// TODO Auto-generated constructor stub}//参数构造public Student(String id, String name, int age, String sex, String phone, String addr) {super();this.id = id;this.name = name;this.age = age;this.sex = sex;this.phone = phone;this.addr = addr;}//get set 方法public String getId() {return id;}public void setId(String id) {this.id = id;}public String getName() {return name;}public void setName(String name) {this.name = name;}public int getAge() {return age;}public void setAge(int age) {this.age = age;}public String getSex() {return sex;}public void setSex(String sex) {this.sex = sex;}public String getPhone() {return phone;}public void setPhone(String phone) {this.phone = phone;}public String getAddr() {return addr;}public void setAddr(String addr) {this.addr = addr;}//toStrinng方法@Overridepublic String toString() {return "Student [id=" + id + ", name=" + name + ", age=" + age + ", sex=" + sex + ", phone=" + phone + ", addr="+ addr + "]";}}

<%@page import="java.util.Calendar"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
*{font-size: 30px;font-weight: bold;background: red;color: yellow;}
h4{
color: red;
}
</style>
<title>Insert title here</title>
</head>
<body>
<h1>九大内置对象的写法</h1><%//out.write("aaaaa");pageContext.getOut().write("这是由pageContext管理的对象哦");//requestpageContext.getRequest();//responsepageContext.getResponse();//sessionpageContext.getSession();//exceptionpageContext.getException();//pagepageContext.getPage();//configpageContext.getServletConfig();//applicationpageContext.getServletContext();%><br><h1 style="font-size: 40px;color: green;">四大作用域的介绍详细那四大作用域.
@1pageContext:pageContext:该对象中存放的数据只能页面自己用<br>
@2request:在请求转发跳转页面的情况下,只能让两个页面之间共享数据<br>
@3session:不切换浏览器的情况下,所有servlet和jsp都能共享这个对象中的所有数据<br>
@4application:服务器不关闭的情况下,所有servlet和jsp都能共享这个对象中的所有数据<br>
这四个对象有共同的点:都要用到setAttribute() getAttribute() removeAttribute()<br></h1><hr><h4>pageContext是可以存储数据,但是其作用域只能供其本身的jsp页面使用</h4><!--  对象一pageContext  --><%	pageContext.setAttribute("aaa", "我是pageContext的存放范围最小的数据");pageContext.setAttribute("aa", "1001");String info=(String)pageContext.getAttribute("aaa");String inf=(String)pageContext.getAttribute("aa");out.write("<br>");out.write(info); out.write(inf); %><!-- 对象二 request -->
<h4>request对象中的数据是可以形成多个页面共享数据,但是要通过请求转发的
方式打开其他页面才能形成共享数据</h4><%request.setAttribute("b", "我是request的数据1002");//pageContext.setAttribute("bbb", "我是request的数据存放的范围是第二小的数据", PageContext.REQUEST_SCOPE);String infob=(String)request.getAttribute("b");out.write("<br>");out.write(infob);//request.getRequestDispatcher("BB.jsp").forward(request, response);  %><br><h4>说明session对象能不能共享数据和浏览器有关</h4><!--  对象三  Session--><%session.setAttribute("ccc", "我是session的数据存放的范围是第二大的数据");session.setAttribute("cc", "我是session的数据存放的范围是第二大的数据1003@@@");String c=(String)session.getAttribute("ccc");	String cc=(String)session.getAttribute("cc");	out.write(c);out.write(cc);%><h4>这是application对象的数据与服务器有关,只要服务器不停止,数据都能共享</h4><!-- 对象四  范围最大 --><%pageContext.setAttribute("ddd", "我是application的数据存放的范围是第一大的数据",PageContext.APPLICATION_SCOPE);
String d=(String)application.getAttribute("ddd");
application.setAttribute("dd", "我是application创建的第二个数据类型是one.two");
String dd=(String)application.getAttribute("dd");
out.write("<br>");
out.write(d);
pageContext.getOut().write(dd);application.setAttribute("e", "我是application创建的第三个数据类型是one.tree");
String e=(String)application.getAttribute("e");
pageContext.getOut().write(e);application.setAttribute("f", "我是application创建的第三个数据类型是one.four");
String f=(String)application.getAttribute("f");
pageContext.getOut().write(f);%><!-- //out.write("aaaaa");pageContext.getOut().write("这是由pageContext管理的对象哦"); --><h1>--------------------对象五的获取 pageContext.getOut()</h1><%
//创建日历类Calendar  calendar =Calendar.getInstance();int AM_PM=calendar.get(calendar.AM_PM);if(AM_PM==calendar.AM){pageContext.getOut().write("<h1 style=' color:red'>获取上午时间</h1>");}else if(AM_PM==calendar.PM){pageContext.getOut().write("<h1 style=' color:green'>获取下午时间</h1>");}%>
<h1>-------------page-------------对象六 </h1><%
pageContext.getOut().write((page.equals(this)?"page是当前对象":"page不是当前对象"));
%>con
<h1>--------------------------对象7 ----Confign  </h1><%
String name = config.getServletName();
out.write(name);%>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
*{font-size: 30px;font-weight: bold;background: red;color: yellow;}
h4{
color: red;
}
</style>
<title>Insert title here</title>
</head>
<body><h1>--------------------对象二  request的获取</h1>
<%  
//方法一    request对象自己直接获得数据
String b=(String)request.getAttribute("b");
//方法二   pageContext帮request获得数据
//String b=(String)pageContext.getAttribute("b", PageContext.REQUEST_SCOPE);
out.write("我获得了AA.jsp页面的request对象的数据:"+b);%><h1>--------------------对象一不能获取成功</h1><%/*  String info=(String)pageContext.getAttribute("aaa");
out.write(info);  */%><hr>
<h1>--------------------对象三的获取</h1>
<%//方法一    使用session直接获得数据
String c=(String)session.getAttribute("ccc");
//方法二   pageContext帮session获得数据
String cc=(String)pageContext.getAttribute("cc", PageContext.SESSION_SCOPE);
out.write("我获得了AA.jsp页面的session对象的数据:"+c);
out.write("我获得了AA.jsp页面的session对象的数据:"+cc);%><hr>
<h1>--------------------对象四的获取</h1>
<%
//方法一
//String ddd=(String)application.getAttribute("ddd");String ddd=(String)pageContext.getAttribute("ddd",PageContext.APPLICATION_SCOPE);
out.write("我获得了AA.jsp页面的application对象的数据:"+ddd);String e=(String)application.getAttribute("e");
pageContext.getOut().write(e+"这是对象e");
%>
<hr>
<h1></body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
*{font-size: 30px;font-weight: bold;background: red;color: yellow;}
h4{
color: red;
}
</style>
</head>
<body>
<% String info=request.getParameter("jsp"); %>
<div style="width: 100%;height: 400px;background-color: pink;"><%=info %></div>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
*{font-size: 30px;font-weight: bold;background: red;color: yellow;}
h4{
color: red;
}
</style>
</head>
<body>
<div style="width: 900px;height: 800px;background-color: green;margin: auto;" >
<!-- 头部 -->
<jsp:include page="head.jsp"><jsp:param value="head" name="jsp"/>
</jsp:include><!-- 中部 -->
<jsp:include page="center.jsp"><jsp:param value="center" name="jsp"/>
</jsp:include><!-- 底部 -->
<jsp:include page="foot.jsp"><jsp:param value="foot" name="jsp"/>
</jsp:include></div>
</body>
</html><%@page import="com.Student.Student"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
*{background-image: linear-gradient(0deg,  red, whitesmoke);font-size: 25px;text-shadow: 1px 1px 1px pink;font-weight: bolder;border:   lavender 1px;color: white;}
</style>
<style type="text/css">
*{font-size: 30px;font-weight: bold;background: red;color: yellow;}
h4{
color: red;
}
</style>
</head><body><h3>获得Java方式存储的学生的注册信息</h3><%  Student student=(Student)application.getAttribute("stu"); %>
<p>学号:<%=student.getId() %></p>
<p>姓名:<%=student.getName() %></p>
<p>年龄:<%=student.getAge() %></p>
<p>性别:<%=student.getSex() %></p>
<p>手机号:<%=student.getPhone() %></p>
<p>家庭地址:<%=student.getAddr() %></p> <br><br><br><h3>获得Jsp动作的方式存储的学生的注册信息</h3>
<jsp:useBean id="s" class="com.Student.Student" scope="application"></jsp:useBean>
<p>学号:<jsp:getProperty property="id" name="s"/></p>
<p>姓名:<jsp:getProperty property="name" name="s"/></p>
<p>年龄:<jsp:getProperty property="age" name="s"/></p>
<p>性别:<jsp:getProperty property="sex" name="s"/></p>
<p>手机号:<jsp:getProperty property="phone" name="s"/></p>
<p>家庭地址:<jsp:getProperty property="addr" name="s"/></p></body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<style type="text/css">
*{font-size: 30px;font-weight: bold;background: red;color: yellow;}
h4{
color: red;
}
</style>
<% String info=request.getParameter("jsp"); %>
<div style="width: 100%;height: 200px;background-color: blue;"><%=info %></div>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%><%@page import="com.Student.Student"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<style type="text/css">
*{font-size: 30px;font-weight: bold;background: red;color: yellow;}
h4{
color: red;
}
</style><h1>第四个页面</h1><!-- 接收注册页面发送过来的数据 --><%//因为表单提交的数据方式是post请求,数据是不会经过tomcat转换编码格式//数据是内部传输,这时候需要我们手动转换编码格式request.setCharacterEncoding("UTF-8");String id=request.getParameter("id");String name=request.getParameter("name");String age=request.getParameter("age");String sex=request.getParameter("sex");String phone=request.getParameter("phone");String addr=request.getParameter("addr");//将接收的数据封装到对象中,方便发送数据Student student=new Student(id,name,Integer.parseInt(age),sex,phone,addr);application.setAttribute("stu", student);
%> <!-- 方式二:采用jsp动作获得表单提交过来的数据 
Student s=new Student();
application.setAttribute("s",s);
-->
<jsp:useBean id="s" class="com.Student.Student" scope="application"></jsp:useBean>
<jsp:setProperty property="*" name="s"/><!-- 使用重定向方式跳转至five.jsp页面展示存储的学生信息 -->
<%response.sendRedirect("Five.jsp");
%>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<style type="text/css">
*{font-size: 30px;font-weight: bold;background: red;color: yellow;}
h4{
color: red;
}
</style>
<% String info=request.getParameter("jsp"); %>
<div style="width: 100%;height: 200px;background-color: red;"><%=info %></div>
</body>
</html><%@page import="com.Student.Student"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
*{
font-size: 18px;
}
</style>
<style type="text/css">
*{font-size: 30px;font-weight: bold;background: red;color: yellow;}
h4{
color: red;
}
</style>
</head>
<%-- pageContrxt  request  session application  --%>
<!-- 比如 学生信息 : 学号 手机号 年龄 家庭地址 性别   --><h1>==============方案一存储数据============</h1><%
session.setAttribute("name", "小YI");
session.setAttribute("id", "007");
session.setAttribute("phone", "123456789123");
session.setAttribute("age", "21");
session.setAttribute("addr", "江西南昌");
session.setAttribute("sex", "男");%><h1>==============方案二存储数据============</h1>
<!-- //因为存储的数据会随着项目的功能而不断增加,因此再数据量非常多的时候,不适合采用每一个数据单独存储//使用类的封装----JavaBean--><%Student student=new Student("007","小明二号",20,"男","18188888888","江西省南昌市");
session.setAttribute("student", student); 
%><h1>方案三:利用一个JSP动作将数据存储起来</h1><jsp:useBean id="a" class="com.Student.Student" scope="session"></jsp:useBean><!-- scope="四大域的名称 session application resquest pagecontext" -->
<%-- 使用的id  id表示使用的类的对象   class表示完整包的路径--%>
<!--等价于:Student student =new Student()session.setAttribute("student", student);stu 对象明   scope 四大域 scope="session"--><%a.setId("1003");a.setName("小明三号");a.setAge(23);a.setSex("男");a.setAddr("南昌");a.setPhone("1244444444444");	%><h1>方案四:利用二个JSP动作将数据存储起来</h1>
<hr>
<!--完全使用jsp动作将数据放入四大域 存储起来 -->
<!-- page代表的是pageContext  resquest 代表 resquest  session代表的是session对象 appliction 代表appliction对象 -->
<jsp:useBean id="stu1" class="com.Student.Student" scope="session"></jsp:useBean>
<!-- 赋值 --><%--
property: 属性的名称name:对象的名称value:对象赋值的数据--%><!--用于给上面动作所创建的对象的全局变量进行赋值  -->
<jsp:setProperty property="id" name="stu1" value="1004"/>
<jsp:setProperty property="name" name="stu1" value="小红四号"/>
<jsp:setProperty property="age" name="stu1" value="23"/>
<jsp:setProperty property="sex" name="stu1" value="男"/>
<jsp:setProperty property="phone" name="stu1" value="123456678"/>
<jsp:setProperty property="addr" name="stu1" value="江西南昌"/></body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>数据类</title>
<style type="text/css">
*{color: red;
color: green;
}<style type="text/css">
*{font-size: 30px;font-weight: bold;background: red;color: yellow;}
h4{
color: red;
}
</style></style>
</head>
<body>
<h1>方案一:利用二个JSP动作将数据存储起来</h1>
<!--完全使用jsp动作将数据放入四大域 存储起来 -->
<!-- 创建javaBean类的对象  -->
<h1>第一个标签动作解析:&nbsp; jsp:useBean<br>
@1 id           对象的名称                        <br>
@2 class         对象存放在的哪个路径                        <br>
@3 scope            四大域的名称  application session     pageContext      resquest                     <br>
</h1>
<hr>
<h1>第二个标签动作解析&nbsp;  设置对象里的数据  jsp:setproperty@1 id    对象的属性@2 name   对象的名称@3  value     对象名称对应的值
</h1>
<hr>
<h1>第三个标签动作解析&nbsp;获取对象里的数据  jsp:getetproperty@1 id    对象的属性@2 name   对象的名称@3  value     对象名称对应的值
</h1><jsp:useBean id="people" class="com.People.People" scope="application"></jsp:useBean>
<jsp:setProperty property="id" name="people" value="1001"/>
<jsp:setProperty property="name" name="people" value="小红一号"/>
<jsp:setProperty property="age" name="people" value="23"/>
<jsp:setProperty property="sex" name="people" value="男"/>
<jsp:setProperty property="phone" name="people" value="123456678"/>
<jsp:setProperty property="addr" name="people" value="江西南昌"/>
<jsp:setProperty property="height" name="people" value="189cm"/>
<jsp:setProperty property="weight" name="people" value="64kg"/>
<jsp:setProperty property="phone" name="people" value="123456678"/>
<jsp:setProperty property="a" name="people" value="a属性是人皮肤的色彩pink"/>
<jsp:setProperty property="b" name="people" value="b属性是人穿衣服的color"/>
<jsp:setProperty property="c" name="people" value="b属性是人类未知的属性"/><hr>
<h2>创建第二个人</h2>
<jsp:useBean id="people2" class="com.People.People" scope="application"></jsp:useBean>
<jsp:setProperty property="id" name="people2" value="1002"/>
<jsp:setProperty property="name" name="people2" value="小明二号"/>
<jsp:setProperty property="age" name="people2" value="23"/>
<jsp:setProperty property="sex" name="people2" value="男"/>
<jsp:setProperty property="phone" name="people2" value="123456678"/>
<jsp:setProperty property="addr" name="people2" value="江西南昌"/>
<jsp:setProperty property="height" name="people2" value="189cm"/>
<jsp:setProperty property="weight" name="people2" value="64kg"/>
<jsp:setProperty property="phone" name="people2" value="123456678"/>
<jsp:setProperty property="a" name="people2" value="a属性是人皮肤的色彩green"/>
<jsp:setProperty property="b" name="people2" value="b属性是人穿衣服的color"/>
<jsp:setProperty property="c" name="people2" value="b属性是人类未知的属性"/><h2>创建第三个人</h2>
<jsp:useBean id="people3" class="com.People.People" scope="application"></jsp:useBean>
<jsp:setProperty property="id" name="people3" value="1003"/>
<jsp:setProperty property="name" name="people3" value="小户三号"/>
<jsp:setProperty property="age" name="people3" value="23"/>
<jsp:setProperty property="sex" name="people3" value="男"/>
<jsp:setProperty property="phone" name="people3" value="123456678"/>
<jsp:setProperty property="addr" name="people3" value="江西南昌"/>
<jsp:setProperty property="height" name="people3" value="189cm"/>
<jsp:setProperty property="weight" name="people3" value="64kg"/>
<jsp:setProperty property="phone" name="people3" value="123456678"/>
<jsp:setProperty property="a" name="people3" value="a属性是人皮肤的色彩red"/>
<jsp:setProperty property="b" name="people3" value="b属性是人穿衣服的color"/>
<jsp:setProperty property="c" name="people3" value="b属性是人类未知的属性"/><h2>创建第四个人</h2>
<jsp:useBean id="people31" class="com.People.People" scope="application"></jsp:useBean>
<jsp:setProperty property="id" name="people31" value="1004"/>
<jsp:setProperty property="name" name="people31" value="小户三号"/>
<jsp:setProperty property="age" name="people31" value="23"/>
<jsp:setProperty property="sex" name="people31" value="男"/>
<jsp:setProperty property="phone" name="people31" value="123456678"/>
<jsp:setProperty property="addr" name="people31" value="江西南昌"/>
<jsp:setProperty property="height" name="people31" value="189cm"/>
<jsp:setProperty property="weight" name="people31" value="64kg"/>
<jsp:setProperty property="phone" name="people31" value="123456678"/>
<jsp:setProperty property="a" name="people31" value="a属性是人皮肤的色彩red"/>
<jsp:setProperty property="b" name="people31" value="b属性是人穿衣服的color"/>
<jsp:setProperty property="c" name="people31" value="b属性是人类未知的属性"/></body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
我是第七个页面
<style type="text/css">
*{font-size: 30px;font-weight: bold;background: red;color: yellow;}
h4{
color: red;
}
</style>
<br>
<% //iso-8859-1String info=request.getParameter("username");out.print(info);//解码byte[] bs=info.getBytes("ISO-8859-1");//编码String info1=new String(bs,"UTF-8");
%>
获得six.jsp页面携带过来的数据为:<%=info1 %>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="">
*{
color: red;
font-size: 30px;
font-weight: bold;}
</style><style type="text/css">
*{font-size: 30px;font-weight: bold;background: red;color: yellow;}
h4{
color: red;
}
</style>
</head>
<body>
<h1> 取出数据内容</h1><jsp:useBean id="people" class="com.People.People" scope="application"></jsp:useBean>
<P>出生编号:<jsp:getProperty property="id" name="people"/></P>
<P>姓名:<jsp:getProperty property="name" name="people"/></P>
<P>年龄:<jsp:getProperty property="age" name="people"/></P>
<P>性别:<jsp:getProperty property="sex" name="people"/></P>
<P>手机号:<jsp:getProperty property="phone" name="people"/></P>
<P>家庭地址:<jsp:getProperty property="addr" name="people"/></P>
<P>身高:<jsp:getProperty property="height" name="people"/></P>
<P>体重:<jsp:getProperty property="weight" name="people"/></P>
<P>属性a:<jsp:getProperty property="a" name="people"/></P>
<P>属性b:<jsp:getProperty property="b" name="people"/></P>
<P>属性c:<jsp:getProperty property="c" name="people"/></P>
<hr>
<jsp:useBean id="people2" class="com.People.People" scope="application"></jsp:useBean>
<P>出生编号:<jsp:getProperty property="id" name="people2"/></P>
<P>姓名:<jsp:getProperty property="name" name="people2"/></P>
<P>年龄:<jsp:getProperty property="age" name="people2"/></P>
<P>性别:<jsp:getProperty property="sex" name="people2"/></P>
<P>手机号:<jsp:getProperty property="phone" name="people2"/></P>
<P>家庭地址:<jsp:getProperty property="addr" name="people2"/></P>
<P>身高:<jsp:getProperty property="height" name="people2"/></P>
<P>体重:<jsp:getProperty property="weight" name="people2"/></P>
<P>属性a:<jsp:getProperty property="a" name="people2"/></P>
<P>属性b:<jsp:getProperty property="b" name="people2"/></P>
<P>属性c:<jsp:getProperty property="c" name="people2"/></P>
<hr>
<jsp:useBean id="people3" class="com.People.People" scope="application"></jsp:useBean>
<P>出生编号:<jsp:getProperty property="id" name="people3"/></P>
<P>姓名:<jsp:getProperty property="name" name="people3"/></P>
<P>年龄:<jsp:getProperty property="age" name="people3"/></P>
<P>性别:<jsp:getProperty property="sex" name="people3"/></P>
<P>手机号:<jsp:getProperty property="phone" name="people3"/></P>
<P>家庭地址:<jsp:getProperty property="addr" name="people3"/></P>
<P>身高:<jsp:getProperty property="height" name="people3"/></P>
<P>体重:<jsp:getProperty property="weight" name="people3"/></P>
<P>属性a:<jsp:getProperty property="a" name="people3"/></P>
<P>属性b:<jsp:getProperty property="b" name="people3"/></P>
<P>属性c:<jsp:getProperty property="c" name="people3"/></P><jsp:useBean id="people31" class="com.People.People" scope="application"></jsp:useBean>
<P>出生编号:<jsp:getProperty property="id" name="people31"/></P>
<P>姓名:<jsp:getProperty property="name" name="people31"/></P>
<P>年龄:<jsp:getProperty property="age" name="people31"/></P>
<P>性别:<jsp:getProperty property="sex" name="people31"/></P>
<P>手机号:<jsp:getProperty property="phone" name="people31"/></P>
<P>家庭地址:<jsp:getProperty property="addr" name="people31"/></P>
<P>身高:<jsp:getProperty property="height" name="people31"/></P>
<P>体重:<jsp:getProperty property="weight" name="people31"/></P>
<P>属性a:<jsp:getProperty property="a" name="people31"/></P>
<P>属性b:<jsp:getProperty property="b" name="people31"/></P>
<P>属性c:<jsp:getProperty property="c" name="people31"/></P>
</body>
</html><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>学生管理系统</title>
</head>
<body>
<style type="text/css">
*{font-size: 30px;font-weight: bold;background: red;color: yellow;}
h4{
color: red;
}
</style><div align="center"><h3>注册页面</h3><form action="four.jsp" method="post"><!-- 文本框上定义的name属性的名称必须要和Student类中对应存储数据的全局变量名称保持一致 --><!-- 映射关系java    jdbc   mysql类 Student-------------表  Student全局变量id,name,age,sex---------字段名 id,name,age,sex-->学号:<input type="text" name="id"><br>姓名:<input type="text" name="name"><br>年龄:<input type="text" name="age"><br>性别:<input type="text" name="sex"><br>手机号:<input type="text" name="phone"><br>家庭地址:<input type="text" name="addr"><br><input type="submit" value="注册"></form></div>
</body>
</html><%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%><%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
*{
font-size: 30px;
}
h1{color: red;
}
h6{
color: red;
background-color: black;
}
h2{background: red;color: black;
}
h3{
background: green;
}
</style>
<title>数组集合</title>
</head>
<body><h1>数组的方式</h1>
<!-- 数组一 -->
<%
String [] grirs={"@AAAA","@BBBB","@CCCC","@DDDD","@eeee"};
session.setAttribute("gs", grirs);
%><!-- 方式一java代码 --><%
String [] gs=(String[])session.getAttribute("gs");
%><%=gs[0] %><br><%=gs[1] %><br><%=gs[2] %><br><%=gs[3] %><br><!-- 方式我二 EL表达式 -->
<h6>String [] gs=(String[])session.getAttribute("gs");
<hr>${gs[0]},${gs[1]},${gs[2]},${gs[3]},${gs[4] }<h2>----用EL表达式获取数组的方式----------</h2>
<h1>集合的方式</h1><%
List <Integer> list=new ArrayList<>();
list.add(89);
list.add(79);
list.add(69);
list.add(59);
session.setAttribute("l", list);%>
<!-- El表达式的获取 -->
${l[0]},${l[1]},${l[2]},${l[3]}<br><h1>MAP集合的方式</h1>
<h6>request.setAttribute("bo", map);</h6>
<%
Map<String,String>map =new HashMap<>();
map.put("book1","JAVA程序设计");
map.put("book2","JAVA程序设计1");
map.put("book3","JAVA程序设计2");
map.put("book4","JAVA程序设计3");
map.put("book5","JAVA程序设计4");
request.setAttribute("bo", map);%><!-- MAP集合查找  El-->
${bo.book1}<br>
${bo.book2}<br>
${bo.book3}<br>
${bo.book4}<br>
${bo.book5}<br><%-- <h1>实体类</h1>
<h6>application.setAttribute("os", odogs);</h6>
<%List <Dog> odogs =new ArrayList<>();
odogs.add(new Dog("AA",1,"pink"));
odogs.add(new Dog("BB",2,"blsck"));
odogs.add(new Dog("CC",3,"blsck")); 
application.setAttribute("os", odogs);%>
${os[1].name,$os[2].color}--%></body>
</html><%@page import="com.Student.Student"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
*{
font-size: 20px;
font-weight: bold;
}
</style>
<title>Insert title here</title>
</head>
<body>
<h1>获得数据内容</h1>
<h1>==============方案一拿到index.jsp数据============</h1><p><h1>学生个人信息</h1></p>
<P>学号:<% String id= (String)session.getAttribute("id"); 
out.write(id);%></P>
<P>姓名:<%  out.write((String)session.getAttribute("name"));%></P>
<P>年龄:<%=((String)session.getAttribute("age"))%></P>
<P>性别:<%=((String)session.getAttribute("sex"))%></P>
<P>手机号:<%=((String)session.getAttribute("phone"))%></P>
<P>家庭地址:<%=((String)session.getAttribute("addr"))%></P> <%-- 数据量不断增加 在数据量非常多的时候 不适合采用没一个数据单独放置 --%>
<!-- 类的封装 JAVA Bean --><h1>==============方案二拿到index.jsp拿数据============</h1><!-- 从session中找到存储大量数据的对象 --><%  Student student=(Student)session.getAttribute("student"); %><p>学号:<%=student.getId() %></p><p>姓名:<%=student.getName() %></p><p>年龄:<%=student.getAge() %></p><p>性别:<%=student.getSex() %></p><p>手机号:<%=student.getPhone()%></p><p>家庭地址:<%=student.getAddr() %></p> <h1>==============方案三拿到index.jsp拿数据============</h1>
<h1>方案三:利用一个JSP动作将数据存储起来</h1><jsp:useBean id="a" class="com.Student.Student" scope="session"></jsp:useBean>
<P>学号:<%a.getName();%></P>
<P>姓名:<%a.getName();%></P>
<P>年龄:<%=a.getAge()%></P>
<P>性别:<%=a.getSex()%></P>
<P>手机号:<%=a.getPhone()%></P>
<P>家庭地址:<%=a.getAddr()%></P>  <h1>================方案四拿到index.jsp拿数据=================</h1><!-- 用于获得对象中的全局变量的值  name:对象名称   property 变量名称   -->
<jsp:useBean id="stu1" class="com.Student.Student" scope="session"></jsp:useBean>
<P>学号:<jsp:getProperty property="id" name="stu1"/></P>
<P>姓名:<jsp:getProperty property="name" name="stu1"/></P>
<P>年龄:<jsp:getProperty property="age" name="stu1"/></P>
<P>性别:<jsp:getProperty property="sex" name="stu1"/></P>
<P>手机号:<jsp:getProperty property="phone" name="stu1"/></P>
<P>家庭地址:<jsp:getProperty property="addr" name="stu1"/></P></body>
</html>

 

 

 

 

 

 

 

 

 

 

 

 

查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. 【JokerのNote】Ethernet_Interface。

    将常用的网络接口总结一下&#xff0c;主要分为MAC与PHY之间的和PHY之前的&#xff0c;我们在说接口时&#xff0c;一定要注意接口所处的位置&#xff0c;MAC与PHY之间的接口大体上常用的有MII/GMII/RGMII/SGMII&#xff0c;PHY之前的常见接口主要分为1000BASE-T/1000BASE-X/10…...

    2024/4/13 20:45:02
  2. 2022/01/30

    写几个函数声明&#xff1a; void gotoxy(int x,int y); //设置光标位置 int color(int c); //更改文字颜色 void printsnake(); //字符画 void welcometogame(); //开始界面 void createMap(); //绘制地图 void scoreandtips(); //游戏界面右侧的得分和小提示 void initsnake(…...

    2024/4/13 20:45:07
  3. Java script进阶——(3)

    一、浏览器对象 1.window对象 window对象是BOM的核心&#xff0c;window对象指当前的浏览器窗口。 window对象方法: 注意:window对象重点讲解计时器。 2.JavaScript 计时器 在JavaScript中&#xff0c;我们可以在设定的时间间隔之后来执行代码&#xff0c;而不是在函数被调…...

    2024/4/13 20:45:07
  4. eigen库相关函数 .replicate()

    Matrix<fpt,13,1> full_weight; full_weight.replicate(10,1);// 不知道replicate()函数的功能是什么 &#xff1b; 看了eigen的手册后就明白了 &#xff1b;就是将你原本的矩阵(full_weight<13,1>)作为一个整体 填充这n行&#xff0c;m列的矩阵replicate(n,m); …...

    2024/4/13 20:45:02
  5. ESP32-C3通过MQTT协议把温湿度上传到阿里云物联网平台

    最近本来想实现微信小程序通过OneNet平台控制灯开关的&#xff0c;没想到微信小程序代码都写好接口了&#xff0c;才发现onenet想下发命令的应用管理得要钱了&#xff0c;秉承白嫖绝不白给的精神&#xff0c;毅然决然的转用阿里云平台。 文章目录一、阿里云平台1.1开通公共实例…...

    2024/4/19 18:54:39
  6. docker部署tomcat以及web应用

    1.部署成功前提 服务器上已经安装docker8080端口已开放 2.开始安装tomcat 2.1 拉取镜像 docker pull tomcat2.2 查看所有镜像 docker images2.3 启动docker镜像 docker run –d -p 8080:8080 tomcat # 注意&#xff0c;这个启动命令不要频繁使用&#xff0c;否则使用一次…...

    2024/4/13 20:45:22
  7. 【SpringBoot】SpringBoot——Spring Security安全框架

    文章目录6. Spring Boot安全框架6.1 认识Spring Security6.1.1 入门项目6.1.2 角色访问控制6.2 基于数据库的认证6.2.1 Spring Security基于数据库认证6.2.2 角色访问控制6.2.3 密码加密保存6.2.4 用户角色多对多关系6.2.5 角色继承6. Spring Boot安全框架 6.1 认识Spring Sec…...

    2024/5/3 3:53:46
  8. 蓝桥杯第八讲--枚举与模拟【例题】

    文章目录前言连号区间数题目要求思路分析代码递增三元组题目要求思路分析前缀和二分代码&#xff08;前缀和&#xff09;代码&#xff08;二分&#xff09;特别数的和题目要求思路分析代码错误票据题目要求思路分析代码回文日期题目要求思路分析代码前言 蓝桥杯官网&#xff1…...

    2024/4/7 19:26:31
  9. 多路icmp/tcp转发实验

    之前在cloudlab上做的都是单switch转发实验&#xff0c;这次试了多switch转发实验&#xff0c;并且在ping通&#xff08;icmp转发&#xff09;的基础上&#xff0c;增加了tcp转发&#xff0c;实验拓扑如上图 controller代码如下&#xff1a; from ryu.base import app_manage…...

    2024/4/18 1:28:06
  10. 分布式存储公链评估模型

    1.架构设计存储容量&#xff1b; 2.去中心化程度&#xff08;物理节点&技术节点&#xff09;&#xff1b; 3.上行/下行速度&#xff1b; 4.安全性与可靠性&#xff1b; 5.高并发TPS&#xff1b; 6.可拓展性&#xff1b; 7.智能合约&#xff1b; 8.能耗比&#xff1b; 9.冗余…...

    2024/4/28 23:52:45
  11. 数据结构与算法---算法引入

    算法是独立存在的一种解决问题的方法和思想 1&#xff0c;如果 abc1000&#xff0c;且a^2b^2c^2&#xff08;a&#xff0c;b&#xff0c;c为自然数&#xff09;&#xff0c;如何求出所有a、b、c可能的组合&#xff1f; 枚举法&#xff08;一个一个去试&#xff09; a0,b0,c0…...

    2024/4/28 11:58:01
  12. python学习第二篇

    字符串&#xff1a; 1、字符串的本质是字符序列&#xff0c;python中的字符串是不可变的&#xff0c;无法修改 2、编码&#xff1a;python3直接支持Unicode编码&#xff08;16位&#xff0c;ASCII码为八位&#xff0c;是Unicode的子集&#xff09; ord()&#xff0c;将字符转…...

    2024/4/28 13:57:16
  13. opencv-python图像高通滤波与低通滤波

    opencv-python图像高通滤波与低通滤波 一、高通滤波 高通滤波原理 ​ 高通滤波意思就是让频率高的部分通过&#xff0c;衍生到图像上面来理解&#xff0c;一张图片的像素一般来说&#xff0c;在轮廓的地方频率高&#xff0c;而在其他部分频率低。 ​ 对于傅里叶变换而言&am…...

    2024/4/28 21:24:15
  14. 《Web安全之机器学习入门》笔记:第七章 7.5朴素贝叶斯检测WebShell(二)

    1.检测web shell的改进 &#xff08;1&#xff09;分词token 7.4节中web shell&#xff08;一&#xff09;中token_patternr\b\w\b 本节中web shell&#xff08;二&#xff09;中r_token_patternr\b\w\b\(|\\w\ &#xff08;2&#xff09;对黑样本的调用操作建立特征&#…...

    2024/4/27 23:52:01
  15. 嵌入式学习总结之C++(一)2进制、10进制、16进制;结构体;位运算

    这篇文章是C语言学习总结&#xff0c;目的是掌握嵌入式。有什么不足之处希望大家能指出来&#xff0c;帮助完善这篇文章。 学习网址&#xff1a; https://www.bilibili.com/video/BV1dW411v7VM?p13https://www.bilibili.com/video/BV1iy4y1i7DT?fromsearch&seid12734885…...

    2024/4/28 6:58:01
  16. 2021年提出的若干个智能优化算法整理(持续更新中...)

    文章目录 摘要 & 优化目标2021年提出的若干个智能优化算法简介1. 天鹰优化器(AO)2. 大规模优化的大雁算法(WGA)3. 非洲秃鹫优化算法(AVOA)4. 算术优化算法(AOA)5. 蜂蜜獾算法(HBA)6. 社交网络搜索算法(SNS)7. 施肥优化算法(FO)8. 澳洲野狗优化算法(DOA)9. 材料生成算法(MGA…...

    2024/4/28 1:15:08
  17. MySQL是怎样运行的——第六章

    这一章主要是B树的基础知识。 6.1 查找大体可以分成两个小步骤 定位到记录所在的页 从所在的页内查找相应的记录InnoDB引擎下&#xff0c;当我们用主键所在的列进行查找时&#xff0c;可以利用页里的Page Directory区中的槽和记录本身的顺序进行快速的查找。 而使用无索引的…...

    2024/4/28 8:05:26
  18. Bee如何应用拦截器实现多租户功能

    拦截器、多租户,请查看V1.11.0.2.1 源码...

    2024/4/28 11:34:10
  19. Bee如何应用拦截器功能

    Bee如何应用拦截器功能&#xff1f;&#xff1f; 拦截器、多租户,请查看V1.11.0.2.1 源码...

    2024/4/28 15:19:02
  20. Centos7安装Docker

    一、环境 系统&#xff1a;Centos7.9 docker版本&#xff1a;20.10.12 docker-compose版本&#xff1a;2.2.2 二、互联网环境 2.1 环境配置 # 备份镜像源 mkdir -p /etc/yum.repos.d/bak mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak/ # 下载repo curl -o /etc/yum.repo…...

    2024/4/27 23:34:29

最新文章

  1. MLP手写数字识别(3)-使用tf.data.Dataset模块制作模型输入(tensorflow)

    1、tensorflow版本查看 import tensorflow as tfprint(Tensorflow Version:{}.format(tf.__version__)) print(tf.config.list_physical_devices())2、MNIST数据集下载与预处理 (train_images,train_labels),(test_images,test_labels) tf.keras.datasets.mnist.load_data()…...

    2024/5/5 5:33:46
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/3/20 10:50:27
  3. Go语言中如何实现继承

    完整课程请点击以下链接 Go 语言项目开发实战_Go_实战_项目开发_孔令飞_Commit 规范_最佳实践_企业应用代码-极客时间 Go语言中没有传统意义上的类和继承的概念&#xff0c;但可以通过嵌入类型&#xff08;embedded types&#xff09;来实现类似的功能。嵌入类型允许一个结构…...

    2024/4/30 4:14:53
  4. WPS二次开发专题:WPS SDK实现文档打印功能

    作者持续关注WPS二次开发专题系列&#xff0c;持续为大家带来更多有价值的WPS开发技术细节&#xff0c;如果能够帮助到您&#xff0c;请帮忙来个一键三连&#xff0c;更多问题请联系我&#xff08;QQ:250325397&#xff09; 在办公场景或者家教场景中经常碰到需要对文档进行打印…...

    2024/5/1 13:31:33
  5. 【外汇早评】美通胀数据走低,美元调整

    原标题:【外汇早评】美通胀数据走低,美元调整昨日美国方面公布了新一期的核心PCE物价指数数据,同比增长1.6%,低于前值和预期值的1.7%,距离美联储的通胀目标2%继续走低,通胀压力较低,且此前美国一季度GDP初值中的消费部分下滑明显,因此市场对美联储后续更可能降息的政策…...

    2024/5/4 23:54:56
  6. 【原油贵金属周评】原油多头拥挤,价格调整

    原标题:【原油贵金属周评】原油多头拥挤,价格调整本周国际劳动节,我们喜迎四天假期,但是整个金融市场确实流动性充沛,大事频发,各个商品波动剧烈。美国方面,在本周四凌晨公布5月份的利率决议和新闻发布会,维持联邦基金利率在2.25%-2.50%不变,符合市场预期。同时美联储…...

    2024/5/4 23:54:56
  7. 【外汇周评】靓丽非农不及疲软通胀影响

    原标题:【外汇周评】靓丽非农不及疲软通胀影响在刚结束的周五,美国方面公布了新一期的非农就业数据,大幅好于前值和预期,新增就业重新回到20万以上。具体数据: 美国4月非农就业人口变动 26.3万人,预期 19万人,前值 19.6万人。 美国4月失业率 3.6%,预期 3.8%,前值 3…...

    2024/5/4 23:54:56
  8. 【原油贵金属早评】库存继续增加,油价收跌

    原标题:【原油贵金属早评】库存继续增加,油价收跌周三清晨公布美国当周API原油库存数据,上周原油库存增加281万桶至4.692亿桶,增幅超过预期的74.4万桶。且有消息人士称,沙特阿美据悉将于6月向亚洲炼油厂额外出售更多原油,印度炼油商预计将每日获得至多20万桶的额外原油供…...

    2024/5/4 23:55:17
  9. 【外汇早评】日本央行会议纪要不改日元强势

    原标题:【外汇早评】日本央行会议纪要不改日元强势近两日日元大幅走强与近期市场风险情绪上升,避险资金回流日元有关,也与前一段时间的美日贸易谈判给日本缓冲期,日本方面对汇率问题也避免继续贬值有关。虽然今日早间日本央行公布的利率会议纪要仍然是支持宽松政策,但这符…...

    2024/5/4 23:54:56
  10. 【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响

    原标题:【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响近日伊朗局势升温,导致市场担忧影响原油供给,油价试图反弹。此时OPEC表态稳定市场。据消息人士透露,沙特6月石油出口料将低于700万桶/日,沙特已经收到石油消费国提出的6月份扩大出口的“适度要求”,沙特将满…...

    2024/5/4 23:55:05
  11. 【外汇早评】美欲与伊朗重谈协议

    原标题:【外汇早评】美欲与伊朗重谈协议美国对伊朗的制裁遭到伊朗的抗议,昨日伊朗方面提出将部分退出伊核协议。而此行为又遭到欧洲方面对伊朗的谴责和警告,伊朗外长昨日回应称,欧洲国家履行它们的义务,伊核协议就能保证存续。据传闻伊朗的导弹已经对准了以色列和美国的航…...

    2024/5/4 23:54:56
  12. 【原油贵金属早评】波动率飙升,市场情绪动荡

    原标题:【原油贵金属早评】波动率飙升,市场情绪动荡因中美贸易谈判不安情绪影响,金融市场各资产品种出现明显的波动。随着美国与中方开启第十一轮谈判之际,美国按照既定计划向中国2000亿商品征收25%的关税,市场情绪有所平复,已经开始接受这一事实。虽然波动率-恐慌指数VI…...

    2024/5/4 23:55:16
  13. 【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试

    原标题:【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试美国和伊朗的局势继续升温,市场风险情绪上升,避险黄金有向上突破阻力的迹象。原油方面稍显平稳,近期美国和OPEC加大供给及市场需求回落的影响,伊朗局势并未推升油价走强。近期中美贸易谈判摩擦再度升级,美国对中…...

    2024/5/4 23:54:56
  14. 【原油贵金属早评】市场情绪继续恶化,黄金上破

    原标题:【原油贵金属早评】市场情绪继续恶化,黄金上破周初中国针对于美国加征关税的进行的反制措施引发市场情绪的大幅波动,人民币汇率出现大幅的贬值动能,金融市场受到非常明显的冲击。尤其是波动率起来之后,对于股市的表现尤其不安。隔夜美国股市出现明显的下行走势,这…...

    2024/5/4 18:20:48
  15. 【外汇早评】美伊僵持,风险情绪继续升温

    原标题:【外汇早评】美伊僵持,风险情绪继续升温昨日沙特两艘油轮再次发生爆炸事件,导致波斯湾局势进一步恶化,市场担忧美伊可能会出现摩擦生火,避险品种获得支撑,黄金和日元大幅走强。美指受中美贸易问题影响而在低位震荡。继5月12日,四艘商船在阿联酋领海附近的阿曼湾、…...

    2024/5/4 23:54:56
  16. 【原油贵金属早评】贸易冲突导致需求低迷,油价弱势

    原标题:【原油贵金属早评】贸易冲突导致需求低迷,油价弱势近日虽然伊朗局势升温,中东地区几起油船被袭击事件影响,但油价并未走高,而是出于调整结构中。由于市场预期局势失控的可能性较低,而中美贸易问题导致的全球经济衰退风险更大,需求会持续低迷,因此油价调整压力较…...

    2024/5/4 23:55:17
  17. 氧生福地 玩美北湖(上)——为时光守候两千年

    原标题:氧生福地 玩美北湖(上)——为时光守候两千年一次说走就走的旅行,只有一张高铁票的距离~ 所以,湖南郴州,我来了~ 从广州南站出发,一个半小时就到达郴州西站了。在动车上,同时改票的南风兄和我居然被分到了一个车厢,所以一路非常愉快地聊了过来。 挺好,最起…...

    2024/5/4 23:55:06
  18. 氧生福地 玩美北湖(中)——永春梯田里的美与鲜

    原标题:氧生福地 玩美北湖(中)——永春梯田里的美与鲜一觉醒来,因为大家太爱“美”照,在柳毅山庄去寻找龙女而错过了早餐时间。近十点,向导坏坏还是带着饥肠辘辘的我们去吃郴州最富有盛名的“鱼头粉”。说这是“十二分推荐”,到郴州必吃的美食之一。 哇塞!那个味美香甜…...

    2024/5/4 23:54:56
  19. 氧生福地 玩美北湖(下)——奔跑吧骚年!

    原标题:氧生福地 玩美北湖(下)——奔跑吧骚年!让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 啊……啊……啊 两…...

    2024/5/4 23:55:06
  20. 扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!

    原标题:扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!扒开伪装医用面膜,翻六倍价格宰客!当行业里的某一品项火爆了,就会有很多商家蹭热度,装逼忽悠,最近火爆朋友圈的医用面膜,被沾上了污点,到底怎么回事呢? “比普通面膜安全、效果好!痘痘、痘印、敏感肌都能用…...

    2024/5/4 2:59:34
  21. 「发现」铁皮石斛仙草之神奇功效用于医用面膜

    原标题:「发现」铁皮石斛仙草之神奇功效用于医用面膜丽彦妆铁皮石斛医用面膜|石斛多糖无菌修护补水贴19大优势: 1、铁皮石斛:自唐宋以来,一直被列为皇室贡品,铁皮石斛生于海拔1600米的悬崖峭壁之上,繁殖力差,产量极低,所以古代仅供皇室、贵族享用 2、铁皮石斛自古民间…...

    2024/5/4 23:55:16
  22. 丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者

    原标题:丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者【公司简介】 广州华彬企业隶属香港华彬集团有限公司,专注美业21年,其旗下品牌: 「圣茵美」私密荷尔蒙抗衰,产后修复 「圣仪轩」私密荷尔蒙抗衰,产后修复 「花茵莳」私密荷尔蒙抗衰,产后修复 「丽彦妆」专注医学护…...

    2024/5/4 23:54:58
  23. 广州械字号面膜生产厂家OEM/ODM4项须知!

    原标题:广州械字号面膜生产厂家OEM/ODM4项须知!广州械字号面膜生产厂家OEM/ODM流程及注意事项解读: 械字号医用面膜,其实在我国并没有严格的定义,通常我们说的医美面膜指的应该是一种「医用敷料」,也就是说,医用面膜其实算作「医疗器械」的一种,又称「医用冷敷贴」。 …...

    2024/5/4 23:55:01
  24. 械字号医用眼膜缓解用眼过度到底有无作用?

    原标题:械字号医用眼膜缓解用眼过度到底有无作用?医用眼膜/械字号眼膜/医用冷敷眼贴 凝胶层为亲水高分子材料,含70%以上的水分。体表皮肤温度传导到本产品的凝胶层,热量被凝胶内水分子吸收,通过水分的蒸发带走大量的热量,可迅速地降低体表皮肤局部温度,减轻局部皮肤的灼…...

    2024/5/4 23:54:56
  25. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  26. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  27. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  28. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  29. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  30. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  31. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  32. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  33. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  34. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  35. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  36. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  37. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  38. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  39. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  40. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  41. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  42. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  43. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  44. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57