001    package railo.runtime.tag;
002    
003    import railo.runtime.exp.ExpressionException;
004    import railo.runtime.ext.tag.TagImpl;
005    
006    /**
007    * A child of cfservlet. It passes data to the servlet. Each cfservletparam tag within the cfservlet 
008    *   block passes a separate piece of data to the servlet.
009    *
010    *
011    *
012    **/
013    public final class ServletParam extends TagImpl {
014            private String value;
015            private String type;
016            private String variable;
017            private String name;
018    
019    
020            /**
021            * constructor for the tag class
022             * @throws ExpressionException
023            **/
024            public ServletParam() throws ExpressionException {
025                    throw new ExpressionException("tag cfservletparam is deprecated");
026            }
027    
028            /** set the value value
029            *  Value of a name-value pair passed to the servlet as a parameter.
030            * @param value value to set
031            **/
032            public void setValue(String value)      {
033                    this.value=value;
034            }
035    
036            /** set the value type
037            * @param type value to set
038            **/
039            public void setType(String type)        {
040                    this.type=type;
041            }
042    
043            /** set the value variable
044            * @param variable value to set
045            **/
046            public void setVariable(String variable)        {
047                    this.variable=variable;
048            }
049    
050            /** set the value name
051            *  If used with the value attribute, it is the name of the servlet parameter. If used with the variable attribute, it is 
052            *               the name of the servlet attribute
053            * @param name value to set
054            **/
055            public void setName(String name)        {
056                    this.name=name;
057            }
058    
059    
060            /**
061            * @see javax.servlet.jsp.tagext.Tag#doStartTag()
062            */
063            public int doStartTag() {
064                    return SKIP_BODY;
065            }
066    
067            /**
068            * @see javax.servlet.jsp.tagext.Tag#doEndTag()
069            */
070            public int doEndTag()   {
071                    return EVAL_PAGE;
072            }
073    
074            /**
075            * @see javax.servlet.jsp.tagext.Tag#release()
076            */
077            public void release()   {
078                    super.release();
079                    value="";
080                    type="";
081                    variable="";
082                    name="";
083            }
084    }