Package org.apache.ecs

Examples of org.apache.ecs.StringElement


    return new EcsServletElement(rundata, servletURL);
  } catch (Exception e) {
    String message = "ServletInvokerPortlet: Error invoking "
             + servletURL + ": " + e.getMessage();
    logger.error(message, e);
    return new StringElement(message);
  }
  }    }
View Full Code Here


        // If parsing is OK, wraps content in ECS element
        if (myContent!=null) {
            content = new ElementContainer();

            content.addElement( new Comment( "BEGIN PORTLET" ) );
            content.addElement( new StringElement( myContent ) );
            content.addElement( new Comment( "END PORTLET" ) );
        }

        return content;
    }
View Full Code Here

                                              this.action == null ? "controls.Maximize" : this.action,
                                              null,
                                              baseLocator.getMediaType(),
                                              baseLocator.getLanguage(),
                                              baseLocator.getCountry());
                result = new StringElement(uri.toString());
                JetspeedLinkFactory.putInstance(link);
            }

            // Output the result
            if (result != null)
View Full Code Here

            // Clear any portlets that exist in this set
            if (this.portlets != null)
            {
                this.portlets.clear();
            }
            return new StringElement(Localization.getString(rundata, "SECURITY_NO_ACCESS"));
        }
        else
        {
            if ( logger.isDebugEnabled() )
            {
View Full Code Here

            s = e.toString();
        }

        TurbineVelocity.requestFinished(context);

        return new StringElement( s );
    }
View Full Code Here

            {
                uri = service.forward(data, this.name);
            }
            if (uri != null)
            {
                result = new StringElement(uri.toString());
            }

            // Output the result
            if (result != null)
            {
View Full Code Here

            try
            {
                String translation = this.tool.get(key, CustomLocalization.getLocale(data));
               
                translation = translation == null ? def : translation;
                result = new StringElement(translation);           
            }
            catch (Exception oe)
            {
                result = new StringElement(def);
                logger.error("Exception", oe);
            }

            // Output the result
            if (result != null)
View Full Code Here

            String message = "JSPViewProcessor: Could not include the following JSP Page:  [" + template + "] :\n\t"
                             + e.getMessage();
            logger.error(message, e);

            return new StringElement(message);
        }

        return new ElementContainer();
    }
View Full Code Here

            s= e.toString();
        }
       
        TurbineVelocity.requestFinished(context);

        return new StringElement( s );
    }
View Full Code Here

        DateFormat df = DateFormat.getDateTimeInstance();
       
        if ( portletName == null ) {
            String message = "Could not find given entry ";
            logger.error( message );
            return new StringElement( message );
        }

        Portlet portlet = null;
        try {
            portlet = PortletFactory.getPortlet( portletName, "0" );
        } catch (PortletException e) {
            logger.error("Exception",  e);
            return new StringElement( e.getMessage() );
        }

        Table t = new Table();
       
        t.addElement( this.getRow"Portlet name: " + portlet.getName() ) );
View Full Code Here

TOP

Related Classes of org.apache.ecs.StringElement

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.