public class ApplyTemplateCommand implements Command {
@Override
public void execute(CommandContext context) {
LoginBean login;
PathBean cssPath, jQueryPath, jQueryUIPath;
ServletContext servletContext;
String baseUrl, view;
servletContext = context.getServletContext();
baseUrl = servletContext.getInitParameter("site.url");
if (!baseUrl.endsWith("/"))
baseUrl = baseUrl + "/";
cssPath = new PathBean(baseUrl
+ servletContext.getInitParameter("site.css"));
jQueryPath = new PathBean(baseUrl
+ servletContext.getInitParameter("site.jquery"));
jQueryUIPath = new PathBean(baseUrl
+ servletContext.getInitParameter("site.jquery-ui"));
view = (String) context.getRequest().getAttribute("forwardToView");
if (view == null)