mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 06:58:54 +00:00
feat: Using text blocks instead of String literals (#2791)
This commit is contained in:
@@ -40,9 +40,14 @@ import java.io.PrintWriter;
|
||||
public final class AppServlet extends HttpServlet {
|
||||
private static final String CONTENT_TYPE = "text/html";
|
||||
private String msgPartOne = "<h1>This Server Doesn't Support";
|
||||
private String msgPartTwo = "Requests</h1>\n"
|
||||
+ "<h2>Use a GET request with boolean values for the following parameters<h2>\n"
|
||||
+ "<h3>'name'</h3>\n<h3>'bus'</h3>\n<h3>'sports'</h3>\n<h3>'sci'</h3>\n<h3>'world'</h3>";
|
||||
private String msgPartTwo = """
|
||||
Requests</h1>
|
||||
<h2>Use a GET request with boolean values for the following parameters<h2>
|
||||
<h3>'name'</h3>
|
||||
<h3>'bus'</h3>
|
||||
<h3>'sports'</h3>
|
||||
<h3>'sci'</h3>
|
||||
<h3>'world'</h3>""";
|
||||
|
||||
private String destination = "newsDisplay.jsp";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user