/** * @see javax.portlet.PortletRequest#getContextPath() */ public String getContextPath() { return request.getContextPath(); }
public String getContextPath() { return request.getContextPath(); }
@Override public boolean handleExecutionOutcome( FlowExecutionOutcome outcome, ActionRequest request, ActionResponse response) { if (this.redirectOnEnd != null) { final String redirectPath = request.getContextPath() + this.redirectOnEnd; try { response.sendRedirect(redirectPath); return true; } catch (IOException e) { this.logger.warn("Failed to send flow-end redirect to '" + redirectPath + "'"); } } return false; } }
@Override public boolean handleExecutionOutcome( FlowExecutionOutcome outcome, ActionRequest request, ActionResponse response) { if (this.redirectOnEnds != null && this.redirectOnEnds.containsKey(outcome.getId())) { final String redirectPath = request.getContextPath() + this.redirectOnEnds.get(outcome.getId()); try { response.sendRedirect(redirectPath); return true; } catch (IOException e) { this.logger.warn("Failed to send flow-end redirect to '" + redirectPath + "'"); } } return false; } }
@ActionMapping(params = {"action=savePreferences"}) public void savePreferences( ActionRequest req, ActionResponse res, @RequestParam(required = false) String backgroundImage) throws Exception { imageSetSelectionStrategy.setSelectedImage(req, backgroundImage); // Reirect to a basic HTTP 200 success response to save a full page cycle res.sendRedirect(req.getContextPath() + "/api" + AjaxSuccessController.SUCCESS_URL); } }
final String contextPath = request.getContextPath(); response.sendRedirect(contextPath + AJAX_MAX_QUERIES_URL);
response.sendRedirect(request.getContextPath().replace( request.getContextPath(), jsReqContext.getPortalURL().getBasePath().subSequence( 0,