
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.
After
Even if I make a null entry, the users are getting added into database. Kind help.
Database(MYSQL):
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.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.