As follows:
<%
String platform = config.getstring ("platform.division");
String Webpath = Request.getcontextpath ();
String basepath = request.getscheme () + "://"
+ request.getservername () + ":" + request.getserverport ()
+ Webpath + "/";
Uservo Curruser = (Uservo) session.getattribute ("Loginuser");
%>
<script type= "Text/javascript" >
<%if (curruser==null) {%>
Parent.window.location = "login.jsp";
<%} else {%>
Loginuser.setvalue (<%=CURRUSER.GETDEPT_PK ()%>, "<%=curruser.getdept_name ()%>", "<%= Curruser.getuname ()%> "," <%=curruser.getrole_pks ()%> "," <%=curruser.getrole_authority ()%> "," <% =curruser.getlatitude ()%> "," <%=curruser.getlongitude ()%> "," <%=curruser.getmap_zoom_level ()%> "," <%=curruser.getdept (). Getlayer ()%> ");
<%}%>
var platform = "<%=platform%>";
var _dept_pk = LOGINUSER.DEPT_PK;
var _dept_name = Loginuser.dept_name;
var _dept_pk_edit = LOGINUSER.DEPT_PK;
var _dept_name_edit = Loginuser.dept_name;
var _edit_status; 0:add;1:update
var dpk= "-1";
var photofilename = ';
var asscualzeronodetext= ';
var asscualonenodetext= ';
var asscualtwonodetext= ';
</script>