

{"id":82566,"date":"2020-09-18T09:00:33","date_gmt":"2020-09-18T03:30:33","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=82566"},"modified":"2021-08-25T13:47:01","modified_gmt":"2021-08-25T08:17:01","slug":"jsp-registration-form","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/","title":{"rendered":"Login and Registration Form in JSP"},"content":{"rendered":"<p>This article discusses the development of login and registration programs in JSP and using MVC architecture. So let us learn how to make this form and proceed ahead.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/Login-Registration-Form-in-JSP.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82583\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/Login-Registration-Form-in-JSP.jpg\" alt=\"login and registration in JSP\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/Login-Registration-Form-in-JSP.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/Login-Registration-Form-in-JSP-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/Login-Registration-Form-in-JSP-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/Login-Registration-Form-in-JSP-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/Login-Registration-Form-in-JSP-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/Login-Registration-Form-in-JSP-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/p>\n<h3>1. Login and Logout Form in JSP<\/h3>\n<p>This example shows a login form in JSP. Here we take username and password from the user as two fields in the form. Then we have a submit button.<br \/>\nWhen we click on the submit button, we will receive a welcome message.<br \/>\nThere will be a logout option as well. By clicking on it, we will get redirected to the login page.<\/p>\n<p>The example is as below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">login.jsp\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;Login Form&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;h3&gt; Login here &lt;\/h3&gt;\r\n&lt;form action=\"user_login\" method=\"post\"&gt;\r\n&lt;table style=\"width: 20%\"&gt;\r\n               \t&lt;tr&gt;\r\n               \t&lt;td&gt;UserName&lt;\/td&gt;\r\n                                  \t&lt;td&gt;&lt;input type=\"text\" name=\"username\" \/&gt;&lt;\/td&gt;\r\n               \t      \t&lt;\/tr&gt;\r\n                                  \t&lt;tr&gt;\r\n                                  \t&lt;td&gt;Password&lt;\/td&gt;\r\n                                  \t&lt;td&gt;&lt;input type=\"password\" name=\"password\" \/&gt;&lt;\/td&gt;\r\n                         \t&lt;\/tr&gt;\r\n               \t&lt;\/table&gt;\r\n               \t&lt;input type=\"submit\" value=\"Login\" \/&gt;&lt;\/form&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p><strong>Explanation of the code:<\/strong><\/p>\n<p>This is the main login page. This form transfers action to servlet user_login. The method of passing info is posted. It takes two parameters from the user. They&#8217;re username and password. There is a submit button with the value as login. On clicking it, the information will go to user_login where these values are taken into a request object.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">user_login.java(servlet)\r\npackage demotest;\r\nimport java.io.IOException;\r\nimport javax.servlet.RequestDispatcher;\r\nimport javax.servlet.ServletException;\r\nimport javax.servlet.http.HttpServlet;\r\nimport javax.servlet.http.HttpServletRequest;\r\nimport javax.servlet.http.HttpServletResponse;\r\npublic class user_login extends HttpServlet {\r\n    public user_login() {\r\n        super();\r\n        \t}\r\nprotected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n               \tString username = request.getParameter(\"username\");\r\n               \tString password = request.getParameter(\"password\");\r\n               \tif(username.isEmpty() || password.isEmpty() )\r\n               \t{\r\n                         \tRequestDispatcher requ = request.getRequestDispatcher(\"login.jsp\");\r\n                         \trequ.include(request, response);\r\n               \t}\r\n               \telse\r\n               \t{\r\n                         \tRequestDispatcher requ =       request.getRequestDispatcher(\"login_2.jsp\");\r\n                         \trequ.forward(request, response);\r\n               \t}\r\n      \t}\r\n \r\n}\r\n<\/pre>\n<p><strong>Explanation of the code:<\/strong><\/p>\n<p>This code contains the necessary imports. User_login servlet extends HttpServlet. This code contains doPost() method as our method in login form is \u2018POST\u2019. Request object gets the username and password that are required for login.<br \/>\nThen we have used if and else. If any parameter is empty the page is redirected to login.jsp else the user is directed to login_2.jsp.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">login_2.jsp\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;User Logged In&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n      \t&lt;table style=\"width: 20%\"&gt;\r\n      \t&lt;tr&gt;&lt;td&gt;\r\n      \t&lt;% String username = request.getParameter(\"username\"); %&gt;\r\n&lt;a&gt;Welcome user, you have logged in.&lt;\/a&gt;&lt;\/td&gt;&lt;\/tr&gt;\r\n&lt;tr&gt;&lt;\/tr&gt;&lt;tr&gt;td&gt;&lt;\/td&gt;&lt;td&gt;&lt;a href=login.jsp\"&gt;&lt;b&gt;Logout&lt;\/b&gt;&lt;\/a&gt;&lt;\/td&gt;&lt;\/tr&gt;\r\n&lt;\/table&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p><strong>Explanation of the code:<\/strong><\/p>\n<p>In this code, we are getting the username using the request object. We can print the username optionally. A welcome message pops along with a logout link. This logout link redirects users to the initial login page. This code gives the following output:<\/p>\n<p><strong>Output:<\/strong><\/p>\n<p>On running Login.jsp, we get two fields that are &#8220;username&#8221; and &#8220;password&#8221; and a Login button.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/image1-14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82567\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/image1-14.png\" alt=\"JSP login\" width=\"138\" height=\"81\" \/><\/a><\/p>\n<p>When clicking the login button, we get the following message and a logout link.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/image4-8-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82571\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/image4-8-1.png\" alt=\"jsp login form\" width=\"148\" height=\"57\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>On clicking logout, it redirects us to the login page.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/image3-12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82574\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/image3-12.png\" alt=\"JSP Login\" width=\"136\" height=\"77\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>2. Registration Form in JSP<\/h3>\n<p>In the Registration form, the user fills details like name, username, password, address, etc. Registration forms take data and store it in a database or cache.<\/p>\n<p>In this example, we have the following fields for registration<\/p>\n<ul>\n<li>First Name<\/li>\n<li>Last Name<\/li>\n<li>Username<\/li>\n<li>Password<\/li>\n<li>Address<\/li>\n<\/ul>\n<p>Then a submit button.<\/p>\n<p>After clicking it, the details store in the database. For this, we create a database and table.<\/p>\n<h4>Database Creation<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">CREATE database dbuser (\r\n  `first name` varchar(20) NOT NULL,\r\n  `last name` varchar(20) NOT NULL,\r\n  `Username` varchar(20) NOT NULL,\r\n   `Address` varchar(60) NOT NULL,\r\n  PRIMARY KEY (`Username`)\r\n) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;\r\n\r\nThe details will be stored in this database.\r\nregister.jsp\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;Registration Form&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;h1&gt;User Register Form&lt;\/h1&gt;\r\n&lt;form action=\"user_register\" method=\"post\"&gt;\r\n                         \t&lt;table style=\"with: 20%\"&gt;\r\n                                  \t&lt;tr&gt;\r\n                                            \t&lt;td&gt;First Name&lt;\/td&gt;\r\n                                            \t&lt;td&gt;&lt;input type=\"text\" name=\"first_name\" \/&gt;&lt;\/td&gt;\r\n                                  \t&lt;\/tr&gt;\r\n                                  \t&lt;tr&gt;\r\n                                            \t&lt;td&gt;Last Name&lt;\/td&gt;\r\n                                            \t&lt;td&gt;&lt;input type=\"text\" name=\"last_name\" \/&gt;&lt;\/td&gt;\r\n                                  \t&lt;\/tr&gt;\r\n                                  \t&lt;tr&gt;\r\n                                            \t&lt;td&gt;UserName&lt;\/td&gt;\r\n                                            \t&lt;td&gt;&lt;input type=\"text\" name=\"username\" \/&gt;&lt;\/td&gt;\r\n                                  \t&lt;\/tr&gt;\r\n                                            \t&lt;tr&gt;\r\n                                            \t&lt;td&gt;Password&lt;\/td&gt;\r\n                                            \t&lt;td&gt;&lt;input type=\"password\" name=\"password\" \/&gt;&lt;\/td&gt;\r\n                                  \t&lt;\/tr&gt;\r\n                                  \t&lt;tr&gt;\r\n                                            \t&lt;td&gt;Address&lt;\/td&gt;\r\n                                            \t&lt;td&gt;&lt;input type=\"text\" name=\"address\" \/&gt;&lt;\/td&gt;\r\n                                  \t&lt;\/tr&gt;\r\n                         \t&lt;\/table&gt;\r\n                         \t&lt;input type=\"submit\" value=\"Submit\" \/&gt;&lt;\/form&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p><strong>Explanation of the code:<\/strong><\/p>\n<p>This registration form contains an action as a servlet (user_register) that will handle the request. \u2018POST\u2019 method is useful to process the request.<\/p>\n<p>The inputs are first name, last name, username, password (input type as password so that password is hidden when typed), address. Then we have a submit button. It will correspond to user_register. Parameter values thus will be passed as request.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">user_register.java (servlet)\r\npackage demotest;\r\nimport java.io.IOException;\r\nimport javax.servlet.RequestDispatcher;\r\nimport javax.servlet.ServletException;\r\nimport javax.servlet.http.HttpServlet;\r\nimport javax.servlet.http.HttpServletRequest;\r\nimport javax.servlet.http.HttpServletResponse;\r\npublic class user_register extends HttpServlet {\r\n      \tprivate static final long serialVersionUID = 1L;\r\n      \t  protected void doPost(HttpServletRequest request, HttpServletResponse response)                  throws ServletException, IOException {\r\n               \t\r\n               \tString first_name = request.getParameter(\"first_name\");\r\n               \tString last_name = request.getParameter(\"last_name\");\r\n               \tString username = request.getParameter(\"username\");\r\n               \tString password = request.getParameter(\"password\");\r\n               \tString address = request.getParameter(\"address\");\r\n               \t               \t\r\n               \tif(first_name.isEmpty() || last_name.isEmpty() || username.isEmpty() ||\r\n                                  \tpassword.isEmpty() || address.isEmpty() || contact.isEmpty())\r\n               \t{\r\n                         \tRequestDispatcher req = request.getRequestDispatcher(\"register.jsp\");\r\n                         \treq.include(request, response);\r\n               \t}\r\n               \telse\r\n               \t{\r\n                         \tRequestDispatcher req = request.getRequestDispatcher(\"register_2.jsp\");\r\n                         \treq.forward(request, response);\r\n               \t}\r\n      \t}\r\n \r\n}\r\n<\/pre>\n<p><strong>Explanation of the code:<\/strong><\/p>\n<p>user_servlet extends HttpServlet. doPost() method is called as we used POST in JSP form. using request.getParameter, we are fetching the values from request i.e first_name, last_name, username, password, address.<\/p>\n<p>We take an if condition to check if any of the parameters is empty or not. If any of the parameters is empty, then we redirect to the initial register.jsp page. Here we include request and response objects.<\/p>\n<p>If the parameters are all filled then the else body works. We fetch requestDispatcher object using req as request object. The request is forwarded to register_2.jsp along with forwarding request and response objects.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">register_2.jsp\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;Success Page&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n      \t&lt;h5&gt; --DataFlair-- &lt;\/h5&gt;\r\n       \t&lt;a&gt;&lt;b&gt;Welcome User..&lt;\/b&gt;&lt;\/a&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p><strong>Explanation of the code:<\/strong><\/p>\n<p>If we properly fill all the parameters, then we get a welcome message. The above code produces the following output.<\/p>\n<p><strong>Output:<\/strong><\/p>\n<p>When we run register.jsp, then we will get a user registration form and will take specified parameters. On clicking the submit button, the user will get a welcome message.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/image2-14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82568\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/image2-14.png\" alt=\"JSP registration form\" width=\"174\" height=\"121\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/image2-14.png 174w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/image2-14-150x104.png 150w\" sizes=\"auto, (max-width: 174px) 100vw, 174px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/image5-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82572\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/image5-8.png\" alt=\"Login form using JSP\" width=\"76\" height=\"56\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>Conclusion<\/h3>\n<p>In this article, we learned the making of sample programs like login and logout form and registration form in JSP. We saw detailed examples with step by step explanations for the code. Thus we implemented what we have learnt till now to make these sample programs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article discusses the development of login and registration programs in JSP and using MVC architecture. So let us learn how to make this form and proceed ahead. 1. Login and Logout Form in&#46;&#46;&#46;<\/p>\n","protected":false},"author":10,"featured_media":82583,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22403],"tags":[23304,23303],"class_list":["post-82566","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jsp","tag-login-using-jsp","tag-registration-form-in-jsp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Login and Registration Form in JSP - DataFlair<\/title>\n<meta name=\"description\" content=\"User Login &amp; Registration Form in JSP. Learn about the handling of user registration form using jsp. For registration form, we need table in database.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Login and Registration Form in JSP - DataFlair\" \/>\n<meta property=\"og:description\" content=\"User Login &amp; Registration Form in JSP. Learn about the handling of user registration form using jsp. For registration form, we need table in database.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-18T03:30:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-25T08:17:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/Login-Registration-Form-in-JSP.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Login and Registration Form in JSP - DataFlair","description":"User Login & Registration Form in JSP. Learn about the handling of user registration form using jsp. For registration form, we need table in database.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/","og_locale":"en_US","og_type":"article","og_title":"Login and Registration Form in JSP - DataFlair","og_description":"User Login & Registration Form in JSP. Learn about the handling of user registration form using jsp. For registration form, we need table in database.","og_url":"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2020-09-18T03:30:33+00:00","article_modified_time":"2021-08-25T08:17:01+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/Login-Registration-Form-in-JSP.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/a90b082e16aa38d207212d22b0581f33"},"headline":"Login and Registration Form in JSP","datePublished":"2020-09-18T03:30:33+00:00","dateModified":"2021-08-25T08:17:01+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/"},"wordCount":684,"commentCount":2,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/Login-Registration-Form-in-JSP.jpg","keywords":["login using jsp","registration form in jsp"],"articleSection":["JSP Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/jsp-registration-form\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/","url":"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/","name":"Login and Registration Form in JSP - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/Login-Registration-Form-in-JSP.jpg","datePublished":"2020-09-18T03:30:33+00:00","dateModified":"2021-08-25T08:17:01+00:00","description":"User Login & Registration Form in JSP. Learn about the handling of user registration form using jsp. For registration form, we need table in database.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/jsp-registration-form\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/Login-Registration-Form-in-JSP.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/Login-Registration-Form-in-JSP.jpg","width":1200,"height":628,"caption":"login and registration in JSP"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/jsp-registration-form\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"JSP Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/jsp\/"},{"@type":"ListItem","position":3,"name":"Login and Registration Form in JSP"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/a90b082e16aa38d207212d22b0581f33","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/dd6de0d647a0185cd6faf264e4ba860b0d85d08d7070766f9cd41bea5bb0b227?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/dd6de0d647a0185cd6faf264e4ba860b0d85d08d7070766f9cd41bea5bb0b227?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dd6de0d647a0185cd6faf264e4ba860b0d85d08d7070766f9cd41bea5bb0b227?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team is passionate about delivering top-notch tutorials and resources on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. With expertise in the tech industry, we simplify complex topics to help learners excel. Stay updated with our latest insights.","url":"https:\/\/data-flair.training\/blogs\/author\/dfadteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/82566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=82566"}],"version-history":[{"count":1,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/82566\/revisions"}],"predecessor-version":[{"id":82585,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/82566\/revisions\/82585"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/82583"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=82566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=82566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=82566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}