001    package railo.runtime.tag;
002    
003    import railo.runtime.exp.PageException;
004    import railo.runtime.exp.TagNotSupported;
005    import railo.runtime.ext.tag.BodyTagImpl;
006    
007    // MUST change behavor of mltiple headers now is a array, it das so?
008    
009    /**
010    * Lets you execute HTTP POST and GET operations on files. Using cfhttp, you can execute standard 
011    *   GET operations and create a query object from a text file. POST operations lets you upload MIME file 
012    *   types to a server, or post cookie, formfield, URL, file, or CGI variables directly to a specified server.
013    *
014    *
015    *
016    * 
017    **/
018    public final class Div extends BodyTagImpl {
019            
020            private String bind;
021            private boolean bindOnLoad;
022            private String id;
023            private String onBindError;
024            private String tagName;
025            
026            /**
027            * @see javax.servlet.jsp.tagext.Tag#release()
028            */
029            public void release()   {
030                    super.release();
031                this.bind=null;
032                this.bindOnLoad=false;
033                this.id=null;
034                this.onBindError=null;
035                this.tagName=null;
036            }
037            
038            
039            
040            
041            /**
042             * @param bind the bind to set
043             */
044            public void setBind(String bind) {
045                    this.bind = bind;
046            }
047    
048    
049    
050    
051            /**
052             * @param bindOnLoad the bindOnLoad to set
053             */
054            public void setBindonload(boolean bindOnLoad) {
055                    this.bindOnLoad = bindOnLoad;
056            }
057    
058    
059    
060    
061            /**
062             * @param id the id to set
063             */
064            public void setId(String id) {
065                    this.id = id;
066            }
067    
068    
069    
070    
071            /**
072             * @param onBindError the onBindError to set
073             */
074            public void setOnbinderror(String onBindError) {
075                    this.onBindError = onBindError;
076            }
077    
078    
079    
080    
081            /**
082             * @param tagName the tagName to set
083             */
084            public void setTagname(String tagName) {
085                    this.tagName = tagName;
086            }
087    
088    
089    
090    
091            /**
092             * @throws TagNotSupported 
093             * @see javax.servlet.jsp.tagext.Tag#doStartTag()
094             */
095            public int doStartTag() throws TagNotSupported  {
096                    throw new TagNotSupported("Div");
097                    //return EVAL_BODY_INCLUDE;
098            }
099    
100            /**
101             * @throws PageException
102             * @see javax.servlet.jsp.tagext.Tag#doEndTag()
103             */
104            public int doEndTag() throws PageException {
105                    return EVAL_PAGE;
106            }
107    
108        /**
109            * @see javax.servlet.jsp.tagext.BodyTag#doInitBody()
110            */
111            public void doInitBody()        {
112            }
113    
114            /**
115            * @see javax.servlet.jsp.tagext.BodyTag#doAfterBody()
116            */
117            public int doAfterBody()        {
118                    return SKIP_BODY;
119            }
120    
121            /**
122             * sets if has body or not
123             * @param hasBody
124             */
125            public void hasBody(boolean hasBody) {
126            }
127    }