-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
107 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/com/example/demo2/controller/frontend/review/SubmitReviewServlet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.example.demo2.controller.frontend.review; | ||
|
||
import com.example.demo2.service.ReviewService; | ||
import jakarta.servlet.*; | ||
import jakarta.servlet.http.*; | ||
import jakarta.servlet.annotation.*; | ||
|
||
import java.io.IOException; | ||
|
||
@WebServlet(name = "SubmitReviewServlet", value = "/SubmitReviewServlet") | ||
public class SubmitReviewServlet extends HttpServlet { | ||
|
||
|
||
@Override | ||
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | ||
ReviewService reviewService = new ReviewService(request, response); | ||
reviewService.submitReview(); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/com/example/demo2/controller/frontend/review/WriteReviewServlet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.example.demo2.controller.frontend.review; | ||
|
||
import com.example.demo2.service.ReviewService; | ||
import jakarta.servlet.*; | ||
import jakarta.servlet.http.*; | ||
import jakarta.servlet.annotation.*; | ||
|
||
import java.io.IOException; | ||
|
||
@WebServlet(name = "/write_review", value = "/ServletWriteReviewServlet") | ||
public class WriteReviewServlet extends HttpServlet { | ||
@Override | ||
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | ||
ReviewService reviewService = new ReviewService(request, response); | ||
reviewService.showReviewForm(); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters