title: To prevent Null value entry in JSP page
body: <p>I've been working on a simple project. Getting data from JSP using text box, then using the Java in backend to save it in the database. I've defined the fields as NOT NULL in database, but the problem is when I click on submit, the data is saved in database as "", I mean it doesnt take it as NULL and it stored it as BLANK or "". Is there any way to prevent the submit action even if any one field is NULL or without entry? I know I can check it in backend Java, but I've to check every value as NOT NULL if I do by this way. Stopping the Submit action if anyone of the field is NULL is a decent choice.</p>