-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNewFile1.jsp
More file actions
42 lines (41 loc) · 795 Bytes
/
Copy pathNewFile1.jsp
File metadata and controls
42 lines (41 loc) · 795 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<script>
function on_click() {
var a,b;
a=<%=getA()%>;
b=<%=b%>;
alert(a);
<%-- var c=<%=getN(a,b)%>;
if(c)
alert("true");
else
alert("false"); --%>
}
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%!
String s;
int a;
int b;
public int getA(){
return a;
}
public boolean getN(int m,int n){
if(m>n) return false;
else return true;
}
%>
<%
a=1;
b=2;
s="hello"; %>
<input type="button" value="enter" onclick="on_click()">
</body>
</html>