The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
kalle suresh wrote:Hi,
I tried changing the User to user and the properties which I am referring in xhtml as the way they are declared in bean class. But no luck.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
kalle suresh wrote:Hi,
I am running sample JSF with a
1. login page asking for the user name and password.
2. after entering the user name and password, greet the user with Hello User Name..
Here are the configuration details.
1. Eclipse Helios
2. Tomcat 6
3. JSF Version 2
The following are the list of files.
1. index.xhtml - containing the input boxes for user name and password.
2. User.java - Bean having the properties for user name and password. once after entering the user name and password at index.xhtml values need to be stored here.
3. welcome.xhtml - This will retrieve the user name from user.java and put a message..
I have attached my files here.
1.index.html
2. User.java
3. welcome.xhtml
4.web.xml
5.faces-config.xml
Here are the list of libraries I am using..
javax.faces.jar
jstl-1.2.jar
I am able to see the login page and after input the user name and password and click on login button I could see the following error.
Please help me in resolving this..
Thanks,
Suresh.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:
Some additional notes:
1. JSF object names are instance names, not class names, so they should not begin with an upper-case letter.
2. Writing your own login code is suicide. J2EE has a truly secure login mechanism and it doesn't require user-written code.
R.Diab OCEWSD6,OCAJP8,OCPJP8,OCEWCD6,OCEJPAD6,OCEEJBD6,
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |