首页 > 代码库 > JSP
JSP
熟练使用page指令及各属性的配置
熟练使用include指令来包含各种文件
了解使用taglib指令来引入标签库,并定义其前缀
<%@ 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="http://www.mamicode.com/">
<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="http://www.mamicode.com/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