如何在jsp中创建忘记密码页面? [英] how to create a forgot password page in jsp?
问题描述
我创建了一个用于登录和忘记密码的jsp页面。但是当我点击登录页面中的忘记密码链接时,它没有重定向到忘记密码jsp页面。我试了很多..但我不能。请帮助我
登录页面
忘记密码
当我点击这个忘记密码时,它不会进入上述路径。
Forgotpassword.xhtml
<!DOCTYPE html PUBLIC - // W3C // DTD XHTML 1.0 Transitional // EN
http:/ /www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
< html xmlns =http://www.w3.org/1999/xhtml
xmlns:h =http://java.sun.com / jsf / html
xmlns:ui =http://java.sun.com/jsf/facelets
>
< h:head xmlns:h =#unknown>
< meta http-equiv =Cache-Controlcontent =no-cache,no-store,must-revalidate/>
< meta http-equiv =Pragmacontent =no-cache/>
< meta http-equiv =Expirescontent =0/>
< title>时间表处理系统< / title>
< link href =#{request.contextPath} /resources/css/gcpsLogin.css =stylesheettype =text / css/ >
< script type =text / javascript> //<![CDATA [
/ *在这里定义javascript * /
//
< / script>
< body>
< form method =postaction =#{request.contextPath} / j_spring_security_check>
I created a jsp page for login and forgot password. but when i click on the forgot password link in the login page , it is not redirecting to the forgotpassword jsp page.I tried a lot ..but i couldnt.Please help me
LOGIN PAGE
Forgot Password
when i click on this forgot password,it is not going to the mentioned path.
Forgotpassword.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
>
<h:head xmlns:h="#unknown">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>Timesheet Processing System</title>
<link href="#{request.contextPath}/resources/css/gcpsLogin.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">//<![CDATA[
/* Define javascript here*/
//
</script>
<body>
<form method="post" action="#{request.contextPath}/j_spring_security_check">
< h:graphicimage value =#{pathManager.path} /resources/images/welcomeimagegcps.jpg alt =替代文字xmlns:h =#unknown> | ||
|
< h:graphicimage value =# {pathManager.path} /resources/images/gcpslogo.pngxmlns:h =#unknown>
<h:graphicimage value="#{pathManager.path}/resources/images/gcpslogo.png" xmlns:h="#unknown">
| |||||||
<h:outputlabel style="font-family: 'Segoe UI Web Light'; color: #4F4F4F;" value="User ID:" xmlns:h="#unknown"> | <h:inputtext id="j_username" class="form-login" name="j_username" title="" size="30" maxlength="60" required="true" xmlns:h="#unknown"> requiredMessage="Please enter User Name"/> | <h:message for="j_username" xmlns:h="#unknown"> | |||||
<h:outputlabel style="font-family: 'Segoe UI Web Light'; color: #4F</xml>" xmlns:h="#unknown"> |
推荐答案
这篇关于如何在jsp中创建忘记密码页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!