當前位置: 首頁>>代碼示例>>Java>>正文


Java ActionMapping.getParameter方法代碼示例

本文整理匯總了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);
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:27,代碼來源:LearningAction.java

示例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;
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:27,代碼來源:AuthoringConditionAction.java

示例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);
}
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:14,代碼來源:SpreadsheetForm.java

示例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);
}
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:17,代碼來源:DokumaranForm.java

示例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);
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:16,代碼來源:AdminAction.java

示例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);
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:32,代碼來源:MonitoringAction.java

示例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);
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:35,代碼來源:AuthoringAction.java

示例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);
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:12,代碼來源:ViewItemAction.java

示例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;
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:28,代碼來源:AuthoringNotebookConditionAction.java

示例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);
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:16,代碼來源:AdminAction.java

示例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);
}
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:15,代碼來源:DacoForm.java

示例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);
}
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:13,代碼來源:CommonCartridgeForm.java

示例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);
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:15,代碼來源:AdminAction.java

示例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);
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:57,代碼來源:AuthoringAction.java

示例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);
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:46,代碼來源:LearningAction.java


注:本文中的org.apache.struts.action.ActionMapping.getParameter方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。