Rev 620 | Rev 822 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/****/package in.shop2020.serving.controllers;import java.io.UnsupportedEncodingException;import org.apache.juli.logging.Log;import org.apache.juli.logging.LogFactory;import org.apache.struts2.convention.annotation.Result;import org.apache.struts2.convention.annotation.Results;/*** @author rajveer**/@Results({@Result(name="redirect", type="redirectAction",params = {"actionName" , "login"})})public class CompletedOrdersController extends BaseController {private static final long serialVersionUID = 1L;private static Log log = LogFactory.getLog(CompletedOrdersController.class);public CompletedOrdersController() {super();}// GET /completed-orderspublic String index() throws UnsupportedEncodingException {log.info("this.request=" + this.request);if(!userinfo.isLoggedIn()){setRedirectUrl();return "redirect";}htmlSnippets.put("MYACCOUNT_HEADER", pageLoader.getMyaccountHeaderHtml());htmlSnippets.put("MYACCOUNT_DETAILS", pageLoader.getCompletedOrdersHtml(userinfo.getUserId()));return "index";}public String getMyaccountHeaderSnippet(){return htmlSnippets.get("MYACCOUNT_HEADER");}public String getMyaccountDetailsSnippet(){return htmlSnippets.get("MYACCOUNT_DETAILS");}}