editprofile.jsp

来自「spring struts hibernate」· JSP 代码 · 共 23 行

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

<%-- This page is used to call the userForm.edit action.
     This serves as a workaround to use Struts Menu with JSF - since
     the menu.jsp cannot contain f:view tags, and hence any JSF tags
--%>
<f:view>

<h:form id="userProfile">
    <h:commandLink action="#{userForm.edit}" id="edit"/>
</h:form>

<script type="text/javascript">
    function submitForm() {
        var f = document.forms['userProfile'];
        f.elements['userProfile:_link_hidden_'].value='userProfile:edit';
        f.submit();
    }
    window.onload=submitForm;
</script>

</f:view>

⌨️ 快捷键说明

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