Login using Servlet and JSP

Поділитися
Вставка
  • Опубліковано 18 жов 2024
  • 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 UA-cam GEAR
    www.amazon.in/...
    ------------------------------------------------------------------------
    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 Рік тому +2

      please do Start uploading the code as well

  • @sameenakhan1975
    @sameenakhan1975 Рік тому +2

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

  • @Sahilkhan-jd5fz
    @Sahilkhan-jd5fz Рік тому +1

    Your explanation was crisp easy and thoughtful.

  • @happycareerjourney
    @happycareerjourney Рік тому +1

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

  • @amarendrakumar-kl7rb
    @amarendrakumar-kl7rb Рік тому +1

    Your Teaching Method Is Very Good Mam

  • @NareshBojja-k2t
    @NareshBojja-k2t Рік тому +1

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

  • @nanabhau_udhan
    @nanabhau_udhan 2 роки тому +1

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

  • @suyakisaneeshwar8506
    @suyakisaneeshwar8506 2 роки тому +1

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

  • @Akashgupta-pp8tu
    @Akashgupta-pp8tu 2 роки тому +2

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

  • @Programyourmindset
    @Programyourmindset 2 роки тому +1

    Thanks professor sunita 😉

  • @jyotsnamasand2414
    @jyotsnamasand2414 2 роки тому +2

    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 роки тому +1

      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👍

  • @anburaaaja
    @anburaaaja 8 місяців тому +1

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

  • @saireddy9861
    @saireddy9861 Рік тому +1

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

  • @sisa213
    @sisa213 9 місяців тому +1

    Really helpful. Thanks!

  • @PharmaceuticalConcepts_Ojaswi
    @PharmaceuticalConcepts_Ojaswi 2 роки тому +1

    Very good explanation

  • @Rajkumarsurya711
    @Rajkumarsurya711 Рік тому +1

    super all videos

  • @Ellasmagicpan
    @Ellasmagicpan 2 роки тому +1

    Interesting tutorial

  • @aastha4708
    @aastha4708 9 місяців тому

    very nice video proper login page with all points

  • @yaswanthbhanu8565
    @yaswanthbhanu8565 Рік тому +1

    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.

  • @AbhigyanSundaram
    @AbhigyanSundaram Рік тому +1

    Thank you so much 😊

  • @ArtiqueKaavya
    @ArtiqueKaavya 2 роки тому +1

    Very nice madam

  • @gayandanushka4970
    @gayandanushka4970 Рік тому +1

    Thank You ❤

  • @SuhanasCreations
    @SuhanasCreations 2 роки тому +1

    Nice 👍

  • @abadiallo709
    @abadiallo709 Рік тому +1

    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  Рік тому

      You can use session management

    • @abadiallo709
      @abadiallo709 Рік тому

      @@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?

  • @sanikag1731
    @sanikag1731 2 роки тому +1

    Thank you ma'am

  • @priyagade8788
    @priyagade8788 2 роки тому +1

    Thank you mam

  • @shankarshankar2235
    @shankarshankar2235 2 роки тому +1

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

  • @AmoebaGameplays
    @AmoebaGameplays 2 роки тому +1

    Thank you

  • @amithagolla6907
    @amithagolla6907 2 роки тому +1

    clear demo

  • @S3Allinone
    @S3Allinone 2 роки тому +1

    Very nice

  • @MANISHKUMAR-cg3oc
    @MANISHKUMAR-cg3oc 2 роки тому +2

    Thankyou mam

  • @thesavageunicorn3064
    @thesavageunicorn3064 2 роки тому

    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?

  • @howto4659
    @howto4659 2 роки тому +1

    Thank you maaaam

  • @kondakabhargav1171
    @kondakabhargav1171 2 роки тому +1

    Ma'am what is "uname"?

  • @yadavbirendra777
    @yadavbirendra777 Рік тому +1

    Getting error 404 please help

  • @priyapatel9951
    @priyapatel9951 Рік тому +1

    Can u plz share me your code?

  • @SimplySuman
    @SimplySuman 2 роки тому +1

    Thanks ma'am 🙏