Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 38251

This tag should be used for questions where you are handling null variables or values.

5 votes
3 answers
5k views

User registration Servlet

MySQL Table: CREATE TABLE IF NOT EXISTS user( user_id VARCHAR(255), user_password VARCHAR(255) NOT NULL, user_last_name VARCHAR(255), user_first_name VARCHAR(255), user_email VARCHAR … (255) UNIQUE NOT NULL, user_type TINYINT UNSIGNED NOT NULL, /* VALUES: 0 - Guest, 1 - Admin, 2 - User */ PRIMARY KEY(user_id) ); Servlet: protected void doPost(HttpServletRequest request, …
0 votes

User registration Servlet

Since some of the Strings are allowed to be null (i.e. userFirstName and userLastName), I put the required details in a String[]. Each element is then checked for a null value. … If all elements are not null, proceed, else, redirect. …
k_rollo's user avatar
  • 478