Package com.caucho.jsp

Examples of com.caucho.jsp.PageContextImpl$PageVariableMapper


  {
    try {
      if (_valueExpr == null)
  return EVAL_BODY_BUFFERED;

      PageContextImpl pageContext = (PageContextImpl) this.pageContext;
      ELContext env = pageContext.getELContext();
   
      String name = _nameExpr.evalString(env);
      String value = _valueExpr.evalString(env);

      Object parent = getParent();
View Full Code Here


      if (this.bodyContent != null)
  value = this.bodyContent.getString().trim();
      else
  value = "";
   
      PageContextImpl pageContext = (PageContextImpl) this.pageContext;
   
      String name = _nameExpr.evalString(pageContext.getELContext());

      Object parent = getParent();
      if (! (parent instanceof NameValueTag))
  throw new JspException(L.l("c:param requires c:url or c:import parent."));
View Full Code Here

   */
  public int doStartTag()
    throws JspException
  {
    try {
      PageContextImpl pageContext = (PageContextImpl) this.pageContext;

      Object valueObj = _valueExpr.evalObject(pageContext.getELContext());
      TimeZone timeZone = null;

      if (valueObj instanceof TimeZone) {
  timeZone = (TimeZone) valueObj;
      }
View Full Code Here

   */
  public int doEndTag()
    throws JspException
  {
    try {
      PageContextImpl pageContext = (PageContextImpl) this.pageContext;
      ELContext env = pageContext.getELContext();
     
      JspWriter out = pageContext.getOut();

      double number;

      BodyContentImpl body = (BodyContentImpl) getBodyContent();

View Full Code Here

  protected NumberFormat getFormat()
    throws JspException
  {
    try {
      PageContextImpl pageContext = (PageContextImpl) this.pageContext;
      ELContext env = pageContext.getELContext();
     
      NumberFormat format = null;

      Locale locale = pageContext.getLocale();

      String type = null;
      if (_typeExpr != null)
  type = _typeExpr.evalString(env);
View Full Code Here

   */
  public int doStartTag()
    throws JspException
  {
    try {
      PageContextImpl pageContext = (PageContextImpl) this.pageContext;
      ELContext env = pageContext.getELContext();
     
      JspWriter out = pageContext.getOut();

      boolean doEscape = (_escapeXml == null || _escapeXml.evalBoolean(env));
     
      if (! _value.print(out, env, doEscape)) {
      }
View Full Code Here

  }

  public int doEndTag() throws JspException
  {
    try {
      PageContextImpl pageContext = (PageContextImpl) this.pageContext;
      ELContext env = pageContext.getELContext();
     
      JspWriter out = pageContext.getOut();
     
      BodyContentImpl body = (BodyContentImpl) getBodyContent();

      if (body != null) {
        boolean doEscape = (_escapeXml == null || _escapeXml.evalBoolean(env));
View Full Code Here

   */
  public int doEndTag()
    throws JspException
  {
    try {
      PageContextImpl pageContext = (PageContextImpl) this.pageContext;
      ELContext env = pageContext.getELContext();
     
      JspWriter out = pageContext.getOut();

      TransformerFactory factory = TransformerFactory.newInstance();

      Source source = getSource(_xslt, _xsltSystemId);

      Transformer transformer = factory.newTransformer(source);

      for (int i = 0; i < _paramNames.size(); i++) {
        String name = _paramNames.get(i);
        String value = _paramValues.get(i);

        transformer.setParameter(name, value);
      }

      if (_xml != null)
  source = getSource(_xml, _xmlSystemId);
      else {
  BodyContent bodyContent = getBodyContent();

  source = new StreamSource(bodyContent.getReader());
  source.setSystemId(((HttpServletRequest) pageContext.getRequest()).getRequestURI());
      }

      Result result;
      Node top = null;

View Full Code Here

  private Source getSource(Expr xmlExpr, Expr systemIdExpr)
    throws JspException
  {
    try {
      PageContextImpl pageContext = (PageContextImpl) this.pageContext;
     
      Object xmlObj = xmlExpr.evalObject(pageContext.getELContext());
      String systemId = null;
      Source source = null;

      if (systemIdExpr != null)
  systemId = systemIdExpr.evalString(pageContext.getELContext());
     
      source = convertToSource(xmlObj, systemId);

      return source;
    } catch (ELException e) {
View Full Code Here

   */
  public int doEndTag()
    throws JspException
  {
    try {
      PageContextImpl pageContext = (PageContextImpl) this.pageContext;
     
      JspWriter out = pageContext.getOut();

      NumberFormat format = getFormat();

      String string;

      if (_valueExpr != null)
        string = _valueExpr.evalString(pageContext.getELContext());
      else
        string = bodyContent.getString().trim();

      Number value = format.parse(string);

View Full Code Here

TOP

Related Classes of com.caucho.jsp.PageContextImpl$PageVariableMapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.