-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjsp.txt
More file actions
47 lines (43 loc) · 1.35 KB
/
jsp.txt
File metadata and controls
47 lines (43 loc) · 1.35 KB
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
43
44
45
46
47
//Demonstrate the use of JSP
//JSP file
<html>
<head>
<title>userInfo</title>
</head>
<body>
<h2>
<% String username=request.getParameter("uname");
String password=request.getParameter("pass");
out.print("Name:"+username+" Password:"+password);
%>
</h2>
</body>
</html>
//HTML File
<html>
<head>
<title>Enter username and Password</title>
</head>
<body><br><br><br><br>
<center><h2><form action="userInfo.jsp">
Enter User Name: <input type="text" name="uname"/> <br><br>
Enter Password: <input type="password" name="pass" /><br><br>
<input type="submit" value="SUBMIT DETAILS"/>
</form></h2></center>
</body>
</html>
test> show dbs
test>db.Students.insertOne({ "stud_name": "Maya", "class": "TYBBA_CA", "percentage":80})
test>db.Students.insertMany([{"stud_name": "Vedant", "class": "SYBBA_CA", "percentage":85},
{ "stud_name": "Supriya", "class": "TYBBA_CA", "percentage":56},
{"stud_name": "Smita", "class": "TYBBA_CA", "percentage":90}])
Test> db.Students.find()
Test> db.Students.find().pretty()
Test> db.Students.find({"class":{$eq:"TYBBA_CA"}});
Test> db.Students.find({"class":{$ne:"TYBBA_CA"}});
Test>db.Students.find({"percentage":{$in:[80,90]}});
Test>db.Students.find({"percentage":{$gt:80}});
Test>db.Students.find.count();
Test>db.Students.find.limit(3);
Test>db.Students.updateOne({"stud_name":"Maya"},{$set:{percentage:90}});
Test>db.dropDatabase();