com.aoindustries.website.PermissionDeniedAction Maven / Gradle / Ivy
/*
* Copyright 2009, 2016 by AO Industries, Inc.,
* 7262 Bull Pen Cir, Mobile, Alabama, 36695, U.S.A.
* All rights reserved.
*/
package com.aoindustries.website;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
/**
* Sends a 403 error.
*
* @author AO Industries, Inc.
*/
public class PermissionDeniedAction extends Action {
@Override
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response
) throws Exception {
response.sendError(HttpServletResponse.SC_FORBIDDEN);
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy