学习JavaWeb第一天

输出我的第一个HelloWorld!

 1 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
2 <%
3 String path = request.getContextPath();
4 String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
5 %>
6
7 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
8 <html>
9 <head>
10 <base href="<%=basePath%>">
11 <meta charset ="UTF-8">
12
13 <title>我的第一个网页</title>
14 <meta http-equiv="pragma" content="no-cache">
15 <meta http-equiv="cache-control" content="no-cache">
16 <meta http-equiv="expires" content="0">
17 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
18 <meta http-equiv="description" content="This is my page">
19 <!--
20 <link rel="stylesheet" type="text/css" href="styles.css">
21 -->
22 </head>
23
24 <body>
25 HelloWorld!<br>
26 </body>
27 </html>

 
<body>
HelloWorld!<br>
<h1>Hello World 1</h1>
<h2>Hello World 2</h2>
<h3>Hello World 3</h3>
<h4>Hello World 4</h4>
<h5>Hello World 5</h5>
<h6>Hello World 6</h6> </body>
</html>

 
 1 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
2 <%
3 String path = request.getContextPath();
4 String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
5 %>
6
7 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
8 <html>
9 <head>
10 <base href="<%=basePath%>">
11
12 <title>字体标记的使用</title>
13 <meta http-equiv="pragma" content="no-cache">
14 <meta http-equiv="cache-control" content="no-cache">
15 <meta http-equiv="expires" content="0">
16 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
17 <meta http-equiv="description" content="This is my page">
18 <!--
19 <link rel="stylesheet" type="text/css" href="styles.css">
20 -->
21 </head>
22
23 <body>
24 This is my JSP page. <br>
25 <font size="4" color="red" face = "隶书">
26 石家庄铁道大学 </font> <br>
27
28 <font size="5" color ="blue" face="楷书">
29 石家庄铁道大学 </font> <br>
30
31 <font size ="6" color ="gream" face ="黑体">
32 石家庄铁道大学 </font> <br>
33
34 </body>
35 </html>

 

最新文章

  1. js高级群的一些整理6月
  2. iOS 修改backBarButtonItem 中的titile 字段
  3. 【CSS3】 CSS3:弹性盒子(Flex Box)
  4. yaf扩展
  5. Docker的安装配置及使用详解
  6. 清除浮动2-父元素设置overflow:hidden
  7. SQL Server 之 锁
  8. 标准库类型vector
  9. PHP Apache Access Log 分析工具 拆分字段成CSV文件并插入Mysql数据库分析
  10. POJ1838
  11. CI(-)框架结构
  12. phpcms 列表页中,如何调用其下的所有子栏目(或特定的子栏目)?
  13. vc++项目 : error PRJ0002 : 错误的结果 1 (从“C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\rc.exe”返回)。
  14. cuda8.0环境下安装py-faster-rcnn问题总结
  15. Java开发工具(Eclipse中内容辅助键的使用)
  16. mysql互换表中两列数据
  17. AndroidStudio中各种常见快捷键记录
  18. Request method &#39;POST&#39; not supported解决办法
  19. ubuntu 16.04 安装cuda的方法
  20. javax.el.PropertyNotFoundException: Property &#39;know_id&#39; not found on type java.lang.String

热门文章

  1. 最新小样本学习综述 A Survey on Few-Shot Learning | 四大模型Multitask Learning、Embedding Learning、External Memory…
  2. day102:MoFang:后端完成对短信验证码的校验&amp;基于celery完成异步短信发送&amp;flask_jwt_extended&amp;用户登录的API接口
  3. 解决远程到 Windows 系统蓝色空白屏幕问题
  4. python zip()函数用法
  5. pytorch SubsetRandomSampler 用法和说明
  6. TMOOC-1709-小明复仇
  7. Node第三方模块nodemon和nrm
  8. Nginx(四):Keepalived+Nginx 高可用集群
  9. 手写开源ORM框架介绍
  10. Linux内核中container_of宏的详细解释