I am trying to insert row into table using servlet, while trying to insert using Statement (using insertQuery1 & insertQuery2), it is executing fine but while executing usin
remove the statement in prpStmt.execute(insertPrepQuery);
it must be prpStmt.execute();
The message shows that the prepared statement is executed as a regular statement. That's because you used
prpStmt.execute(insertPrepQuery);
instead of
prpStmt.execute();
or, better,
prpStmt.executeUpdate();
You already specified the query when preparing the statement. No need to specifying once again when executing it.