Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
executable file
·
27 lines (25 loc) · 719 Bytes

File metadata and controls

executable file
·
27 lines (25 loc) · 719 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@page import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>HelloWorld</title>
</head>
<body>
<!-- 这是HTML的注释,浏览器可见! -->
<p>Hello World!</p>
<%-- ...... --%>
<% Date today = new Date();
int hours = today.getHours();
if (hours >0 && hours<12) {
out.println("早上好!");
}else {
out.println("下午好!");
}
%>
<%-- 这是JSP的注释!应该看不见 --%>
<% out.println("Hello World!"); %>
</body>
</html>
Morty Proxy This is a proxified and sanitized view of the page, visit original site.