熟練使用page指令及各屬性的配置css
熟練使用include指令來包含各類文件html
瞭解使用taglib指令來引入標籤庫,並定義其前綴java
<%@ page language="java" import="java.util.*" pageEncoding="GB2312" info="this is jsp" contentType=""%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>導入java 包</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="styles.css">
-->
</head>
<body>
This is my JSP page. <br>
<%
ArrayList list=new ArrayList();
list.add("C語言");
list.add("C++語言");
list.add("Java語言");%>
<%=list.get(0) %>
<%=list.get(1) %>
<%=list.get(2) %>
</body>
</html>
今天學習的挺匆忙的,但仍是堅持完成了今天的任務,非常不錯,至少明白了很多,正在一步步瞭解java瞭解這種語言jsp
我也漸漸喜歡這種語言!!!學習