List of usage examples for javax.servlet.http HttpServletRequest getParameter
public String getParameter(String name);
String
, or null
if the parameter does not exist. From source file:com.yuga.ygplatform.modules.sys.web.TagController.java
/** * treeselect.tag/*from w w w .jav a 2 s . co m*/ */ @RequestMapping(value = "treeselect") public String treeselect(HttpServletRequest request, Model model) { model.addAttribute("url", request.getParameter("url")); // ?URL model.addAttribute("extId", request.getParameter("extId")); // ?ID model.addAttribute("checked", request.getParameter("checked")); // ??? model.addAttribute("selectIds", request.getParameter("selectIds")); // ID model.addAttribute("module", request.getParameter("module")); // ?CMSCategory return "modules/sys/tagTreeselect"; }
From source file:za.ac.cput.project.hospitalmanagement.api.TreatmentApi.java
@RequestMapping(value = "/updateTreatment", method = RequestMethod.GET) public String updateTreatment(HttpServletRequest request) { String dateAdmitted = request.getParameter("dateAdmitted"); String dateDischarged = request.getParameter("dateDischarged"); String treatmentID = request.getParameter("treatmentID"); Long id = Long.parseLong(treatmentID); return service.updateTreatment(dateAdmitted, dateDischarged, id); }
From source file:com.zx.stlife.controller.wx.LoginWxController.java
@RequestMapping(value = "/login", method = RequestMethod.GET) public String login(HttpServletRequest request) { String backUrl = request.getParameter("backUrl"); String url = null;/*from www . jav a 2s . co m*/ if (StringUtils.isBlank(backUrl)) { if (oauthUrlWithNotBackUrl == null) { WxAccount wxAccount = wxAccountService.get(); oauthUrlWithNotBackUrl = "redirect:" + ConstWeixinH5.OAUTH_URL.replace("APPID", wxAccount.getAppId()).replace("REDIRECT_URL", Encodes.urlEncode(ConstWeixinH5.REDIRECT_URL)); } url = oauthUrlWithNotBackUrl; } else { String redirectUrl = Encodes.urlEncode(ConstWeixinH5.REDIRECT_URL + "?backUrl=" + backUrl); WxAccount wxAccount = wxAccountService.get(); // ? url = "redirect:" + ConstWeixinH5.OAUTH_URL.replace("APPID", wxAccount.getAppId()) .replace("REDIRECT_URL", redirectUrl); } return url; }
From source file:com.digitalmisfits.support.compat.jasig.cas.web.flow.CasDefaultFlowUrlHandler.java
/** * Get the flow execution key./*from ww w .j a v a2 s.c o m*/ * * @param request the current HTTP servlet request. * @return the flow execution key. */ public String getFlowExecutionKey(final HttpServletRequest request) { return request.getParameter(flowExecutionKeyParameter); }
From source file:com.lcw.one.modules.sys.web.TagController.java
/** * iconselect.tag/*from w ww .ja v a 2 s . co m*/ */ @RequiresUser @RequestMapping("iconselect") public String iconselect(HttpServletRequest request, Model model) { model.addAttribute("value", request.getParameter("value")); return "modules/sys/tagIconselect"; }
From source file:com.leapfrog.lfaeventmanager.admin.controller.PersonController.java
@RequestMapping(value = "save", method = RequestMethod.POST) public String save(@ModelAttribute(value = "person") Person person, @Context HttpServletRequest request) { if (request.getParameter("id") != null && !request.getParameter("id").isEmpty()) { person.setId(Integer.parseInt(request.getParameter("id"))); person.setModifiedDate(new Date(Calendar.getInstance().getTimeInMillis())); personService.update(person);// w w w .j av a2s. c o m } else { personService.insert(person); } return "redirect:/person/index"; }
From source file:com.tsg.sitemapwebappmvc.controller.TipCalcController.java
@RequestMapping(value = "/TipCalcController", method = RequestMethod.POST) public String getTipCalcResults(HttpServletRequest request, Model model) { String serviceCost = request.getParameter("costOfService"); double cost = Double.parseDouble(serviceCost); String tipPercentage = request.getParameter("tipPercent"); double tips = Double.parseDouble(tipPercentage); TipCalculator tipper = new TipCalculator(cost, tips); double tipNow = tipper.CalculateTip(); request.setAttribute("tip", tipNow); return "tipcalcresponse"; }
From source file:it.jugpadova.controllers.JuggerController.java
@RequestMapping public ModelAndView confirmUpdateJugger(HttpServletRequest req, HttpServletResponse res) { Long id = new Long(req.getParameter("id")); Jugger jugger = juggerBo.retrieveJugger(id); ModelAndView mv = new ModelAndView("jugger/confirmUpdateJugger"); mv.addObject("jugger", jugger); return mv;//from w ww .j av a 2 s . c o m }
From source file:th.co.geniustree.osgi.prototype.authen.security.AuthenSuccessHandlerImpl.java
private String getRedirectUrl(HttpServletRequest request) { String redirectUrl = request.getParameter(REDIRECT_URL_PARAM); if (redirectUrl == null || "".equals(redirectUrl)) { redirectUrl = DEFAULT_REDIRECT_URL; }//from w w w . j a va2s . co m String sessionId = request.getSession().getId(); if (redirectUrl.contains("?")) { redirectUrl = redirectUrl + "&" + SESSION_PARAM + "=" + sessionId; } else { redirectUrl = redirectUrl + "?" + SESSION_PARAM + "=" + sessionId; } return redirectUrl; }
From source file:com.glaf.core.web.springmvc.MxSystemMailConfigController.java
@RequestMapping public ModelAndView config(ModelMap modelMap, HttpServletRequest request) { String jx_view = request.getParameter("jx_view"); if (StringUtils.isNotEmpty(jx_view)) { return new ModelAndView(jx_view, modelMap); }//from w w w.j ava 2s. c om String x_view = ViewProperties.getString("sys_mail.config"); if (StringUtils.isNotEmpty(x_view)) { return new ModelAndView(x_view, modelMap); } return new ModelAndView("/modules/sys/mail/config", modelMap); }