Class Head


public class Head extends UIBean
Renders parts of the HEAD section for an HTML file. Encoding can be set using this tag.

Examples

 
 <head>
   <title>My page</title>
   <s:head/>
 </head>
 
 
  • Field Details

  • Constructor Details

    • Head

      public Head(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.
    • setEncoding

      public void setEncoding(String encoding)
    • evaluateParams

      public void evaluateParams()
      Overrides:
      evaluateParams in class UIBean