showdata.jsp
1.01 KB
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="com.weaver.formmodel.mobile.manager.MobileUserInit" %>
<%@page import="com.weaver.formmodel.util.StringHelper" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.hrm.User" %>
<%
User user = MobileUserInit.getUser(request, response);
if (user == null) {
out.println("服务器端重置了登录信息,请重新登录");
return;
}
String shortKey = StringHelper.null2String(request.getParameter("key"));
String url = "/spa/edc/static4mobile/index.html#/app/list";
if (!"".equals(shortKey)) {
RecordSet rs = new RecordSet();
rs.executeQuery("select appid as id from edc_form_page where shortkey = ?", shortKey);
if (rs.next()) {
String id = StringHelper.null2String(rs.getString("id"));
url = "/spa/edc/static4mobile/index.html#/app/analysis/" + id;
}
}
%>
<script type="text/javascript">
location.href = "<%=url %>";
</script>