Skip to content

Commit

Permalink
WW-4971 Use response encoding for include by default
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-m committed Nov 1, 2018
1 parent 9fa53dd commit 9fd8d6f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,12 @@ public class Include extends Component {
private HttpServletRequest req;
private HttpServletResponse res;
private String defaultEncoding; // Made non-static (during WW-4971 fix)
private boolean useResponseEncoding; // Added with WW-4971 fix (allows switch between usage of response or default encoding)
private boolean useResponseEncoding = true; // Added with WW-4971 fix (allows switch between usage of response or default encoding)

public Include(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
super(stack);
this.req = req;
this.res = res;
useResponseEncoding = false; // By default use defaultEncoding (vs. response/page encoding)
}

@Inject(StrutsConstants.STRUTS_I18N_ENCODING)
Expand Down

0 comments on commit 9fd8d6f

Please sign in to comment.