Package com.mierdasoft.bowlpoolmanager.controller

Source Code of com.mierdasoft.bowlpoolmanager.controller.DenyAccessCommand

package com.mierdasoft.bowlpoolmanager.controller;

import java.io.IOException;

import javax.servlet.ServletException;

import org.bibeault.frontman.*;

import com.mierdasoft.bowlpoolmanager.model.beans.ErrorBean;

public class DenyAccessCommand implements Command
{
  @Override
  public void execute(CommandContext context)
  {
    ErrorBean error;
   
    error = new ErrorBean("Error 403 - Access Denied");
   
    context.getRequest().setAttribute("error", error);
   
    try
    {
      context.forwardToView("ErrorPage");
    }
   
    catch (IOException e)
    {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
   
    catch (ServletException e)
    {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }
}
TOP

Related Classes of com.mierdasoft.bowlpoolmanager.controller.DenyAccessCommand

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.