岗位职能设置的jsp页面、properties页面代码
程序员文章站
2022-05-01 17:30:06
页面
<%@ page language="java" contenttype="text/html; charset=utf-8"
pa...
页面
<%@ page language="java" contenttype="text/html; charset=utf-8" pageencoding="utf-8" iselignored="false"%> <%@ include file="/jsp/public/include/taglib.jsp"%> <%@ page contenttype="text/html; charset=utf-8" import="java.util.resourcebundle" %> <!doctype html public "-//w3c//dtd html 4.01 transitional//en" "https://www.w3.org/tr/html4/loose.dtd"> <html> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>insert title here</title> <%resourcebundle res = resourcebundle.getbundle("tree"); %> <% string loginname = res.getstring("tree.jggw.sjaqglg.gwmc"); string loginpassword = res.getstring("tree.jggw.sjaqglg.gwdm"); %> <script type="text/javascript"> var loginname = "<%=loginname %>"; var loginpassword = "<%=loginpassword %>"; alert(loginname+":"+loginpassword); </script> </head> <body> aaaaaaaaaaaaaaaaaaaaaaaa 姓名:<%=loginname %> 账号:<%=loginpassword %> </body> </html>
properties页面
#职能树代码---公共职能树 tree.jggw.zndm=04 #岗位初始机关代码 tree.jggw.gw_swjgdm=14400000000 #数据安全评估办公室 tree.jggw.swjgdm=14400000999 #管理岗 #tree.jggw.gwdm=144000000449 #tree.jggw.gwmc=数据安全评估管理岗 #tree.jggw.gwxh=609d90ab7819496185ed34e493da7231 #tree.jggw.gwzxr=评估管理人员列表 #执行岗 #数据安全评估执行岗代码 tree.jggw.gwdm=144000000450 tree.jggw.gwmc=数据安全评估执行岗 tree.jggw.gwxh=f3d2479f44264b39bb3b41edecb91a45 tree.jggw.gwzxr=评估执行人员列表
无需配置文件