I want to use an update SQL statement in my Netbeans controller class.
Method in controller:
public String verify(){
String result = "failed";
int authcode = staffBean.getVerifyCodeByName(getLoginUserName());
if ( code==authcode){
result ="success";
//add an update SQL statement
}
else{
JOptionPane.showMessageDialog(null,"Code does not match!");
}
return result;
}
Anyone know whats the syntax for it? Or is it not possible to do it in here? Thanks
1 Answer