diff --git a/.classpath b/.classpath
new file mode 100644
index 00000000..878bbb0c
--- /dev/null
+++ b/.classpath
@@ -0,0 +1,18 @@
+
+
" + komentar + "
\n"+ + "<% out.print(rsPost.getString("konten")); %>
+ <% + }catch(Exception e){out.print(""+e);} + %> +<% out.print(rsComment.getString("komentar")); %>
+GET
and POST
+ * methods.
+ *
+ * @param request servlet request
+ * @param response servlet response
+ * @throws ServletException if a servlet-specific error occurs
+ * @throws IOException if an I/O error occurs
+ */
+ protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws IOException
+ {
+ Connection conn;
+ PreparedStatement pState;
+ Random random = new Random();
+ PrintWriter out = response.getWriter();
+ try {
+ Class.forName("com.mysql.jdbc.Driver");
+ int updateQuery = 0;
+ conn = (Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/wbd_db", "root", "");
+ pState = (PreparedStatement) conn.prepareStatement("DELETE FROM post WHERE post_id = ?");
+ pState.setString(1, String.valueOf(request.getParameter("postId")));
+ updateQuery = pState.executeUpdate();
+ } catch(Exception e){out.println("Error" + e);}
+ response.sendRedirect("faces/deleted_post.jsp");
+ }
+
+ // GET
method.
+ *
+ * @param request servlet request
+ * @param response servlet response
+ * @throws ServletException if a servlet-specific error occurs
+ * @throws IOException if an I/O error occurs
+ */
+ @Override
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException
+ {
+ processRequest(request, response);
+ }
+
+ /**
+ * Handles the HTTP POST
method.
+ *
+ * @param request servlet request
+ * @param response servlet response
+ * @throws ServletException if a servlet-specific error occurs
+ * @throws IOException if an I/O error occurs
+ */
+ @Override
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException
+ {
+ processRequest(request, response);
+ }
+
+ /**
+ * Returns a short description of the servlet.
+ *
+ * @return a String containing servlet description
+ */
+ @Override
+ public String getServletInfo() {
+ return "Short description";
+ }// GET
and POST
+ * methods.
+ *
+ * @param request servlet request
+ * @param response servlet response
+ * @throws ServletException if a servlet-specific error occurs
+ * @throws IOException if an I/O error occurs
+ */
+ protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws IOException
+ {
+ Connection conn;
+ PreparedStatement pState;
+ Random random = new Random();
+ PrintWriter out = response.getWriter();
+ try {
+ Class.forName("com.mysql.jdbc.Driver");
+ int updateQuery = 0;
+ conn = (Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/wbd_db", "root", "");
+ pState = (PreparedStatement) conn.prepareStatement("UPDATE post SET status = 'unpublished' WHERE post_id = ?");
+ pState.setString(1, String.valueOf(request.getParameter("postId")));
+ updateQuery = pState.executeUpdate();
+ } catch(Exception e){out.println("Error" + e);}
+ response.sendRedirect("deleted_post.jsp");
+ }
+
+ // GET
method.
+ *
+ * @param request servlet request
+ * @param response servlet response
+ * @throws ServletException if a servlet-specific error occurs
+ * @throws IOException if an I/O error occurs
+ */
+ @Override
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException
+ {
+ processRequest(request, response);
+ }
+
+ /**
+ * Handles the HTTP POST
method.
+ *
+ * @param request servlet request
+ * @param response servlet response
+ * @throws ServletException if a servlet-specific error occurs
+ * @throws IOException if an I/O error occurs
+ */
+ @Override
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException
+ {
+ processRequest(request, response);
+ }
+
+ /**
+ * Returns a short description of the servlet.
+ *
+ * @return a String containing servlet description
+ */
+ @Override
+ public String getServletInfo() {
+ return "Short description";
+ }// GET
and POST
+ * methods.
+ *
+ * @param request servlet request
+ * @param response servlet response
+ * @throws ServletException if a servlet-specific error occurs
+ * @throws IOException if an I/O error occurs
+ */
+ protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws IOException
+ {
+ Connection conn;
+ PreparedStatement pState;
+ Random random = new Random();
+ PrintWriter out = response.getWriter();
+ try {
+ Class.forName("com.mysql.jdbc.Driver");
+ int updateQuery = 0;
+ conn = (Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/wbd_db", "root", "");
+ pState = (PreparedStatement) conn.prepareStatement("UPDATE post SET status = 'published' WHERE post_id = ?");
+ pState.setString(1, String.valueOf(request.getParameter("postId")));
+ updateQuery = pState.executeUpdate();
+ } catch(Exception e){out.println("Error" + e);}
+ response.sendRedirect("faces/index.jsp");
+ }
+
+ // GET
method.
+ *
+ * @param request servlet request
+ * @param response servlet response
+ * @throws ServletException if a servlet-specific error occurs
+ * @throws IOException if an I/O error occurs
+ */
+ @Override
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException
+ {
+ processRequest(request, response);
+ }
+
+ /**
+ * Handles the HTTP POST
method.
+ *
+ * @param request servlet request
+ * @param response servlet response
+ * @throws ServletException if a servlet-specific error occurs
+ * @throws IOException if an I/O error occurs
+ */
+ @Override
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException
+ {
+ processRequest(request, response);
+ }
+
+ /**
+ * Returns a short description of the servlet.
+ *
+ * @return a String containing servlet description
+ */
+ @Override
+ public String getServletInfo() {
+ return "Short description";
+ }//