Skip to content

Commit

Permalink
Changed attribute scope to PAGE_SCOPE from REQUEST_SCOPE.
Browse files Browse the repository at this point in the history
Since the variable is initially injected in PAGE_SCOPE.
  • Loading branch information
Kaustubh Damle committed May 5, 2019
1 parent 8793c3a commit 051c8d3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,7 @@
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.stream.Collectors;
import javax.naming.NamingException;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.http.HttpServletRequest;
Expand Down Expand Up @@ -572,7 +569,7 @@ public int doEndTag() throws JspException {
String acceptHeader = Arrays.asList(acceptHeadr.split("/")).contains("xml") ? "application/xml" : "application/json";
String contentType = request.getContentType() == null ? "" : request.getContentType();
LinkedHashMap<String, Object> map = (LinkedHashMap<String, Object>) pageContext.getAttribute(
MASON_OUTPUT, PageContext.REQUEST_SCOPE);
MASON_OUTPUT, PageContext.PAGE_SCOPE);
int mapSize = map.size();
MasonRequest mtg = (MasonRequest) pageContext.getRequest().getAttribute("mtgReq");
if (contentType.contains("multipart/form-data")) {
Expand Down

0 comments on commit 051c8d3

Please sign in to comment.