Login using Servlet and JSP

In this video, you will learn the Creation of the Login Page using JSP and Servlet. A Simple JSP & Servlet User login page Example using Eclipse IDE. Also, I have used HttpSession for the Logout module
The control goes from the JSP Login page to a Servlet on submitting the form. The servlet further checks username and password with predefined values, if matches it redirects the user to the success page and shows a welcome message. If login fails it shows the login page again. If the user clicks on the logout button session is terminated.
This is a basic web application using Servlet and JSP.
Steps:
-how to create a login form using Servlet and JSP in Java
-how to create HttpSession for validation
-how to prevent access to specific pages to the users who are not logged in
i.e. show or display pages to only logged in users.
-if user is not logged in then show user login page or redirect the user to login page
else show the page
-----------------------------------------------------------------------
Subscribe to my channel for more videos of programming and hit the bell icon to never miss an update in the future.
Also, don't forget to LIKE & COMMENT.
------------------------------------------------------------------------
Channel Subscription:
🔗 / cscornersunitarai
Java Programming Tutorial Playlist
🔗 • Java Programming Tutorial
Advanced Java Tutorial Playlist
🔗 • Advanced Java Tutorial
Thanks for watching my videos till the end, if you like my work please do Subscribe, Like, Comment, and Share!!
------------------------------------------------------------------------
🎥 MY FAVOURITE KZread GEAR
www.amazon.in/shop/cscornersu...
------------------------------------------------------------------------
CONNECT WITH ME ON:
►Facebook - / cscornersunitarai
►Personal Facebook A/c - / sunita.sharmarai
►Instagram - / cscornersunitarai
►Telegram - t.me/cscorner
►LinkedIn - / cscornersunitarai
------------------------------------------------------------------------
#servlet #jsp #loginpage
#java
#javaprogramming
#javatutorialforbeginners
#GUI
Subscribe to CS Corner Sunita Rai for more videos!
Like! Subscribe! Share!
Stay tuned!
PS: Some of the links in this description are affiliate links that I get a kickback from
------------------------------------------------------------------------
Servlet class example
servlet example program
what is servlet class in Java
what is JSP
JSP example program
Login page using servlet
user login page
A Simple JSP Servlet Login Example in Tomcat and Eclipse
Create a simple login page using JSP and Servlet
how to build login app using servlet and jsp,login form creation,login jsp example,login jsp servlet example,servlet login example,simple login jsp,simple servlet login,jsp login tutorial,servlet login tutorial,Login page using servlet,JSP example program,user login page,Create a simple login page using JSP and Servlet,jsp,login using servlet,login page in java,login web page,login page web design,login page website,jsp and servlet,java servlet,servlets

Пікірлер: 81

  • @CSCORNERSunitaRai
    @CSCORNERSunitaRai Жыл бұрын

    Got a question on this topic? Please share through comments or reach us on telegram t.me/cscorner

  • @dragonhot6951

    @dragonhot6951

    Жыл бұрын

    please do Start uploading the code as well

  • @Sahilkhan-jd5fz
    @Sahilkhan-jd5fz Жыл бұрын

    Your explanation was crisp easy and thoughtful.

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    Жыл бұрын

    Glad you liked it😊 plz subscribe😊👍

  • @sameenakhan1975
    @sameenakhan1975 Жыл бұрын

    Hello mam , iI wants to say that your explanation is amazing .I needed Servlet videos in series for proper understanding.

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    Жыл бұрын

    Will try to upload soon👍☺please subscribe

  • @sisa213
    @sisa2136 ай бұрын

    Really helpful. Thanks!

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    5 ай бұрын

    Glad it was helpful! Please subscribe😊

  • @Akashgupta-pp8tu
    @Akashgupta-pp8tu Жыл бұрын

    Thank you soo much for this amazing topic....

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    Жыл бұрын

    Glad you liked it👍

  • @nanabhau_udhan
    @nanabhau_udhan Жыл бұрын

    Thank you mam your voice and teaching technique is very clear 🥰

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    Жыл бұрын

    That's great👍keep watching

  • @AbhigyanSundaram
    @AbhigyanSundaram Жыл бұрын

    Thank you so much 😊

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    Жыл бұрын

    You're welcome👍 plz subscribe

  • @happycareerjourney
    @happycareerjourney Жыл бұрын

    Mam Your all videos are helping me to learn out java program

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    Жыл бұрын

    You're welcome!👍please subscribe😊

  • @user-ng5ok6zh2o
    @user-ng5ok6zh2o11 ай бұрын

    Thank you madam you did so much for us Please do some more video on servlet + Jsp . Its helpful so many people like me

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    10 ай бұрын

    Noted.. You're welcome 👍please subscribe 😊

  • @PharmaceuticalConcepts_Ojaswi
    @PharmaceuticalConcepts_Ojaswi2 жыл бұрын

    Very good explanation

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    2 жыл бұрын

    Thank you 👍

  • @amarendrakumar-kl7rb
    @amarendrakumar-kl7rb Жыл бұрын

    Your Teaching Method Is Very Good Mam

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    Жыл бұрын

    Thanks a lot😊please subscribe 👍

  • @gayandanushka4970
    @gayandanushka497011 ай бұрын

    Thank You ❤

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    11 ай бұрын

    You're welcome 🙂Please subscribe👍

  • @ChennaiSpiderman31999
    @ChennaiSpiderman3199910 ай бұрын

    super all videos

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    9 ай бұрын

    You're welcome👍 please subscribe😊

  • @Ellasmagicpan
    @Ellasmagicpan2 жыл бұрын

    Interesting tutorial

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    2 жыл бұрын

    Thank you so much👍

  • @AmoebaGameplays
    @AmoebaGameplays2 жыл бұрын

    Thank you

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    2 жыл бұрын

    You're welcome👍

  • @Programyourmindset
    @Programyourmindset2 жыл бұрын

    Thanks professor sunita 😉

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    2 жыл бұрын

    You're welcome👍

  • @suyakisaneeshwar8506
    @suyakisaneeshwar8506 Жыл бұрын

    Woow ... really fantastic medam .. i am very proud of subscribe your channel medam.. thank u so much and wish you happy diwali medam

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    Жыл бұрын

    Glad you liked my contents 👍keep watching

  • @SimplySuman
    @SimplySuman2 жыл бұрын

    Thanks ma'am 🙏

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    2 жыл бұрын

    You're welcome👍

  • @SuhanasCreations
    @SuhanasCreations2 жыл бұрын

    Nice 👍

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    2 жыл бұрын

    Thank you so much👍

  • @sanikag1731
    @sanikag17312 жыл бұрын

    Thank you ma'am

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    2 жыл бұрын

    You're welcome👍

  • @amithagolla6907
    @amithagolla69072 жыл бұрын

    clear demo

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    2 жыл бұрын

    Glad you liked it👍

  • @saireddy9861
    @saireddy9861 Жыл бұрын

    When I am running input JSP it showing selection cannot be run on any server reply please 😢

  • @S3Allinone
    @S3Allinone2 жыл бұрын

    Very nice

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    2 жыл бұрын

    Thank you 👍

  • @priyagade8788
    @priyagade8788 Жыл бұрын

    Thank you mam

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    Жыл бұрын

    You're welcome👍 Do check my advanced java playlist

  • @jyotsnamasand2414
    @jyotsnamasand24142 жыл бұрын

    Hi ma'am, thanks for the wonderful explanation. It would be great if you can explain why rd.include(request, response) allows printing of the message on input.jsp. Thanks in advance.

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    2 жыл бұрын

    I'm Glad you liked it👍 Include method purpose is to include output of other files(jsp/html/servlet). Hence its showing output on input.jsp. Hope I answered your query. Do explore my channel for such more contents👍

  • @howto4659
    @howto46592 жыл бұрын

    Thank you maaaam

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    2 жыл бұрын

    You're welcome👍

  • @MANISHKUMAR-cg3oc
    @MANISHKUMAR-cg3oc Жыл бұрын

    Thankyou mam

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    Жыл бұрын

    You're welcome👍 keep watching

  • @ArtiqueKaavya
    @ArtiqueKaavya2 жыл бұрын

    Very nice madam

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    2 жыл бұрын

    Thank you so much👍

  • @anburaaaja
    @anburaaaja5 ай бұрын

    Good Explanation, where do i get this source code to learn on these. Thanks

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    5 ай бұрын

    JOIN MY TELEGRAM

  • @abadiallo709
    @abadiallo7099 ай бұрын

    hi by the way if we want it to display the names of users already connected, in mm temp to say the name of the person who just connected (like in the video)

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    9 ай бұрын

    You can use session management

  • @abadiallo709

    @abadiallo709

    9 ай бұрын

    @@CSCORNERSunitaRai Do you have a video on this or a tutorial and even a link to give me so that I can do this practical work?

  • @aastha4708
    @aastha47086 ай бұрын

    very nice video proper login page with all points

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    5 ай бұрын

    Thanks for liking! Please subscribe

  • @shankarshankar2235
    @shankarshankar22352 жыл бұрын

    Please upload the video for e commerce shopping website using jsp servlets, html, css and my sql

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    2 жыл бұрын

    Noted. Will try.

  • @yaswanthbhanu8565
    @yaswanthbhanu8565 Жыл бұрын

    Hello Mam while running it on tomcat server version 10 it is showing the following error Type Status Report Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists Please help me with this.

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    Жыл бұрын

    Check port no

  • @yaswanthbhanu8565

    @yaswanthbhanu8565

    Жыл бұрын

    @@CSCORNERSunitaRai there they were two port nos 8080 and 8085 which one we need to give for the url ?

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    Жыл бұрын

    @@yaswanthbhanu8565 send pic on my telegram channel

  • @yaswanthbhanu8565

    @yaswanthbhanu8565

    Жыл бұрын

    @@CSCORNERSunitaRai sent it mam pls check it

  • @thesavageunicorn3064
    @thesavageunicorn30642 жыл бұрын

    Hi, I have a few problems with creating my program. It'd be so helpful, if you could help me.. I have tomcat v10 and my jar file is java1.8.0.. My jdk in Eclipse is Java 18. When I try to create a servlet file, It shows me the following errors. It shows me error on the servlet file. In this line, "public class samplelogin extends HttpServlet {" it shows error on the class name "samplelogin". The error is: "The hierarchy of the type samplelogin is inconsistent" Also, I couldn't do anything SQL related. I have added the jar file in classpath, but I couldn't add it in modulepath(Is it necessary?) I have added the jar file in lib folder also. I don't know what the problem is... Please help me out🥺

  • @thesavageunicorn3064

    @thesavageunicorn3064

    2 жыл бұрын

    Also, For this login program, I didn't even use database. If there's a problem with the installation of tomcat, could you please tell me how to solve that? or how to delete and reinstall?

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    2 жыл бұрын

    Can you share your project hierarchy and error screenshots on my telegram group

  • @vaishnavgm1966

    @vaishnavgm1966

    Жыл бұрын

    Hi im also facing the same error did u find any sollutions?

  • @yadavbirendra777
    @yadavbirendra777 Жыл бұрын

    Getting error 404 please help

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    Жыл бұрын

    Check your file name in action attribute

  • @kondakabhargav1171
    @kondakabhargav1171 Жыл бұрын

    Ma'am what is "uname"?

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    Жыл бұрын

    It's a name given for storing values in session. U can give any name

  • @kondakabhargav1171

    @kondakabhargav1171

    Жыл бұрын

    Thank you so much

  • @priyapatel9951
    @priyapatel9951 Жыл бұрын

    Can u plz share me your code?

  • @CSCORNERSunitaRai

    @CSCORNERSunitaRai

    Жыл бұрын

    Yes join my telegram

  • @sriramj1502

    @sriramj1502

    Жыл бұрын

    ​@@CSCORNERSunitaRaii did , but there's no code there

Келесі