Created
January 2, 2019 11:08
-
-
Save ghusta/c396174c8f6ffc136d5a6c04697c3337 to your computer and use it in GitHub Desktop.
Change the HTTP response status for a JSP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page language="java" contentType="text/html; UTF-8; charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %> | |
<% | |
response.setStatus(403); | |
%> | |
<!DOCTYPE html> | |
<html lang="en"> | |
... | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quite simple. The response status will be 403 in the example.