how to get 0 or 1 in mysql according to my input in jsp form? : i've converted String into Boolean in servlet and want to use this status for inserting 0 or 1 status  in Mysql database, getting always true [1 in database] and my set and get method is in bean class with boolean as data type.
Can anyone tell me how to get 0 or 1 in database according to my input in jsp form.

String parameterStatus = request.getParameter("status");   
	       boolean status= Boolean.parseBoolean(parameterStatus);