Class File


public class File extends UIBean
Renders an HTML file input element.

Examples

 
 <s:file name="anUploadFile" accept="text/*" />
 <s:file name="anohterUploadFIle" accept="text/html,text/plain" />
 
 
  • Field Details

  • Constructor Details

    • File

      public File(ValueStack stack, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
  • Method Details

    • getDefaultTemplate

      protected String getDefaultTemplate()
      Description copied from class: UIBean
      A contract that requires each concrete UI Tag to specify which template should be used as a default. For example, the CheckboxTab might return "checkbox.vm" while the RadioTag might return "radio.vm". This value not begin with a '/' unless you intend to make the path absolute rather than relative to the current theme.
      Specified by:
      getDefaultTemplate in class UIBean
      Returns:
      The name of the template to be used as the default.
    • evaluateParams

      public void evaluateParams()
      Overrides:
      evaluateParams in class UIBean
    • setAccept

      public void setAccept(String accept)
    • setSize

      public void setSize(String size)
    • setValue

      public void setValue(String value)
      Overrides:
      setValue in class UIBean