xxjb_ldps.jsp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <%@page import="com.ccgj.platform.admin.USERAction"%>
  2. <%@taglib uri="/struts-tags" prefix="s"%>
  3. <%@ page language="java" contentType="text/html; charset=utf-8"%>
  4. <%@ page pageEncoding="utf-8"%>
  5. <%
  6. String path = request.getContextPath();
  7. String basePath = request.getScheme() + "://"
  8. + request.getServerName() + ":" + request.getServerPort()
  9. + path + "/";
  10. String paramStr = java.net.URLDecoder.decode(request.getQueryString(),"utf-8");;
  11. String [] params = paramStr.split("&");
  12. String wzid=params[0].split("=")[1];
  13. String userfullname=params[1].split("=")[1];
  14. String username=params[2].split("=")[1];
  15. String userid=params[3].split("=")[1];
  16. String ldps=params[4].split("=")[1];
  17. if(ldps==""||ldps==null){
  18. %>
  19. <script>
  20. alert("请先填写批示意见!");
  21. window.location.href="<%=basePath%>main/<%=wzid%>_0/news_xxjb.html";
  22. </script>
  23. <%
  24. }
  25. String shortStr="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
  26. boolean b = new USERAction().addLdps(shortStr+ldps, wzid, userfullname, username, userid);
  27. if(b){
  28. %>
  29. <script>
  30. alert("提交成功");
  31. window.location.href="<%=basePath%>main/<%=wzid%>_0/news_xxjb.html";
  32. </script>
  33. <%
  34. }else{
  35. %>
  36. <script>
  37. alert("网络繁忙,请稍后重试!");
  38. window.location.href="<%=basePath%>main/<%=wzid%>_0/news_xxjb.html";
  39. </script>
  40. <%} %>