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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Charlie Darques
S4a021 Web Backend
Commits
f668b8b8
Commit
f668b8b8
authored
2 months ago
by
Charlie Darques
Browse files
Options
Downloads
Patches
Plain Diff
modif formulaire pour poster un message en cours
parent
9730d62f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
WEB-INF/src/controleurs/Feed.java
+11
-1
11 additions, 1 deletion
WEB-INF/src/controleurs/Feed.java
with
12 additions
and
1 deletion
README.md
+
1
−
0
View file @
f668b8b8
...
...
@@ -28,6 +28,7 @@
-
feuile de style
**YANNIS**
-
structure html page d'accueil
**CHARLIE**
-
corriger bug followThread (la requête n'est pas effectuée lors de l'appel de la méthode)
-
gestion des réactions (like/unlike)
**CHARLIE**
-
fonctionnalité poster un message texte
**DUO**
-
durée de vie des messages
...
...
This diff is collapsed.
Click to expand it.
WEB-INF/src/controleurs/Feed.java
+
11
−
1
View file @
f668b8b8
...
...
@@ -56,7 +56,17 @@ public class Feed extends HttpServlet {
out
.
println
(
"<div class=\"message\">"
);
out
.
println
(
"<h3 class=\"msgThread\">"
+
msgThread
.
getThreadName
()
+
"</h3>"
);
out
.
println
(
"<p class=\"msgContent\">"
+
message
.
getContent
()
+
"</p>"
);
out
.
println
(
"<form><button class=\"react\" type=\"submit\" value=\"Like\">Like</button>"
);
// le formulaire appelle une servlet qui poste le message et redirige vers cette page avec les messages updatés
out
.
println
(
"<form action=\"#\" method=\"post\">"
);
out
.
println
(
"<textarea id=\"message\" name=\"message\" rows=\"3\" cols=\"45\" placeholder=\"Post a message in this thread\"></textarea>"
);
out
.
println
(
"<button type=\"submit\">Post</button>"
);
out
.
println
(
"</form>"
);
// like/unlike : formulaire
// donc appel d'une servlet qui n'exécute que du code pour appeler la méthode de réaction au message
// et redirection sur cette page qui affiche pour chaque message s'il est liké ou pas (voir comment faire pour l'affichage)
out
.
println
(
"<form><button class=\"react\" type=\"submit\" value=\"Like\">Like</button></form>"
);
out
.
println
(
"</div>"
);
}
}
...
...
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