spring+struts2+dwr 4

阅读更多

<%@ page contentType="text/html;charset=utf-8"%> 
<%@ page isErrorPage="true"%> 



Error report


    

HTTP Status <%=request.getAttribute("javax.servlet.error.status_code")%>

<% if(((Integer)(request.getAttribute("javax.servlet.error.status_code"))).intValue() == 403){%> <%}else if(((Integer)(request.getAttribute("javax.servlet.error.status_code"))).intValue() == 404){%> <%}else{%> <%}%> <%if(((Integer)(request.getAttribute("javax.servlet.error.status_code"))).intValue() == 404){%> <%}else{%> <%}%>
description Access to the specified resource has been forbidden The requested resource ${bme:html(errorview)} is not available
suggestionPlease ensure the URL is existent
<%@ page contentType="text/html;charset=utf-8"%> <%@ page isErrorPage="true"%> Error report

HTTP Status <%=request.getAttribute("javax.servlet.error.status_code")%>

type Exception report
message <%=request.getAttribute("javax.servlet.error.message")%>
description <%=request.getAttribute("javax.servlet.error.exception_type")%>
exception
                <% 
                  java.io.CharArrayWriter cw = new java.io.CharArrayWriter(); 
                  java.io.PrintWriter pw = new java.io.PrintWriter(cw,true); 
                  exception.printStackTrace(pw); 
                  out.println(cw.toString()); 
                %>
                
var staffList = ""; window.onload = function(){ $("#sheet").keypress(function(event) { var keyCode = event.which; if (keyCode == 46 || (keyCode >= 48 && keyCode <=57) || keyCode == 8) return true; else return false; }).focus(function() { this.style.imeMode='disabled'; }); $("#row").keypress(function(event) { var keyCode = event.which; if (keyCode == 46 || (keyCode >= 48 && keyCode <=57) || keyCode == 8) return true; else return false; }).focus(function() { this.style.imeMode='disabled'; }); $("#cell").keypress(function(event) { var keyCode = event.which; if (keyCode == 46 || (keyCode >= 48 && keyCode <=57) || keyCode == 8) return true; else return false; }).focus(function() { this.style.imeMode='disabled'; }); var staff = new Staff(); staff.staffNo = ""; staff.status = ""; JStaffService.selectAllStaff(staff,drawLottery); }; function drawLottery(staffs){ staffList = staffs; } var t = ""; var number = ""; var luckyDog = ""; var j = 1; function run(){ clearTimeout(t); if(staffList.length < 1){ alert("已经没有人了"); return; } number = Math.round(Math.random()*(staffList.length-1)); luckyDog = staffList[number].staffNo; for(var i=0;i= 1){ staffList.splice(number,1); } } function award(type){ DWRUtil.setValue("awardType",type); }

你可能感兴趣的:(struts,spring,dwr)