Win a copy of Terraform in Action this week in the Cloud forum!

K. Karacakaya

Ranch Hand
+ Follow
since May 20, 2014
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
14
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by K. Karacakaya

SignUpPage.jsp:


Registration.java
7 years ago
I don't know. And it shouldn't submit the values because of return false... Weird
7 years ago
Now it says: Welcome : ''. Registration is completed. Please click here and login to the system. And still add a new user to table.
7 years ago

Paul Ngom wrote:


Tomorrow I will add some features like if password != re typed password, give alert and if user doesn't put an [at] to email box, give alert. They shouldn't be hard.


I do hope that will not be had to achieve. I will always be happy to give a helping hand from my little experience.



Hey again and again Paul

I add some parts to my SignUpPage.jsp. Now it is like:


It gives alert but when I click on "OK" button in that pop-up, it still saves the new user to db.
For example, after this registration process: username: mark, password: mark, retype password: mark, name: Mark, surname: mark, email: mark, degree: Master's Degree, it gives an alert that says "There must be an [at] character in your email address". But after I click on OK, http://localhost:8080/loginpage/Registration comes and says: "Welcome : 'Mark' Registration is completed. Please click here and login to the system."

Do you have any idea how can I solve this problem?
7 years ago
Thanks again for your kindness and helpfulness. I will message you if I have some problems at some points. Feel free to say "I'm busy"
7 years ago
Yeah it is so confusing but probably I got that. Tomorrow I will add some features like if password != re typed password, give alert and if user doesn't put an [at] to email box, give alert. They shouldn't be hard.
7 years ago
Yeah Paul I just noticed it too and problem is solved I have learnt a lot of things thanks to you. Only thing I didn't understand is how we fix edit part. Can you explain it a bit?
7 years ago
Still the same error: SQLException caught: Column 'un' cannot be null
7 years ago
Done! Everything looks fine and database is changed. I couldn't understand how we fix it without adding something about return_code to UpdateUser.java.
7 years ago
now password appears:
null
123asdas
alisda
yavuzadas
aliya@gmadadil.com
Master's Degree
UPDATE failed!

Back to the Edit Page.

And username comes when I delete "disabled"
7 years ago
null
null
alifakms
yavuzcais
alisksaya@gmail.com
Doctoral Degree
UPDATE failed!

Back to the Edit Page.
7 years ago
Now it says:
UPDATE failed!

Back to Edit Page.
(I changed error message before).

It is because of return_code = 0. And it has never never changed in UpdateUser.java. It looks like some part of the code is missed.
7 years ago
Yeah I corrected. Now console shows an error: Error: Error: Parameter index out of range (1 > number of parameters, which is 0).
7 years ago
Hi Paul,
When I click on Submit button after sign up process. This page appears:

And for a logged in user, after editing information and clicking on Submit button. This page appears:


Also there is no change in database too.
7 years ago