Advertisement
Guest User

Untitled

a guest
Jun 5th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <%
  2.  
  3. if(request.getParameter("submit-knap" + posts.getPost_id()) != null) {
  4. JDBCConnectionFactory.initManualConnectionHandling("jdbc:mysql://student.hum.au.dk:3306/u201507985",
  5. "u201507985", "Butm51uR", "com.mysql.jdbc.Driver");
  6. String commentBody = request.getParameter("commentBody" + posts.getPost_id());
  7. int comID = posts.getPost_id();
  8. long currentUser = model.getUserId();
  9. CommentDAO.saveComment(model.getUserName(), commentBody, comID);
  10. response.sendRedirect("Index.jsp");
  11. return;
  12. }
  13. %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement