Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Basic Form-Based Authentication  RSS feed

 
Dmytro Grytskiv
Greenhorn
Posts: 7
MySQL Database Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem: method login() (from LoginBean.java) is not called after clicking on button "Login".

web.xml


loginForm.xhtml


LoginBean.java
 
Dmytro Grytskiv
Greenhorn
Posts: 7
MySQL Database Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After I add some lines to web.xml


in web browser I going to catch popup windows for enter username and password, but it's not HTML login form. And when I enter correct user name and password I get message "password incorrect".

Screenshot-GlassFish-realm-from-2016-09-05-12-49-37.png
[Thumbnail for Screenshot-GlassFish-realm-from-2016-09-05-12-49-37.png]
Screenshot-GlassFish-realm-File-users-from-2016-09-05-12-50-08.png
[Thumbnail for Screenshot-GlassFish-realm-File-users-from-2016-09-05-12-50-08.png]
Screenshot-pop-up-window-from-2016-09-05-12-50-34.png
[Thumbnail for Screenshot-pop-up-window-from-2016-09-05-12-50-34.png]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!