savefunction.jsp
来自「Java开发的权限管理的例子」· JSP 代码 · 共 63 行
JSP
63 行
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/jsp/common.jsp"%>
<html:html locale="true">
<head>
<link title=Style href="../../common/css/style.css" type=text/css rel=stylesheet>
<title>创建权限</title>
</head>
<br>
<br>
<script language="javascript">
function checkform() {
if(document.all.function.name.value=="")
{
alert("请输入权限名!");
document.all.function.name.focus();
return false;
}
if(document.all.function.protectFunction.value=="")
{
alert("请输入受保护的权限名称!");
document.all.function.protectFunction.focus();
return false;
}
return true ;
}
</script>
<html:form action="member/right/saveFunction.do" onsubmit="return checkform()">
<table width="489" height="129" border="0" align="center" bordercolor="#0099FF" class="tableBorder">
<tr>
<th colspan="2">创建权限</th>
</tr>
<tr>
<td class="forumRow"><div align="center">name</div></td>
<td class="forumRow"><input name="function.name" type="text" value=""></td>
</tr>
<tr>
<td class="forumRow"><div align="center">parentName</div></td>
<td class="forumRow"><input name="function.parentName" type="text" value=""></td>
</tr>
<tr>
<td class="forumRow"><div align="center">url</div></td>
<td class="forumRow"><input name="function.url" type="text" value=""></td>
</tr>
<tr>
<td class="forumRow"><div align="center">protectFunction</div></td>
<td class="forumRow"><input name="function.protectFunction" type="text" value=""></td>
</tr>
<tr>
<td class="forumRow"><div align="center">note</div></td>
<td class="forumRow"><input name="function.note" type="text" value=""></td>
</tr>
<tr>
<td colspan="2" class="forumRow"><div align="center">
<html:submit value="添加"/>
<html:reset value="重置"/>
</div></td>
</tr>
</table>
</html:form>
</html:html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?