Monday, August 17, 2009

Java homework please help! :(?

I coded a script, Currently I can add and delete items to the database but I cannot edit the data. Here's my 3 paged script :



Christmasswishlist.java



import java.io.IOException;



import javax.servlet.ServletException;



import javax.servlet.http.HttpServletRequest;



import javax.servlet.http.HttpServletResponse;



import java.sql.*;



/**



* Servlet implementation class for Servlet: ChristmasWishlist



*



*/



public class ChristmasWishlist extends javax.servlet.http.HttpServlet implements



javax.servlet.Servlet



%26#123;



static final long serialVersionUID = 1L;



/*



* Connect to the database



*/



/*



* (non-Java-doc)



*



* @see javax.servlet.http.HttpServlet#HttpServl...



*/



public ChristmasWishlist()



%26#123;



super();



%26#125;



/*



* (non-Java-doc)



*



* @see javax.servlet.http.HttpServlet#doGet(Htt... request,



* HttpServletResponse response)



*/



protected void doGet(HttpServletRequest request,



HttpServletResponse response) throws ServletException, IOException



%26#123;



// TODO Auto-generated method stub



process(request, response);



%26#125;



/*



* (non-Java-doc)



*



* @see javax.servlet.http.HttpServlet#doPost(Ht... request,



* HttpServletResponse response)



*/



protected void doPost(HttpServletRequest request,

No comments:

Post a Comment