<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Login application in Java using MVC and MySQL	</title>
	<atom:link href="https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/feed" rel="self" type="application/rss+xml" />
	<link>https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-login-application-in-java-using-model-view-controllermvc-design-pattern</link>
	<description>A Technology Base</description>
	<lastBuildDate>Sun, 26 Mar 2023 17:26:32 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>
		By: Ravi Bandakkanavar		</title>
		<link>https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-18#comment-26485</link>

		<dc:creator><![CDATA[Ravi Bandakkanavar]]></dc:creator>
		<pubDate>Fri, 25 Mar 2022 00:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://sh054.global.temp.domains/~krazyliv/krazytech/?p=1918#comment-26485</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-18#comment-26481&quot;&gt;Pranshu Patel&lt;/a&gt;.

Hi Pranshu,

The error is only with the database connection. What version of MySQL are you using? You may need to change the connection parameter accordingly.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-18#comment-26481">Pranshu Patel</a>.</p>
<p>Hi Pranshu,</p>
<p>The error is only with the database connection. What version of MySQL are you using? You may need to change the connection parameter accordingly.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Pranshu Patel		</title>
		<link>https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-18#comment-26481</link>

		<dc:creator><![CDATA[Pranshu Patel]]></dc:creator>
		<pubDate>Mon, 14 Mar 2022 06:53:09 +0000</pubDate>
		<guid isPermaLink="false">http://sh054.global.temp.domains/~krazyliv/krazytech/?p=1918#comment-26481</guid>

					<description><![CDATA[List of errors I am dealing with even if I have followed same names and structure!!!!!!

Type Exception Report

Message Cannot invoke &quot;java.sql.Connection.createStatement()&quot; because &quot;con&quot; is null

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

java.lang.NullPointerException: Cannot invoke &quot;java.sql.Connection.createStatement()&quot; because &quot;con&quot; is null
	com.mvc.dao.LoginDao.authenticateUser(LoginDao.java:27)
	com.mvc.controller.LoginServlet.doPost(LoginServlet.java:35)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Note The full stack trace of the root cause is available in the server logs.

Apache Tomcat/9.0.55]]></description>
			<content:encoded><![CDATA[<p>List of errors I am dealing with even if I have followed same names and structure!!!!!!</p>
<p>Type Exception Report</p>
<p>Message Cannot invoke &#8220;java.sql.Connection.createStatement()&#8221; because &#8220;con&#8221; is null</p>
<p>Description The server encountered an unexpected condition that prevented it from fulfilling the request.</p>
<p>Exception</p>
<p>java.lang.NullPointerException: Cannot invoke &#8220;java.sql.Connection.createStatement()&#8221; because &#8220;con&#8221; is null<br />
	com.mvc.dao.LoginDao.authenticateUser(LoginDao.java:27)<br />
	com.mvc.controller.LoginServlet.doPost(LoginServlet.java:35)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:681)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:764)<br />
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)<br />
Note The full stack trace of the root cause is available in the server logs.</p>
<p>Apache Tomcat/9.0.55</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Bandakkanavar		</title>
		<link>https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-18#comment-26284</link>

		<dc:creator><![CDATA[Ravi Bandakkanavar]]></dc:creator>
		<pubDate>Thu, 04 Mar 2021 17:55:53 +0000</pubDate>
		<guid isPermaLink="false">http://sh054.global.temp.domains/~krazyliv/krazytech/?p=1918#comment-26284</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-18#comment-26283&quot;&gt;Alexandra Geib&lt;/a&gt;.

Hi,

You can achieve it by checking whether the session attribute is set. You can refer to the below link for the example.

https://krazytech.com/programs/session-role-based-java-login-example]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-18#comment-26283">Alexandra Geib</a>.</p>
<p>Hi,</p>
<p>You can achieve it by checking whether the session attribute is set. You can refer to the below link for the example.</p>
<p><a href="https://krazytech.com/programs/session-role-based-java-login-example" rel="ugc">https://krazytech.com/programs/session-role-based-java-login-example</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alexandra Geib		</title>
		<link>https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-18#comment-26283</link>

		<dc:creator><![CDATA[Alexandra Geib]]></dc:creator>
		<pubDate>Thu, 04 Mar 2021 15:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://sh054.global.temp.domains/~krazyliv/krazytech/?p=1918#comment-26283</guid>

					<description><![CDATA[Hello,

Thank you for this. It is very helpful. Quick question. Is there a way that I can check if a user is logged in or not? I have a sign in/register button and once the user logs in, I would like to change that text to their username instead or to put the log out button in its place.]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>Thank you for this. It is very helpful. Quick question. Is there a way that I can check if a user is logged in or not? I have a sign in/register button and once the user logs in, I would like to change that text to their username instead or to put the log out button in its place.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Bandakkanavar		</title>
		<link>https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-18#comment-26229</link>

		<dc:creator><![CDATA[Ravi Bandakkanavar]]></dc:creator>
		<pubDate>Mon, 12 Oct 2020 08:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://sh054.global.temp.domains/~krazyliv/krazytech/?p=1918#comment-26229</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-18#comment-26225&quot;&gt;simmy&lt;/a&gt;.

You need to write a logic in script to frame a JSON object and read it in servlet. Altogether a different application.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-18#comment-26225">simmy</a>.</p>
<p>You need to write a logic in script to frame a JSON object and read it in servlet. Altogether a different application.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: simmy		</title>
		<link>https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-18#comment-26225</link>

		<dc:creator><![CDATA[simmy]]></dc:creator>
		<pubDate>Fri, 09 Oct 2020 04:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://sh054.global.temp.domains/~krazyliv/krazytech/?p=1918#comment-26225</guid>

					<description><![CDATA[Great efforts....can u help me with how to create multiple page after clicking on submit button in login page using json without creating multiple jsp pages. As i am new to JSON. also what is the difference between Dao and DaoImpl class. 
 need on urgent basis.]]></description>
			<content:encoded><![CDATA[<p>Great efforts&#8230;.can u help me with how to create multiple page after clicking on submit button in login page using json without creating multiple jsp pages. As i am new to JSON. also what is the difference between Dao and DaoImpl class.<br />
 need on urgent basis.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Bandakkanavar		</title>
		<link>https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-17#comment-26209</link>

		<dc:creator><![CDATA[Ravi Bandakkanavar]]></dc:creator>
		<pubDate>Fri, 25 Sep 2020 05:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://sh054.global.temp.domains/~krazyliv/krazytech/?p=1918#comment-26209</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-17#comment-26206&quot;&gt;student&lt;/a&gt;.

Hi,

The business logic is included in DAO file. Go to LoginDao.java class and add the other table details there.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-17#comment-26206">student</a>.</p>
<p>Hi,</p>
<p>The business logic is included in DAO file. Go to LoginDao.java class and add the other table details there.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: student		</title>
		<link>https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-17#comment-26206</link>

		<dc:creator><![CDATA[student]]></dc:creator>
		<pubDate>Fri, 25 Sep 2020 03:22:45 +0000</pubDate>
		<guid isPermaLink="false">http://sh054.global.temp.domains/~krazyliv/krazytech/?p=1918#comment-26206</guid>

					<description><![CDATA[Hi,
how to change code :
one registration form but two separate tables.
thank you]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
how to change code :<br />
one registration form but two separate tables.<br />
thank you</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Bandakkanavar		</title>
		<link>https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-17#comment-26167</link>

		<dc:creator><![CDATA[Ravi Bandakkanavar]]></dc:creator>
		<pubDate>Fri, 10 Jul 2020 17:45:04 +0000</pubDate>
		<guid isPermaLink="false">http://sh054.global.temp.domains/~krazyliv/krazytech/?p=1918#comment-26167</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-17#comment-26165&quot;&gt;nrsffz&lt;/a&gt;.

Hi,
I have analyzed the issue. The issue is mainly because of using the higher version of the MySQL server.
The Mysql connection string and driver details need to be updated if you are using MySQL version 5+. If not, the same code will work.

Please find a similar code here. You can refer to the jar file from here. – https://krazytech.com/wp-content/uploads/2020/07/RegistrationMvc.zip]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-17#comment-26165">nrsffz</a>.</p>
<p>Hi,<br />
I have analyzed the issue. The issue is mainly because of using the higher version of the MySQL server.<br />
The Mysql connection string and driver details need to be updated if you are using MySQL version 5+. If not, the same code will work.</p>
<p>Please find a similar code here. You can refer to the jar file from here. – <a href="https://krazytech.com/wp-content/uploads/2020/07/RegistrationMvc.zip" rel="ugc">https://krazytech.com/wp-content/uploads/2020/07/RegistrationMvc.zip</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: nrsffz		</title>
		<link>https://krazytech.com/programs/a-login-application-in-java-using-model-view-controllermvc-design-pattern/comment-page-17#comment-26165</link>

		<dc:creator><![CDATA[nrsffz]]></dc:creator>
		<pubDate>Wed, 08 Jul 2020 16:18:04 +0000</pubDate>
		<guid isPermaLink="false">http://sh054.global.temp.domains/~krazyliv/krazytech/?p=1918#comment-26165</guid>

					<description><![CDATA[Hi, I&#039;m getting an error. I&#039;m already check my LoginServlet but there&#039;s no error.

HTTP Status 404 – Not Found


Type Status Report

Message /LoginMvc/LoginServlet

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.]]></description>
			<content:encoded><![CDATA[<p>Hi, I&#8217;m getting an error. I&#8217;m already check my LoginServlet but there&#8217;s no error.</p>
<p>HTTP Status 404 – Not Found</p>
<p>Type Status Report</p>
<p>Message /LoginMvc/LoginServlet</p>
<p>Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
