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