201819101028井海洋

<%--
  Created by IntelliJ IDEA.
  User: PC
  Date: 2020/9/17
  Time: 16:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>201819101028井海洋</title>
</head>
<body>

<%
    out.print("您好,井海洋的博客");
%>
<pre>
<%
    out.println("<b>使用println()方法向客户端浏览器输出文字:</b>");
    out.println("您好!");
    out.println("欢迎访问 井海洋的博客");
    out.println("博客地址:https://i.csdn.net/#/uc/profile");
%>
</pre>

<%
    out.print("你好,井海洋");
    // out.clearBuffer(); // 将缓冲区的数据清空
    out.flush(); // 先显示数据在清空缓存
    out.println("缓冲区空间:" + out.getBufferSize());
    out.print("剩余空间:" + out.getRemaining());
    out.print("AutoFlush状态:" + out.isAutoFlush());
    out.close();

%>
</body>
</html>

在这里插入图片描述
<%–
Created by IntelliJ IDEA.
User: PC
Date: 2020/9/17
Time: 16:53
To change this template use File | Settings | File Templates.
–%>
<%@ page contentType=“text/html;charset=UTF-8” language=“java” %>

201819101028井海洋(page) <%! Object object; //声明一个object型变量 %>
  • getclass()方法的返回值:<%=page.getClass()%>

%>

![在这里插入图片描述](https://img-blog.csdnimg.cn/20200917170050715.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2poeTE4MDcwMDI0MzQ=,size_16,color_FFFFFF,t_70#pic_center) <%-- Created by IntelliJ IDEA. User: PC Date: 2020/9/17 Time: 17:02 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> 201819101028井海洋(requst)
用户名:

男 女
喜欢的颜色:
紫: 绿: 蓝:
来自的地区:
内蒙古 北京 黑龙江 ![在这里插入图片描述](https://img-blog.csdnimg.cn/20200917170537578.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2poeTE4MDcwMDI0MzQ=,size_16,color_FFFFFF,t_70#pic_center) <%-- Created by IntelliJ IDEA. User: PC Date: 2020/9/17 Time: 17:06 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> 201819101028 井海洋(config) response
跳转页面到百度主页 <%//response.sendRedirect("https://www.baidu.com");%>
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200917170943761.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2poeTE4MDcwMDI0MzQ=,size_16,color_FFFFFF,t_70#pic_center) <%-- Created by IntelliJ IDEA. User: PC Date: 2020/9/17 Time: 17:10 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %>
<title>201819101028井海洋</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css" href="css/style.css">
您的名字是:
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200917171317254.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2poeTE4MDcwMDI0MzQ=,size_16,color_FFFFFF,t_70#pic_center) <%-- Created by IntelliJ IDEA. User: PC Date: 2020/9/17 Time: 17:13 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> 201819101028井海洋 <% String url = config.getInitParameter("url"); String str = config.toString(); out.print("page对象的initParameter方法:"+url+""); out.print("page对象的toString方法:"+str); %> ![在这里插入图片描述](https://img-blog.csdnimg.cn/20200917171534353.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2poeTE4MDcwMDI0MzQ=,size_16,color_FFFFFF,t_70#pic_center) <%-- Created by IntelliJ IDEA. User: PC Date: 2020/9/17 Time: 17:17 To change this template use File | Settings | File Templates. --%> <%@ page contentType="textml;charset=UTF-8" language="java" errorPage="error.jsp" %> 201819101028 井海洋 <% int a=8; int b=0; int c=a/b; %>

<%–
Created by IntelliJ IDEA.
User: PC
Date: 2020/9/17
Time: 17:18
To change this template use File | Settings | File Templates.
–%>
<%@ page contentType=“text/html;charset=UTF-8” language=“java”
pageEncoding=“UTF-8” isErrorPage=“true”%>

exception对象
异常类型:<%=exception.getClass()%>

异常信息:<%=exception.getMessage()%>
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200917172351171.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2poeTE4MDcwMDI0MzQ=,size_16,color_FFFFFF,t_70#pic_center)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值