Contents | Prev | Next


<jsp:text>

Encloses template data.

JSP Syntax

None.

XML Syntax

<jsp:text>	
   template data	
</jsp:text>

Example

<hello><jsp:scriptlet>i=3;</jsp:scriptlet>	
<hi>	
<jsp:text> hi you all	
</jsp:text><jsp:expression>i</jsp:expression>	
</hi>	
</hello>

The output is:

<hello> <hi> hi you all	
</hi></hello>

Description

A jsp:text element is used to enclose template data in the XML representation. A jsp:text element has no attributes and can appear anywhere that template data can. The interpretation of a jsp:text element is to pass its content through to the current value of out.

XML syntax allows an XML element that does not represent a standard or custom action to appear anywhere a jsp:text can appear. Such an element is passed to the current out.



Contents | Prev | Next

Copyright © 2002, Sun Microsystems, Inc. All rights reserved.