我有一个用于审核的 Web 应用程序。一切正常,除了一个动作。未提交用于输入每个分配的审计的用户和位置的 JSP 表单
从我的 Windows7 机器上的 Firefox 浏览器(也在安全模式下)执行时,它可以正常工作。在我的机器中使用其他机器或其他浏览器(谷歌浏览器)时,该操作不会执行,而只是重定向。我在 Eclipse 中为该特定方法设置了一个断点,发现除非从我的 Windows7/Firefox 访问,否则它不会被命中。
这种行为可能有任何原因吗?我该如何解决?
资源:
审计.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="com.hereafter.audit.ui.servlet" namespace="/audit"
extends="struts-default,json-default">
....
<action name="*Audit" class="com.hereafter.audit.ui.servlet.AuditAction" method="{1}">
<result name="success" type="redirectAction">
<param name="actionName">jspAudit</param>
<param name="namespace">/audit</param>
</result>
<result name="message">/audit/pages/template/Message.jsp</result>
</action>
....
</package>
</struts>
分配审计.jsp
<%@ taglib prefix="s" uri="/struts-tags"%>
<form id="AuditAssignForm" action="assignAudit.action" method="post">
<div >
<h5>Instruction Details</h5>
<label>Users :</label>
<s:select id="user-multiselect" name="assignment.userList"
cssClass="input-xlarge" multiple="multiple" list="userList"
listKey="userID" listValue="userName"></s:select>
<label>Start Time :</label>
<div id="datetimeStartTime" class="input-append date">
<input data-format="dd/MM/yyyy hh:mm:ss"
name="assignment.scheduleInformation.timeStart" type="text"
class="input-large"></input> <span class="add-on"> <i
data-time-icon="icon-time" data-date-icon="icon-calendar"> </i>
</span>
</div>
<label>End Time</label>
<div id="datetimeEndTime" class="input-append date">
<input data-format="dd/MM/yyyy hh:mm:ss"
name="assignment.scheduleInformation.timeEnd" type="text"
class="input-large"></input> <span class="add-on"> <i
data-time-icon="icon-time" data-date-icon="icon-calendar"> </i>
</span>
</div>
<label>Events</label>
<s:select id="event-drop-down" cssClass="input-xlarge"
list="eventList" listKey="eventID" listValue="eventName"></s:select>
<label>Audit Type</label> <select name="assignment.auditType">
<option value="LIVE">LIVE VIEW</option>
<option value="RECORDED">RECORDED</option>
</select>
<div>
<button id="assign-audit-button" class="btn btn-primary"
type="submit">
<i class="icon-save"></i> Save
</button>
<a href="#myModal" data-toggle="modal" class="btn">Cancel</a>
<div class="btn-group"></div>
</div>
</div>
<div class="block span6">
<div class="block-heading">
<a>Locations</a>
</div>
<div class="block-body"
style="min-height: 250px; height: 350px; overflow: auto;">
<div id="location-tree"></div>
<div class="clearfix"></div>
</div>
</div>
<s:hidden name="audit.id"></s:hidden>
</form>
</div>