Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CS209_2018
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clemens Kupke
CS209_2018
Commits
1eeed1fb
Commit
1eeed1fb
authored
6 years ago
by
Clemens Kupke
Browse files
Options
Downloads
Patches
Plain Diff
removed password
parent
ea03d72a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lab1/lab15.jsp
+1
-1
1 addition, 1 deletion
lab1/lab15.jsp
with
1 addition
and
1 deletion
lab1/lab15.jsp
+
1
−
1
View file @
1eeed1fb
...
...
@@ -6,7 +6,7 @@
<title>
JSP Example
</title></head><body><table>
<%
Class
.
forName
(
"org.postgresql.Driver"
);
Connection
dbconn
=
DriverManager
.
getConnection
(
"jdbc:postgresql://devweb2018.cis.strath.ac.uk:5432/postgres"
,
"
clemens"
,
"ben30mk
"
);
Connection
dbconn
=
DriverManager
.
getConnection
(
"jdbc:postgresql://devweb2018.cis.strath.ac.uk:5432/postgres"
,
"
<
USERNAME
>
","
<
PASSWORD
>
");
Statement sql = dbconn.createStatement();
ResultSet results = sql.executeQuery("
SELECT
ename
FROM
emp
where
empno
>
=
7700
");
while(results.next())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment