81,091
社区成员
发帖
与我相关
我的任务
分享
<%@page language="java" contentType="text/html; charset=gb2312"%>
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
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>My JSP 'HelloWorld.jsp' starting page</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>
<!-- 嵌入JSP代码 -->
<%
for(int i = 3; i < 5; i++){
%>
<font size=<%=i %>><strong>世界,你好!</strong></font>
<!-- 嵌入JSP代码 -->
<%
}
%>
<%--这里的注释不会被编译,在客户端 --%>
<% //这里的注释不会被编译,在客户端 %>
</body>
</html>