java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.struts.taglib.html.BaseHandlerTag
com.RuntimeCollective.webapps.tag.WebfolderSelectTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class WebfolderSelectTag
- extends org.apache.struts.taglib.html.BaseHandlerTag
A custom JSP tag that creates an input select box containing all
files in the current user's webfolder.
The filename selected is does NOT include the path to the User's
directory. For this reason the actual Bean which stores the
property should be given in the name property, NOT the
ActionForm bean. This is because it is the form's responsibility to
generate the correct path to the resource.
-
property - the property of the form bean that
will be set to the selected filename.
-
allowBlank - allows a blank selection to be
made. [Optional] [default: false]
-
htmlOnly - only show files that end in .html or
.htm [Optional] [default: false]
-
imagesOnly - only show files that end in .gif or
.jpg [Optional] [default: false]
- Version:
- $Id: WebfolderSelectTag.java,v 1.13 2003/09/30 15:13:19 joe Exp $
| Methods inherited from class org.apache.struts.taglib.html.BaseHandlerTag |
doErrorsExist, getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getErrorKey, getErrorStyle, getErrorStyleClass, getErrorStyleId, getIndexed, getIndexValue, getLocale, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, lookupProperty, message, prepareAttribute, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareName, prepareOtherAttributes, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setErrorKey, setErrorStyle, setErrorStyleClass, setErrorStyleId, setIndexed, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ivProperty
private java.lang.String ivProperty
- The property name for the selected file. Mandatory.
ivAllowBlank
private boolean ivAllowBlank
ivImagesOnly
private boolean ivImagesOnly
ivHTMLOnly
private boolean ivHTMLOnly
ivName
private java.lang.String ivName
- The name of the bean containing the property.
WebfolderSelectTag
public WebfolderSelectTag()
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getProperty
public java.lang.String getProperty()
- Get the property name.
setProperty
public void setProperty(java.lang.String property)
- Set the property name.
getAllowBlank
public boolean getAllowBlank()
setAllowBlank
public void setAllowBlank(boolean flag)
- Set allow a blank selection to be made (default false)
getHtmlOnly
public boolean getHtmlOnly()
setHtmlOnly
public void setHtmlOnly(boolean flag)
- Set only select HTML files
getImagesOnly
public boolean getImagesOnly()
setImagesOnly
public void setImagesOnly(boolean flag)
- Set only select gif and jpg files
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Description copied from class:
javax.servlet.jsp.tagext.BodyTagSupport
- Default processing of the start tag returning EVAL_BODY_BUFFERED.
release
public void release()
- Description copied from class:
org.apache.struts.taglib.html.BaseHandlerTag
- Release any acquired resources.