Question: Struts 2 Validation
Hello,I have been learning struts. I have a problem in the validator tag. I have tried tutorials and got those.
I have to add the Users to the database. So, have implemented the code. See attachement in URL.
I am unable to get the validator tags working for the newuser registration page.
Even if I make a null entry, the users are getting added into database. Kind help.
create database project;
create table users (userid smallint unsigned not null autoincrement, name varchar(20) not null, username varchar(20) not null, password varchar(20) not null, email varchar(40) not null, category varcahr(10) not null, constraint pkusers primary key (userid) );
PS: Use correct username and password for mysql.