@Override public void doTag() throws JspException, IOException { JspFragment jf = this.getJspBody(); String text = ""; try { HttpServletRequest request = (HttpServletRequest) ((PageContext) this.getJspContext()).getRequest(); try { text = getString(request, jf); } catch (Exception e) { String uri = request.getRequestURI(); log.error("key为空,uri:" + uri); text = "file error"; } } finally { if (this.toId == null) { this.getJspContext().getOut().write(text); } else { this.getJspContext().setAttribute(this.toId, text); } super.doTag(); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } Request request = runtime.createRequest(); model.execute(name, scopeName, id, ignore, request); }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); model.execute( containerKey, request ); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); model.execute( name, scope, toName, ignore, request ); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( role, request, modelBody ); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( name, role, inherit, cascade, request, modelBody ); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( value, expression, role, type, request, modelBody ); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( name, value, expression, role, type, cascade, request, modelBody ); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( template, templateType, templateExpression, role, preparer, flush, request, modelBody ); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( name, template, role, extendsParam, preparer, request, modelBody ); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( definitionName, template, templateType, templateExpression, role, preparer, flush, request, modelBody ); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( ignore, preparer, role, defaultValue, defaultValueRole, defaultValueType, name, value, flush, request, modelBody ); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( ignore, preparer, role, defaultValue, defaultValueRole, defaultValueType, name, value, request, modelBody ); } }