Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
S4a021 Web Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Charlie Darques
S4a021 Web Backend
Commits
168fda7a
Commit
168fda7a
authored
3 months ago
by
Charlie Darques
Browse files
Options
Downloads
Patches
Plain Diff
début d'implémentation de structure pour la page d'accueil
parent
e8c75274
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
WEB-INF/src/controleurs/Feed.java
+8
-3
8 additions, 3 deletions
WEB-INF/src/controleurs/Feed.java
WEB-INF/src/dao/UserDAO.java
+1
-3
1 addition, 3 deletions
WEB-INF/src/dao/UserDAO.java
with
9 additions
and
6 deletions
WEB-INF/src/controleurs/Feed.java
+
8
−
3
View file @
168fda7a
...
...
@@ -40,12 +40,15 @@ public class Feed extends HttpServlet {
out
.
println
(
"<html><body><meta charset=\"utf-8\">"
);
out
.
println
(
"<title>Welcome</title>"
);
out
.
println
(
"<h1>Welcome "
+
login
+
"</h1>"
);
out
.
println
(
""
);
System
.
out
.
println
(
messages
.
size
());
out
.
println
(
"<nav class=\"option_menu\">"
);
out
.
println
(
"<ul class=\"options_list\">"
);
out
.
println
(
"<li class=\"option\">"
);
out
.
println
(
"<h2>Recent messages</h2>"
);
out
.
println
(
"<h2>Discover</h2>"
);
for
(
Message
message
:
messages
)
{
System
.
out
.
println
(
"dans le for"
);
MyThread
msgThread
=
null
;
try
{
msgThread
=
threadDao
.
getThreadById
(
message
.
getThreadId
());
...
...
@@ -58,6 +61,8 @@ public class Feed extends HttpServlet {
out
.
println
(
"</div>"
);
}
out
.
println
(
"</body>"
);
out
.
println
(
"<footer>"
);
out
.
println
(
"Connecté en tant que "
+
login
);
...
...
This diff is collapsed.
Click to expand it.
WEB-INF/src/dao/UserDAO.java
+
1
−
3
View file @
168fda7a
...
...
@@ -24,7 +24,6 @@ public class UserDAO {
stmt
.
setString
(
2
,
password
);
stmt
.
executeUpdate
();
}
catch
(
SQLException
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
@@ -67,7 +66,6 @@ public class UserDAO {
}
catch
(
SQLException
sqle
)
{
sqle
.
printStackTrace
();
}
return
isIn
;
}
...
...
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