Package com.adito.core

Examples of com.adito.core.CoreScript


    public int doEndTag() throws JspException {
        pageContext.removeAttribute(Constants.BEAN_KEY, PageContext.REQUEST_SCOPE);
        pageContext.removeAttribute(Constants.FORM_KEY, PageContext.REQUEST_SCOPE);
        StringBuffer results = new StringBuffer();
        for(Iterator i = scripts.iterator(); i.hasNext(); ) {
            CoreScript script = (CoreScript)i.next();
            results.append(script.getRenderedHTML());
        }
        results.append("</form>");
        if (this.focus != null && !this.focus.equals("")) {
            results.append(this.renderFocusJavascript());
        }
View Full Code Here


    public int doEndTag() throws JspException {
        StringBuffer buf = new StringBuffer();
        List l = new ArrayList();
        for(Iterator i = CoreServlet.getServlet().getPageScripts().iterator(); i.hasNext(); ) {
            CoreScript script = (CoreScript)i.next();
            if(script.getPosition() == Integer.parseInt(position)) {
                l.add(script);
            }
        }
        for(Iterator i = l.iterator(); i.hasNext(); ) {
            CoreScript script = (CoreScript)i.next();
            buf.append("\n<script");
            if(script.getLanguage() != null) {
                buf.append(" language=\"");
                buf.append(script.getLanguage());
                buf.append("\"");
            }
            if(script.getType() != null) {
                buf.append(" type=\"");
                buf.append(script.getType());
                buf.append("\"");
            }
            if(script.getPath() != null) {
                buf.append(" src=\"");
                buf.append(script.getPath());
                buf.append("\">\n");
                buf.append("document.write(\"Included JS file not found\")");
                buf.append("</script>");
            }
            else {
                if(script.getScript() != null) {
                    buf.append(">");
                    buf.append(script.getScript());
                    buf.append("</script>");
                }
                else {
                    buf.append(">\n");
                    buf.append("document.write(\"Included JS file not found\")");
View Full Code Here

TOP

Related Classes of com.adito.core.CoreScript

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.