Skip to content

Commit

Permalink
w1
Browse files Browse the repository at this point in the history
  • Loading branch information
conikeec committed Aug 13, 2024
1 parent d495d6c commit c3bc4e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<jackson.mapper.version>1.5.6</jackson.mapper.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<build>
<finalName>servlettarpit</finalName>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/shiftleft/tarpit/OrderStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet(name = "simpleServlet", urlPatterns = {"/getOrderStatus"}, loadOnStartup = 1)
@WebServlet(name = "simpleServlet", urlPatterns = { "/getOrderStatus" }, loadOnStartup = 1)
public class OrderStatus extends HttpServlet {

private static final long serialVersionUID = -3462096228274971485L;
Expand Down Expand Up @@ -81,6 +81,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response)
request.setAttribute("orderDetails", order);

LOGGER.info("Order details are " + order);
LOGGER.info("Order " + orderId + " details are forwarded to dashboard ");

getServletContext().getRequestDispatcher("/dashboard.jsp").forward(request, response);

Expand All @@ -102,7 +103,6 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response)
throw new ServletException(e);
}


}

private void getConnection() throws ClassNotFoundException, SQLException {
Expand Down

0 comments on commit c3bc4e4

Please sign in to comment.