JSP Text Action

JSP Text Action Element

  • All the JSP action elements are used during the request processing phase, and not as the directive elements and script elements, which are used during the translation phase
  • All JSP action elements are specified in XML tags and can not be used in an XML directive as these have no end tag.
  • The JSP text action can be used to enclose template data in a JSP page, a JSP document, or a tag file.
  • The JSP text action has no attributes and can appear anywhere that template data can.
  • The JSP text action body cannot contain other elements. It can only contain text and EL expressions.
  • Here is the notation for the JSP text action element:
    XML Description
    <jsp:text > content </jsp:text> Content (body) is not required. There is no attributes for this action element.
    Example of how to use it:
      This is some content: ${content}
    <!--or -->
      This is some content: ${content > 3}
      This is some content: ${content gt 3}
    <!--or -->
© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.