Hi,
I think the information that you've provided doesn't help us to analyse your problem, because we do not have any idea what your program is doing wrong. Maybe you can provided us with some kind...
Type: Posts; User: wsaryada
Hi,
I think the information that you've provided doesn't help us to analyse your problem, because we do not have any idea what your program is doing wrong. Maybe you can provided us with some kind...
There must be an exception thrown in you program. In your query you select a column named "nama", but you tried to read "username" and "password" from the result set. This throws an SQLException...
From your code I can see that there is no session attribute named "username" was placed in the session scope. So the the session.getAttribute("username") will give you null that's why it doesn't work.
Yes, I agree with copeg. The official Java tutorial website is where you can start to learn the basic of Java and understand the underlying concept. And don't forget to write lots of codes because...
Try using the java.util.Scanner class, it can simplify your program.
Have you included your DAL classes in your web application archive (war) under the WEB-INF/classes or if it was packed as jar file under the WEB-INF/lib?