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
Got a question on this topic? Please share through comments or reach us on telegram t.me/cscorner
please do Start uploading the code as well
Hello mam , iI wants to say that your explanation is amazing .I needed Servlet videos in series for proper understanding.
Will try to upload soon👍☺please subscribe
Your explanation was crisp easy and thoughtful.
Glad you liked it😊 plz subscribe😊👍
Mam Your all videos are helping me to learn out java program
You're welcome!👍please subscribe😊
Your Teaching Method Is Very Good Mam
Thanks a lot😊please subscribe 👍
Thank you madam you did so much for us Please do some more video on servlet + Jsp . Its helpful so many people like me
Noted..
You're welcome 👍please subscribe 😊
Thank you mam your voice and teaching technique is very clear 🥰
That's great👍keep watching
Woow ... really fantastic medam .. i am very proud of subscribe your channel medam.. thank u so much and wish you happy diwali medam
Glad you liked my contents 👍keep watching
Thank you soo much for this amazing topic....
Glad you liked it👍
Thanks professor sunita 😉
You're welcome👍
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.
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👍
Good Explanation, where do i get this source code to learn on these. Thanks
JOIN MY TELEGRAM
When I am running input JSP it showing selection cannot be run on any server reply please 😢
Really helpful. Thanks!
Glad it was helpful! Please subscribe😊
Very good explanation
Thank you 👍
super all videos
You're welcome👍 please subscribe😊
Interesting tutorial
Thank you so much👍
very nice video proper login page with all points
Thanks for liking! Please subscribe
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.
Check port no
@@CSCORNERSunitaRai there they were two port nos 8080 and 8085 which one we need to give for the url ?
@@yaswanthbhanu8565 send pic on my telegram channel
@@CSCORNERSunitaRai sent it mam pls check it
Thank you so much 😊
You're welcome👍 plz subscribe
Very nice madam
Thank you so much👍
Thank You ❤
You're welcome 🙂Please subscribe👍
Nice 👍
Thank you so much👍
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)
You can use session management
@@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?
Thank you ma'am
You're welcome👍
Thank you mam
You're welcome👍
Do check my advanced java playlist
Please upload the video for e commerce shopping website using jsp servlets, html, css and my sql
Noted. Will try.
Thank you
You're welcome👍
clear demo
Glad you liked it👍
Very nice
Thank you 👍
Thankyou mam
You're welcome👍 keep watching
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🥺
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?
Can you share your project hierarchy and error screenshots on my telegram group
Hi im also facing the same error did u find any sollutions?
Thank you maaaam
You're welcome👍
Ma'am what is "uname"?
It's a name given for storing values in session.
U can give any name
Thank you so much
Getting error 404 please help
Check your file name in action attribute
Can u plz share me your code?
Yes join my telegram
@@CSCORNERSunitaRaii did , but there's no code there
Thanks ma'am 🙏
You're welcome👍