Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%
- if(request.getParameter("submit-knap" + posts.getPost_id()) != null) {
- JDBCConnectionFactory.initManualConnectionHandling("jdbc:mysql://student.hum.au.dk:3306/u201507985",
- "u201507985", "Butm51uR", "com.mysql.jdbc.Driver");
- String commentBody = request.getParameter("commentBody" + posts.getPost_id());
- int comID = posts.getPost_id();
- long currentUser = model.getUserId();
- CommentDAO.saveComment(model.getUserName(), commentBody, comID);
- response.sendRedirect("Index.jsp");
- return;
- }
- %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement