Skip to content

Commit 4156c1d

Browse files
committed
1. db rename
2. ui fixes
1 parent 0fd435f commit 4156c1d

12 files changed

Lines changed: 58 additions & 50 deletions

src/main/java/de/rwth/idsg/steve/common/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static Connection getConnectionFromPool() {
5858
try {
5959
if (dataSource == null) {
6060
Context initContext = new InitialContext();
61-
dataSource = (DataSource) initContext.lookup("java:comp/env/jdbc/cssdb");
61+
dataSource = (DataSource) initContext.lookup("java:comp/env/jdbc/stevedb");
6262
LOG.info("DB connection pool is opened.");
6363
}
6464
con = dataSource.getConnection();

src/main/java/de/rwth/idsg/steve/html/Common.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public static String printFoot(String contextPath){
9797

9898
public static String printChargePointsMultipleSelect(HashMap<String,String> chargePointsList, String ocppVersion) {
9999
StringBuilder builder = new StringBuilder(
100-
"<b>Charge Points with OCPP v" + ocppVersion + "</b><hr>\n"
100+
"<h3><span>Charge Points with OCPP v" + ocppVersion + "</span></h3>\n"
101101
+ "<table>\n"
102102
+ "<tr><td style=\"vertical-align:top\">"
103103
+ "<input type=\"button\" value=\"Select All\" onClick=\"selectAll(document.getElementById('cp_items'))\">\n"
@@ -115,7 +115,7 @@ public static String printChargePointsMultipleSelect(HashMap<String,String> char
115115

116116
public static String printChargePointsSingleSelect(HashMap<String,String> chargePointsList, String ocppVersion) {
117117
StringBuilder builder = new StringBuilder(
118-
"<b>Charge Points with OCPP v" + ocppVersion + "</b><hr>\n"
118+
"<h3><span>Charge Points with OCPP v" + ocppVersion + "</span></h3>\n"
119119
+ "<table>\n"
120120
+ "<tr><td style=\"vertical-align:top\">Select one:</td>\n"
121121
+ "<td><select name=\"cp_items\" id=\"cp_items\" size=\"5\">\n");

src/main/java/de/rwth/idsg/steve/html/ServletChargePoints.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void doGet(HttpServletRequest request, HttpServletResponse response) thro
4343
private String printChargeBoxes() {
4444

4545
StringBuilder builder = new StringBuilder(
46-
"<b>Registered Charge Points</b><hr>\n"
46+
"<h3><span>Registered Charge Points</span></h3>\n"
4747
+ "<center>\n"
4848
+ "<table class=\"res\">\n"
4949
+ "<tr><th>chargeBoxId</th><th>endpoint_address</th><th>ocppVersion</th><th>chargePointVendor</th><th>chargePointModel</th><th>fwVersion</th></tr>\n");
@@ -100,7 +100,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr
100100

101101
private String printAddChargeBox() {
102102
StringBuilder builder = new StringBuilder(
103-
"<b>Add A New Charge Point</b><hr>\n"
103+
"<h3><span>Add A New Charge Point</span></h3>\n"
104104
+ "<center>\n"
105105
+ "<form method=\"POST\" action=\"" + contextPath + servletPath + "/add\">\n"
106106
+ "<table class=\"bc\">\n"
@@ -116,7 +116,7 @@ private String printAddChargeBox() {
116116

117117
private String printDeleteChargeBox() {
118118
StringBuilder builder = new StringBuilder(
119-
"<b>Delete A Charge Point</b><hr>\n"
119+
"<h3><span>Delete A Charge Point</span></h3>\n"
120120
+ "<center>\n"
121121
+ "<form method=\"POST\" action=\""+ contextPath + servletPath + "/delete\">\n"
122122
+ "<table class=\"bc\">\n"

src/main/java/de/rwth/idsg/steve/html/ServletHome.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void doGet(HttpServletRequest request, HttpServletResponse response) thro
3737

3838
private String printHomepage() {
3939
return
40-
"<b>Welcome!</b><hr>\n"
40+
"<h3><span>Welcome!</span></h3>\n"
4141
+ "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Qui ita affectus, beatum esse numquam probabis; Nihil opus est exemplis hoc facere longius. Itaque ab his ordiamur. Quid turpius quam sapientis vitam ex insipientium sermone pendere? Nam adhuc, meo fortasse vitio, quid ego quaeram non perspicis. Non igitur bene. Dic in quovis conventu te omnia facere, ne doleas. Duo Reges: constructio interrete. Iam enim adesse poterit.</p>\n"
4242
+ "<p>Ergo, inquit, tibi Q. Neque solum ea communia, verum etiam paria esse dixerunt. Itaque nostrum est-quod nostrum dico, artis est-ad ea principia, quae accepimus. In qua quid est boni praeter summam voluptatem, et eam sempiternam? Qui enim voluptatem ipsam contemnunt, iis licet dicere se acupenserem maenae non anteponere. Nos quidem Virtutes sic natae sumus, ut tibi serviremus, aliud negotii nihil habemus. Mihi vero, inquit, placet agi subtilius et, ut ipse dixisti, pressius. Esse enim quam vellet iniquus iustus poterat inpune. Ut in geometria, prima si dederis, danda sunt omnia.</p>\n"
4343
+ "<p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>\n"

src/main/java/de/rwth/idsg/steve/html/ServletOperationsV12.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private String printChangeAvail() {
157157
// Print the div on the right
158158
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/ChangeAvailability\">\n"
159159
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.2")
160-
+ "<b>Parameters</b><hr>\n"
160+
+ "<h3><span>Parameters</span></h3>\n"
161161
+ "<table>\n"
162162
+ "<tr><td>Connector Id (integer):</td><td><input type=\"number\" min=\"0\" name=\"connectorId\" placeholder=\"if empty, 0 = charge point as a whole\"></td></tr>\n"
163163
+ "<tr><td>Availability Type:</td><td><input type=\"radio\" name=\"availType\" value=\"Inoperative\" checked> Inoperative</td></tr>\n"
@@ -187,7 +187,7 @@ private String printChangeConf() {
187187
// Print the div on the right
188188
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/ChangeConfiguration\">\n"
189189
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.2")
190-
+ "<b>Parameters</b><hr>\n"
190+
+ "<h3><span>Parameters</span></h3>\n"
191191
+ "<table>\n"
192192
+ "<tr><td>Configuration key:</td><td>\n"
193193
+ "<select name=\"confKey\">\n"
@@ -228,7 +228,7 @@ private String printClearCache() {
228228
// Print the div on the right
229229
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/ClearCache\">\n"
230230
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.2")
231-
+ "<b>Parameters</b><hr>\n"
231+
+ "<h3><span>Parameters</span></h3>\n"
232232
+ "<center><i>No parameters required.</i></center>"
233233
+ "<div class=\"submit-button\"><input type=\"submit\" value=\"Perform\"></div>\n"
234234
+ "</form>\n</div>\n";
@@ -254,7 +254,7 @@ private String printGetDiagnostics() {
254254
// Print the div on the right
255255
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/GetDiagnostics\">\n"
256256
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.2")
257-
+ "<b>Parameters</b><hr>\n"
257+
+ "<h3><span>Parameters</span></h3>\n"
258258
+ "<table>\n"
259259
+ "<tr><td>Location (directory URI):</td><td><input type=\"text\" name=\"location\"></td></tr>\n"
260260
+ "<tr><td>Retries (integer):</td><td><input type=\"number\" min=\"0\" name=\"retries\"></td></tr>\n"
@@ -286,7 +286,7 @@ private String printRemoteStartTrans() {
286286
// Print the div on the right
287287
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/RemoteStartTransaction\">\n"
288288
+ Common.printChargePointsSingleSelect(chargePointsList, "1.2")
289-
+ "<b>Parameters</b><hr>\n"
289+
+ "<h3><span>Parameters</span></h3>\n"
290290
+ "<table>\n"
291291
+ "<tr><td>Connector Id (integer, not 0):</td><td><input type=\"number\" min=\"1\" name=\"connectorId\"></td></tr>\n"
292292
+ "<tr><td>idTag (string):</td><td><input type=\"text\" name=\"idTag\"></td></tr>\n"
@@ -315,7 +315,7 @@ private String printRemoteStopTrans() {
315315
// Print the div on the right
316316
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/RemoteStopTransaction\">\n"
317317
+ Common.printChargePointsSingleSelect(chargePointsList, "1.2")
318-
+ "<b>Parameters</b><hr>\n"
318+
+ "<h3><span>Parameters</span></h3>\n"
319319
+ "<table>\n"
320320
+ "<tr><td>Transaction Id (integer):</td><td><input type=\"number\" name=\"transactionId\"></td></tr>\n"
321321
+ "</table>\n"
@@ -343,7 +343,7 @@ private String printReset() {
343343
// Print the div on the right
344344
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/Reset\">\n"
345345
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.2")
346-
+ "<b>Parameters</b><hr>\n"
346+
+ "<h3><span>Parameters</span></h3>\n"
347347
+ "<table>\n"
348348
+ "<tr><td>Reset Type:</td><td><input type=\"radio\" name=\"resetType\" value=\"Hard\" checked> Hard</td></tr>\n"
349349
+ "<tr><td></td><td><input type=\"radio\" name=\"resetType\" value=\"Soft\"> Soft</td></tr>\n"
@@ -372,7 +372,7 @@ private String printUnlockConnector() {
372372
// Print the div on the right
373373
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/UnlockConnector\">\n"
374374
+ Common.printChargePointsSingleSelect(chargePointsList, "1.2")
375-
+ "<b>Parameters</b><hr>\n"
375+
+ "<h3><span>Parameters</span></h3>\n"
376376
+ "<table>\n"
377377
+ "<tr><td>Connector Id (integer, not 0):</td><td><input type=\"number\" min=\"1\" name=\"connectorId\"></td></tr>\n"
378378
+ "</table>\n"
@@ -400,7 +400,7 @@ private String printUpdateFirmware() {
400400
// Print the div on the right
401401
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/UpdateFirmware\">\n"
402402
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.2")
403-
+ "<b>Parameters</b><hr>\n"
403+
+ "<h3><span>Parameters</span></h3>\n"
404404
+ "<table>\n"
405405
+ "<tr><td>Location (URI):</td><td><input type=\"text\" name=\"location\"></td></tr>\n"
406406
+ "<tr><td>Retries (integer):</td><td><input type=\"number\" min=\"0\" name=\"retries\"></td></tr>\n"

src/main/java/de/rwth/idsg/steve/html/ServletOperationsV15.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ private String printChangeAvail() {
206206
// Print the div on the right
207207
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/ChangeAvailability\">\n"
208208
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.5")
209-
+ "<b>Parameters</b><hr>\n"
209+
+ "<h3><span>Parameters</span></h3>\n"
210210
+ "<table>\n"
211211
+ "<tr><td>Connector Id (integer):</td><td><input type=\"number\" min=\"0\" name=\"connectorId\" placeholder=\"if empty, 0 = charge point as a whole\"></td></tr>\n"
212212
+ "<tr><td>Availability Type:</td><td><input type=\"radio\" name=\"availType\" value=\"Inoperative\" checked> Inoperative</td></tr>\n"
@@ -243,7 +243,7 @@ private String printChangeConf() {
243243
// Print the div on the right
244244
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/ChangeConfiguration\">\n"
245245
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.5")
246-
+ "<b>Parameters</b><hr>\n"
246+
+ "<h3><span>Parameters</span></h3>\n"
247247
+ "<table>\n"
248248
+ "<tr><td>Configuration key:</td><td>\n"
249249
+ "<select name=\"confKey\">\n"
@@ -296,7 +296,7 @@ private String printClearCache() {
296296
// Print the div on the right
297297
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/ClearCache\">\n"
298298
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.5")
299-
+ "<b>Parameters</b><hr>\n"
299+
+ "<h3><span>Parameters</span></h3>\n"
300300
+ "<center><i>No parameters required.</i></center>"
301301
+ "<div class=\"submit-button\"><input type=\"submit\" value=\"Perform\"></div>\n"
302302
+ "</form>\n</div>\n";
@@ -329,7 +329,7 @@ private String printGetDiagnostics() {
329329
// Print the div on the right
330330
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/GetDiagnostics\">\n"
331331
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.5")
332-
+ "<b>Parameters</b><hr>\n"
332+
+ "<h3><span>Parameters</span></h3>\n"
333333
+ "<table>\n"
334334
+ "<tr><td>Location (directory URI):</td><td><input type=\"text\" name=\"location\"></td></tr>\n"
335335
+ "<tr><td>Retries (integer):</td><td><input type=\"number\" min=\"0\" name=\"retries\"></td></tr>\n"
@@ -368,7 +368,7 @@ private String printRemoteStartTrans() {
368368
// Print the div on the right
369369
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/RemoteStartTransaction\">\n"
370370
+ Common.printChargePointsSingleSelect(chargePointsList, "1.5")
371-
+ "<b>Parameters</b><hr>\n"
371+
+ "<h3><span>Parameters</span></h3>\n"
372372
+ "<table>\n"
373373
+ "<tr><td>Connector Id (integer, not 0):</td><td><input type=\"number\" min=\"1\" name=\"connectorId\"></td></tr>\n"
374374
+ "<tr><td>idTag (string):</td><td><input type=\"text\" name=\"idTag\"></td></tr>\n"
@@ -404,7 +404,7 @@ private String printRemoteStopTrans() {
404404
// Print the div on the right
405405
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/RemoteStopTransaction\">\n"
406406
+ Common.printChargePointsSingleSelect(chargePointsList, "1.5")
407-
+ "<b>Parameters</b><hr>\n"
407+
+ "<h3><span>Parameters</span></h3>\n"
408408
+ "<table>\n"
409409
+ "<tr><td>Transaction Id (integer):</td><td><input type=\"number\" name=\"transactionId\"></td></tr>\n"
410410
+ "</table>\n"
@@ -439,7 +439,7 @@ private String printReset() {
439439
// Print the div on the right
440440
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/Reset\">\n"
441441
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.5")
442-
+ "<b>Parameters</b><hr>\n"
442+
+ "<h3><span>Parameters</span></h3>\n"
443443
+ "<table>\n"
444444
+ "<tr><td>Reset Type:</td><td><input type=\"radio\" name=\"resetType\" value=\"Hard\" checked> Hard</td></tr>\n"
445445
+ "<tr><td></td><td><input type=\"radio\" name=\"resetType\" value=\"Soft\"> Soft</td></tr>\n"
@@ -475,7 +475,7 @@ private String printUnlockConnector() {
475475
// Print the div on the right
476476
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/UnlockConnector\">\n"
477477
+ Common.printChargePointsSingleSelect(chargePointsList, "1.5")
478-
+ "<b>Parameters</b><hr>\n"
478+
+ "<h3><span>Parameters</span></h3>\n"
479479
+ "<table>\n"
480480
+ "<tr><td>Connector Id (integer, not 0):</td><td><input type=\"number\" min=\"1\" name=\"ConnectorId\"></td></tr>\n"
481481
+ "</table>\n"
@@ -510,7 +510,7 @@ private String printUpdateFirmware() {
510510
// Print the div on the right
511511
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/UpdateFirmware\">\n"
512512
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.5")
513-
+ "<b>Parameters</b><hr>\n"
513+
+ "<h3><span>Parameters</span></h3>\n"
514514
+ "<table>\n"
515515
+ "<tr><td>Location (URI):</td><td><input type=\"text\" name=\"location\"></td></tr>\n"
516516
+ "<tr><td>Retries (integer):</td><td><input type=\"number\" min=\"0\" name=\"retries\"></td></tr>\n"
@@ -548,7 +548,7 @@ private String printReserveNow() {
548548
// Print the div on the right
549549
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/ReserveNow\">\n"
550550
+ Common.printChargePointsSingleSelect(chargePointsList, "1.5")
551-
+ "<b>Parameters</b><hr>\n"
551+
+ "<h3><span>Parameters</span></h3>\n"
552552
+ "<table>\n"
553553
+ "<tr><td>Connector Id (integer):</td><td><input type=\"number\" min=\"0\" name=\"connectorId\" placeholder=\"if empty, 0 = not for a specific connector\"></td></tr>\n"
554554
+ "<tr><td>Expiry Date (ex: 2011-12-21 11:33):</td><td><input type=\"datetime\" name=\"expiryDate\"></td></tr>\n"
@@ -586,7 +586,7 @@ private String printCancelReservation() {
586586
// Print the div on the right
587587
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/CancelReservation\">\n"
588588
+ Common.printChargePointsSingleSelect(chargePointsList, "1.5")
589-
+ "<b>Parameters</b><hr>\n"
589+
+ "<h3><span>Parameters</span></h3>\n"
590590
+ "<table>\n"
591591
+ "<tr><td>Reservation Id (integer):</td><td><input type=\"number\" min=\"0\" name=\"reservationId\"></td></tr>\n"
592592
+ "</table>\n"
@@ -621,7 +621,7 @@ private String printDataTransfer() {
621621
// Print the div on the right
622622
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/DataTransfer\">\n"
623623
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.5")
624-
+ "<b>Parameters</b><hr>\n"
624+
+ "<h3><span>Parameters</span></h3>\n"
625625
+ "<table>\n"
626626
+ "<tr><td>Vendor Id (String):</td><td><input type=\"text\" name=\"vendorId\"></td></tr>\n"
627627
+ "<tr><td>Message Id (String):</td><td><input type=\"text\" name=\"messageId\"></td></tr>\n"
@@ -659,7 +659,7 @@ private String printGetConfiguration() {
659659
// Print the div on the right
660660
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/GetConfiguration\">\n"
661661
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.5")
662-
+ "<b>Parameters</b><hr>\n"
662+
+ "<h3><span>Parameters</span></h3>\n"
663663
+ "<table>\n"
664664
+ "<tr><td style=\"vertical-align:top\">"
665665
+ "<input type=\"button\" value=\"Select All\" onClick=\"selectAll(document.getElementById('confKeys'))\">\n"
@@ -715,7 +715,7 @@ private String printGetLocalListVersion() {
715715
// Print the div on the right
716716
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/GetLocalListVersion\">\n"
717717
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.5")
718-
+ "<b>Parameters</b><hr>\n"
718+
+ "<h3><span>Parameters</span></h3>\n"
719719
+ "<center><i>No parameters required.</i></center>"
720720
+ "<div class=\"submit-button\"><input type=\"submit\" value=\"Perform\"></div>\n"
721721
+ "</form>\n</div>\n";
@@ -748,7 +748,7 @@ private Object printSendLocalList() {
748748
// Print the div on the right
749749
+ "<div class=\"op-content\">\n<form method=\"POST\" action=\"" + contextPath + servletPath + "/SendLocalList\">\n"
750750
+ Common.printChargePointsMultipleSelect(chargePointsList, "1.5")
751-
+ "<b>Parameters</b><hr>\n"
751+
+ "<h3><span>Parameters</span></h3>\n"
752752
+ "<table class=\"sll\">\n"
753753
+ "<tr><td>hash (String):</td><td><i>Optional, omitted for now</i></td></tr>\n"
754754
+ "<tr><td>listVersion (integer):</td><td><input type=\"number\" name=\"listVersion\"></td></tr>\n"

src/main/java/de/rwth/idsg/steve/html/ServletReservations.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr
9191

9292
private String printExistingReservations() {
9393
StringBuilder builder = new StringBuilder(
94-
"<b>Existing Reservations</b><hr>\n"
94+
"<h3><span>Existing Reservations</span></h3>\n"
9595
+ "<center>\n"
9696
+ "<table class=\"res\">\n"
9797
+ "<tr><th>Reservation Id</th><th>idTag</th><th>chargeBoxId</th><th>startDatetime</th><th>expiryDatetime</th><th>expired</th></tr>\n");
@@ -129,7 +129,7 @@ private String printExistingReservations() {
129129

130130
private String printBookReservation() {
131131
StringBuilder builder = new StringBuilder(
132-
"<b>Book A New Reservation</b><hr>\n"
132+
"<h3><span>Book A New Reservation</span></h3>\n"
133133
+ "<center>\n"
134134
+ "<form method=\"POST\" action=\"" + contextPath + servletPath + "/book\">\n"
135135
+ "<table class=\"bc\">\n"
@@ -146,7 +146,7 @@ private String printBookReservation() {
146146

147147
private String printCancelReservation() {
148148
StringBuilder builder = new StringBuilder(
149-
"<b>Cancel An Existing Reservation</b><hr>\n"
149+
"<h3><span>Cancel An Existing Reservation</span></h3>\n"
150150
+ "<center>\n"
151151
+ "<form method=\"POST\" action=\""+ contextPath + servletPath + "/cancel\">\n"
152152
+ "<table class=\"bc\">\n"

src/main/java/de/rwth/idsg/steve/html/ServletSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr
7676

7777
private String printStatus() {
7878
return
79-
"<b>Settings</b><hr>\n"
79+
"<h3><span>Settings</span></h3>\n"
8080
+ "<center>"
8181
+ "<form method=\"POST\" action=\"" + contextPath + servletPath + "/change\">\n"
8282
+ "<table class=\"bc\">\n"

0 commit comments

Comments
 (0)