当前位置: 首页>>代码示例>>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;未经允许,请勿转载。