Package javax.servlet.jsp.tagext

Examples of javax.servlet.jsp.tagext.Tag


     * tag handler use.
     *
     * @return tag handler
     */
    public Tag getHandler() {
        Tag returnValue = null;

        try {
            synchronized (myHandlers) {
                if (myHandlers.empty()) {
                    if (myLog.getLevel() >= Log.DEBUG) {
View Full Code Here


     * @return Reused or newly instantiated tag handler
     *
     * @throws JspException if a tag handler cannot be instantiated
     */
    public synchronized Tag get(Class handlerClass) throws JspException {
        Tag handler = null;

        if (current >= 0) {
            handler = handlers[current--];
        } else {
            try {
View Full Code Here

     * </ul>
     */
    public int doEndTag() throws JspTagException
    {
        //get the parent if any
        Tag parent = this.getParent();

        if (parent != null) {
            try {
                JspWriter out = this.pageContext.getOut();
                out.println("This tag has a parent. <BR>");
View Full Code Here

     * @exception JspTagException on failure
     */
    public int doEndTag() throws JspTagException
    {
        //get the parent if any
        Tag parent = this.getParent();

        if (parent != null)
        {
            try
            {
View Full Code Here

        // If we're not inside of a facet, and if we are inside of a
        // rendersChildren==true component, stuff any template text or
        // custom tag output into a transient component.
        if (null == getFacetName() &&
            null != parentTag) {
            Tag p = this.getParent();
            // If we're not inside a JSP tag or we're inside a LoopTag,
            // flush the buffer to our wrapped response
            if (null == p || p instanceof LoopTag) {
                JspWriter out = pageContext.getOut();                               
                if (!(out instanceof BodyContent)) {
View Full Code Here

     * otherwise, return null (indicating that we will be a child component).
     * </p>
     */
    protected String getFacetName() {

        Tag parent = getParent();
        if (parent instanceof FacetTag) {
            return (((FacetTag) parent).getName());
        } else {
            return (null);
        }
View Full Code Here

    //*********************************************************************
    // Tag logic

    // Supply our value to our parent <fmt:message> tag
    public int doEndTag() throws JspException {
  Tag t = findAncestorWithClass(this, MessageSupport.class);
  if (t == null) {
      throw new JspTagException(Resources.getMessage(
                            "PARAM_OUTSIDE_MESSAGE"));
  }
  MessageSupport parent = (MessageSupport) t;
View Full Code Here

      return EVAL_PAGE;
  }

  String prefix = null;
  if (!bundleSpecified) {
      Tag t = findAncestorWithClass(this, BundleSupport.class);
      if (t != null) {
    // use resource bundle from parent <bundle> tag
    BundleSupport parent = (BundleSupport) t;
    locCtxt = parent.getLocalizationContext();
    prefix = parent.getPrefix();
View Full Code Here

              Locale[] avail) {

  LocalizationContext locCtxt = null;
 
  // Get formatting locale from enclosing <fmt:bundle>
  Tag parent = findAncestorWithClass(fromTag, BundleSupport.class);
  if (parent != null) {
      /*
       * use locale from localization context established by parent
       * <fmt:bundle> action, unless that locale is null
       */
 
View Full Code Here

     * setting exists
     */
    static TimeZone getTimeZone(PageContext pc, Tag fromTag) {
  TimeZone tz = null;

  Tag t = findAncestorWithClass(fromTag, TimeZoneSupport.class);
  if (t != null) {
      // use time zone from parent <timeZone> tag
      TimeZoneSupport parent = (TimeZoneSupport) t;
      tz = parent.getTimeZone();
  } else {
View Full Code Here

TOP

Related Classes of javax.servlet.jsp.tagext.Tag

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.