Hello,
Im creating a reporting
servlet which shows the values of the row for a certain username and then lets user make changes to it and updates it. If a user sets the timestamp field to blank in the form and hits 'update' button, it updates it to some random date and time instead of showing it blank. This is wut my code looks like in dopost()just to show blank if the users sets it to blank.
String m = req.getParameter("initialized");
if (m == null || m.equals(""))
member.initialized = null;
member.update();
in my Member class, i have this code in the update method:
String m ="";
if(initialized == null)
m = null;
update = "UPDATE vippas SET initialized = \"" + m + "\"";.
Im totally stuck here..Could any1 please tell me wut the problem is and suggest a solution. Thanks for your help.