passwordhint.jsp

来自「appfuse一套结合STRUTS+SPRING+HIBERNATE的框架」· JSP 代码 · 共 29 行

JSP
29
字号
<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="user.passwordHint"/></title>

<f:view>

<p>Looking up password hint for <c:out value="${param.username}"/>...</p>

<h:form id="passwordForm">
<h:inputHidden id="username" value="#{passwordHint.username}"/>

<%-- JSF Hack for the Display Tag, from James Violette --%>
<%-- 1. Create a dummy actionLink, w/ no value         --%>
<h:commandLink action="#{passwordHint.execute}" id="execute">
    <f:param name="username" value=""/>
</h:commandLink>

</h:form>

<%-- 2. Write your own JavaScript function that's easy to call --%>
<script type="text/javascript">
    var f = document.forms['passwordForm'];
    f.elements['passwordForm:_link_hidden_'].value='passwordForm:execute';
    f.elements['username'].value='<c:out value="${param.username}"/>';
    f.submit();
</script>

</f:view>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?