public static PageContext getDefaultPageContext(Writer writer, int buffserSize, boolean autoFlush)
{
JspWriter out = new JspWriter(writer, buffserSize, autoFlush);
DefaultPageContext pageContext = new DefaultPageContext(out);
ExpressionContext expressionContext = DefaultExpressionFactory.getDefaultExpressionContext(pageContext);
<BUG>TagLibrary tagLibrary = TagLibraryFactory.getStandardTagLibrary();
pageContext.setTagLibrary(tagLibrary);</BUG>
pageContext.setTemplateContext(null);
pageContext.setExpressionContext(expressionContext);
return pageContext;

public static PageContext getDefaultPageContext(Writer writer, int buffserSize, boolean autoFlush)
{
JspWriter out = new JspWriter(writer, buffserSize, autoFlush);
DefaultPageContext pageContext = new DefaultPageContext(out);
ExpressionContext expressionContext = DefaultExpressionFactory.getDefaultExpressionContext(pageContext);
pageContext.setTemplateContext(null);
pageContext.setExpressionContext(expressionContext);
return pageContext;
