Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

<%--@elvariable id=\"loginFailed\" type=\"java.lang.Boolean\"--%> <template:logg

ID: 3851153 • Letter: #

Question

<%--@elvariable id="loginFailed" type="java.lang.Boolean"--%>
<template:loggedOut htmlTitle="Log In" bodyTitle="Log In">
You must log in to access the customer support site.<br /><br />
<c:if test="${loginFailed}">
<b>The username and password you entered are not correct. Please try
again.</b><br /><br />
</c:if>
<form method="POST" action="<c:url value="/login" />">
Username<br />
<input type="text" name="username" /><br /><br />
Password<br />
<input type="password" name="password" /><br /><br />
<input type="submit" value="Log In" />
<input type="submit" value="Forget Password?" />
</form>
</template:loggedOut>

Add Forgot Password Functionality: (On the login screen, below the login button add a link forgot password. On clicking on the link display a form with the following option to enter your email address:Once the user enters his email address, send the password associated with his email address to his email id.

Existing Related Files:

login.jsp

The page has Forget Password button but NOT WORKING!. If i click Forget Password then it would display "The username and password you entered are not correct. Please try
again".

I need the class.

I have the button Forget Password. So i want the user to click on the Forget Password and the user should be taken to the link where it ask for user email address and a submit button.

Explanation / Answer

Find the corrected code below.

login.jsp

<%--@elvariable id="loginFailed" type="java.lang.Boolean"--%>
<template:loggedOut htmlTitle="Log In" bodyTitle="Log In">
You must log in to access the customer support site.<br /><br />
<c:if test="${loginFailed}">
<b>The username and password you entered are not correct. Please try
again.</b><br /><br />
</c:if>
<form method="POST" action="<c:url value="/login" />">
Username<br />
<input type="text" name="username" /><br /><br />
Password<br />
<input type="password" name="password" /><br /><br />
<input type="submit" value="Log In" />
<span class="psw">Forgot <a href="forgot_password.html">password?</a></span>
</form>
</template:loggedOut>

forgot_password.html

<h1>Change Password</h1>

<form method="post" action="">

<label for="email">EMail:</label>
<input type="email" id="email" name="email" title="E Mail" />

<p class="form-actions">
<input type="submit" value="Submit" title="Submit" />
</p>

</form>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote