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            @Override
061            public int doStartTag() {
062                    return SKIP_BODY;
063            }
064    
065            @Override
066            public int doEndTag()   {
067                    return EVAL_PAGE;
068            }
069    
070            @Override
071            public void release()   {
072                    super.release();
073                    value="";
074                    type="";
075                    variable="";
076                    name="";
077            }
078    }