Struts 2 Tutorial 10 - Login Action and Best Practices

preview_player
Показать описание
In this video, we'll learn how to implement a very common use case: basic login functionality using Struts 2 framework. In the next tutorial, we'll enhance this code with some best practices.
Рекомендации по теме
Комментарии
Автор

This is the best java channel that I know. Thanks a lot. You are amazing.

Andre_Maciel
Автор

Amazing tutorial, but why does your URL change like that? And what are the benefits of using s:textfield and s:password instead input type="text" and input type="password", Thank you very much!

diegoramos
Автор

Koushk Text boxes in output are black becz your browser view/zoom to 100%. it will work.

pradeepkumarchouhan
Автор

After login when I tried to search the language it gave namespace not defined error. I assigned package name (changed from default) and it worked.

gyannitin
Автор

Thank you so much bro, your examples are amazing and you teach very well keep it up

FrederickAlvarez_
Автор

getUserId().equals("userId"); - This statement will get a nullpointerexception if getUserID() returns null. Instead use which returns false if getUserId() returns null.

Artheon
Автор

If someone gets this kind error:
No result defined for action com.action.LoginAction and result [success/failure]

just change the action name in struts.xml and login.jsp from "login" to something else like "userLogin". I don't know why, but it worked for me.

zetordie
Автор

Please Please upload your new Videos on Struts2 (After 12th video)

RaviPrakash-vuhf