本文整理汇总了Java中org.apache.struts.action.ActionMapping.getParameter方法的典型用法代码示例。如果您正苦于以下问题:Java ActionMapping.getParameter方法的具体用法?Java ActionMapping.getParameter怎么用?Java ActionMapping.getParameter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.struts.action.ActionMapping
的用法示例。
在下文中一共展示了ActionMapping.getParameter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: execute
import org.apache.struts.action.ActionMapping; //导入方法依赖的package包/类
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws IOException, ServletException {
String param = mapping.getParameter();
//-----------------------Spreadsheet Learner function ---------------------------
if (param.equals("start")) {
return start(mapping, form, request, response);
}
if (param.equals("saveUserSpreadsheet")) {
return saveUserSpreadsheet(mapping, form, request, response);
}
if (param.equals("finish")) {
return finish(mapping, form, request, response);
}
//================ Reflection =======================
if (param.equals("newReflection")) {
return newReflection(mapping, form, request, response);
}
if (param.equals("submitReflection")) {
return submitReflection(mapping, form, request, response);
}
return mapping.findForward(SpreadsheetConstants.ERROR);
}
示例2: execute
import org.apache.struts.action.ActionMapping; //导入方法依赖的package包/类
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
String param = mapping.getParameter();
if (param.equals("newConditionInit")) {
return newConditionInit(mapping, form, request, response);
}
if (param.equals("editCondition")) {
return editCondition(mapping, form, request, response);
}
if (param.equals("saveOrUpdateCondition")) {
return saveOrUpdateCondition(mapping, form, request, response);
}
if (param.equals("removeCondition")) {
return removeCondition(mapping, form, request, response);
}
if (param.equals("upCondition")) {
return upCondition(mapping, form, request, response);
}
if (param.equals("downCondition")) {
return downCondition(mapping, form, request, response);
}
return null;
}
示例3: reset
import org.apache.struts.action.ActionMapping; //导入方法依赖的package包/类
@Override
public void reset(ActionMapping mapping, HttpServletRequest request) {
String param = mapping.getParameter();
//if it is start page, all data read out from database or current session
//so need not reset checkbox to refresh value!
if (!StringUtils.equals(param, "start") && !StringUtils.equals(param, "initPage")) {
spreadsheet.setLockWhenFinished(false);
spreadsheet.setDefineLater(false);
spreadsheet.setLearnerAllowedToSave(true);
spreadsheet.setMarkingEnabled(false);
spreadsheet.setReflectOnActivity(false);
}
}
示例4: reset
import org.apache.struts.action.ActionMapping; //导入方法依赖的package包/类
@Override
public void reset(ActionMapping mapping, HttpServletRequest request) {
String param = mapping.getParameter();
// if it is start page, all data read out from database or current session
// so need not reset checkbox to refresh value!
if (!StringUtils.equals(param, "start") && !StringUtils.equals(param, "initPage")) {
dokumaran.setTimeLimit(0);
dokumaran.setShowChat(false);
dokumaran.setShowLineNumbers(false);
dokumaran.setLockWhenFinished(false);
dokumaran.setDefineLater(false);
dokumaran.setUseSelectLeaderToolOuput(false);
dokumaran.setAllowMultipleLeaders(false);
dokumaran.setReflectOnActivity(false);
}
}
示例5: execute
import org.apache.struts.action.ActionMapping; //导入方法依赖的package包/类
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
String param = mapping.getParameter();
// -----------------------BasicLTI Author function ---------------------------
if (param.equals("start")) {
return start(mapping, form, request, response);
}
if (param.equals("saveContent")) {
return saveContent(mapping, form, request, response);
}
return start(mapping, form, request, response);
}
示例6: execute
import org.apache.struts.action.ActionMapping; //导入方法依赖的package包/类
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws IOException, ServletException, JSONException {
String param = mapping.getParameter();
request.setAttribute("initialTabId", WebUtil.readLongParam(request, AttributeNames.PARAM_CURRENT_TAB, true));
if (param.equals("summary")) {
return summary(mapping, form, request, response);
}
if (param.equals("itemSummary")) {
return itemSummary(mapping, form, request, response);
}
if (param.equals("saveUserMark")) {
return saveUserMark(mapping, form, request, response);
}
if (param.equals("setSubmissionDeadline")) {
return setSubmissionDeadline(mapping, form, request, response);
}
if (param.equals("exportExcel")) {
return exportExcel(mapping, form, request, response);
}
if (param.equals("getMarkChartData")) {
return getMarkChartData(mapping, form, request, response);
}
if (param.equals("statistic")) {
return statistic(mapping, form, request, response);
}
return mapping.findForward(ScratchieConstants.ERROR);
}
示例7: execute
import org.apache.struts.action.ActionMapping; //导入方法依赖的package包/类
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
String param = mapping.getParameter();
if (param.equals("start")) {
ToolAccessMode mode = WebUtil.readToolAccessModeAuthorDefaulted(request);
request.setAttribute(AttributeNames.ATTR_MODE, mode.toString());
return start(mapping, form, request, response);
}
if (param.equals("definelater")) {
// update define later flag to true
Long contentId = new Long(WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID));
IPeerreviewService service = getPeerreviewService();
Peerreview peerreview = service.getPeerreviewByContentId(contentId);
peerreview.setDefineLater(true);
service.saveOrUpdatePeerreview(peerreview);
//audit log the teacher has started editing activity in monitor
service.auditLogStartEditingActivityInMonitor(contentId);
request.setAttribute(AttributeNames.ATTR_MODE, ToolAccessMode.TEACHER.toString());
return start(mapping, form, request, response);
}
if (param.equals("initPage")) {
return initPage(mapping, form, request, response);
}
if (param.equals("updateContent")) {
return updateContent(mapping, form, request, response);
}
return mapping.findForward(PeerreviewConstants.ERROR);
}
示例8: execute
import org.apache.struts.action.ActionMapping; //导入方法依赖的package包/类
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws IOException, ServletException {
String param = mapping.getParameter();
if (param.equals("reviewItem")) {
return reviewItem(mapping, form, request, response);
}
return mapping.findForward(SpreadsheetConstants.ERROR);
}
示例9: execute
import org.apache.struts.action.ActionMapping; //导入方法依赖的package包/类
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
String param = mapping.getParameter();
if (param.equals("newConditionInit")) {
return newConditionInit(mapping, form, request, response);
}
if (param.equals("editCondition")) {
return editCondition(mapping, form, request, response);
}
if (param.equals("saveOrUpdateCondition")) {
return saveOrUpdateCondition(mapping, form, request, response);
}
if (param.equals("removeCondition")) {
return removeCondition(mapping, form, request, response);
}
if (param.equals("upCondition")) {
return upCondition(mapping, form, request, response);
}
if (param.equals("downCondition")) {
return downCondition(mapping, form, request, response);
}
return null;
}
示例10: execute
import org.apache.struts.action.ActionMapping; //导入方法依赖的package包/类
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
String param = mapping.getParameter();
// -----------------------ImageGallery Author function ---------------------------
if (param.equals("start")) {
return start(mapping, form, request, response);
}
if (param.equals("saveContent")) {
return saveContent(mapping, form, request, response);
}
return start(mapping, form, request, response);
}
示例11: reset
import org.apache.struts.action.ActionMapping; //导入方法依赖的package包/类
@Override
public void reset(ActionMapping mapping, HttpServletRequest request) {
String param = mapping.getParameter();
// if it is start page, all data read out from database or current
// session
// so need not reset checkbox to refresh value!
if (!StringUtils.equals(param, "start") && !StringUtils.equals(param, "initPage")) {
daco.setLockOnFinished(false);
daco.setDefineLater(false);
daco.setReflectOnActivity(false);
}
}
示例12: reset
import org.apache.struts.action.ActionMapping; //导入方法依赖的package包/类
@Override
public void reset(ActionMapping mapping, HttpServletRequest request) {
String param = mapping.getParameter();
// if it is start page, all data read out from database or current session
// so need not reset checkbox to refresh value!
if (!StringUtils.equals(param, "start") && !StringUtils.equals(param, "initPage")) {
commonCartridge.setLockWhenFinished(false);
commonCartridge.setDefineLater(false);
commonCartridge.setRunAuto(false);
commonCartridge.setReflectOnActivity(false);
}
}
示例13: execute
import org.apache.struts.action.ActionMapping; //导入方法依赖的package包/类
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
String param = mapping.getParameter();
if (param.equals("start")) {
return start(mapping, form, request, response);
}
if (param.equals("saveContent")) {
return saveContent(mapping, form, request, response);
}
return start(mapping, form, request, response);
}
示例14: execute
import org.apache.struts.action.ActionMapping; //导入方法依赖的package包/类
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
String param = mapping.getParameter();
// -----------------------Daco Author function
// ---------------------------
if (param.equals("start")) {
ToolAccessMode mode = WebUtil.readToolAccessModeAuthorDefaulted(request);
request.setAttribute(AttributeNames.ATTR_MODE, mode.toString());
return start(mapping, form, request);
}
if (param.equals("definelater")) {
// update define later flag to true
Long contentId = new Long(WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID));
IDacoService service = getDacoService();
Daco daco = service.getDacoByContentId(contentId);
daco.setDefineLater(true);
service.saveOrUpdateDaco(daco);
//audit log the teacher has started editing activity in monitor
service.auditLogStartEditingActivityInMonitor(contentId);
request.setAttribute(AttributeNames.ATTR_MODE, ToolAccessMode.TEACHER.toString());
return start(mapping, form, request);
}
if (param.equals("initPage")) {
return initPage(mapping, form, request, response);
}
if (param.equals("updateContent")) {
return updateContent(mapping, form, request, response);
}
// ----------------------- Add daco question function
// ---------------------------
if (param.equals("newQuestion")) {
return newQuestion(mapping, form, request);
}
if (param.equals("editQuestion")) {
return editQuestion(mapping, form, request);
}
if (param.equals("saveOrUpdateQuestion")) {
return saveOrUpdateQuestion(mapping, form, request);
}
if (param.equals("removeQuestion")) {
return removeQuestion(mapping, form, request);
}
if (param.equals("newAnswerOption")) {
return newAnswerOption(mapping, form, request);
}
if (param.equals("removeAnswerOption")) {
return removeAnswerOption(mapping, form, request);
}
return mapping.findForward(DacoConstants.ERROR);
}
示例15: execute
import org.apache.struts.action.ActionMapping; //导入方法依赖的package包/类
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException, JSONException, ScratchieApplicationException, SchedulerException {
String param = mapping.getParameter();
// -----------------------Scratchie Learner function ---------------------------
if (param.equals("start")) {
return start(mapping, form, request, response);
}
if (param.equals("recordItemScratched")) {
return recordItemScratched(mapping, form, request, response);
}
if (param.equals("launchTimeLimit")) {
return launchTimeLimit(mapping, form, request, response);
}
if (param.equals("finish")) {
return finish(mapping, form, request, response);
}
if (param.equals("autosaveBurningQuestions")) {
return autosaveBurningQuestions(mapping, form, request, response);
}
if (param.equals("showResults")) {
return showResults(mapping, form, request, response);
}
if (param.equals("editBurningQuestion")) {
return editBurningQuestion(mapping, form, request, response);
}
if (param.equals("like")) {
return like(mapping, form, request, response);
}
if (param.equals("removeLike")) {
return removeLike(mapping, form, request, response);
}
// ================ Reflection =======================
if (param.equals("newReflection")) {
return newReflection(mapping, form, request, response);
}
if (param.equals("submitReflection")) {
return submitReflection(mapping, form, request, response);
}
return mapping.findForward(ScratchieConstants.ERROR);
}