# <netui:content> Tag

The <netui:content> tag displays text or the result of an expression to the page.

## Syntax

<netui:content
[defaultValue="string_or_expression_defaultOutput"]
value="string_or_expression_output" />

## Description

The <netui:content> tag displays text or the result of an expression to the page. Note that <netui:content> is similar to <netui:label> , except for the way it processes HTML-sensitive text. The <netui:content> tag does not escape HTML-sensitive characters, but the <netui:label> tag filters the input string for characters that are senstive to HTML interpreters and replaces these characters with the corresponding entity strings. For example, if you pass the string '&amp;' to a <netui:label> tag, the string '&amp;amp;' will be written to the HTML source file, and the following will be displayed in the browser: '&amp;'.

The following table shows how the <netui:label> and <netui:content> tags treat HTML-sensitive characters.

> tag | generated HTML source | displayed in browser
> <netui:content value="&amp;"/> | &amp; | &
> <netui:label value="&amp;"/> | &amp;amp; | &amp;

## Attributes

defaultValue | The String literal or expression to be used as the default output.
Required | Supports runtime expression evaluation | Data bindable
No | No | Read Only
value | The String literal or expression used to output the content.
Required | Supports runtime expression evaluation | Data bindable
Yes | Yes | Read Only

## Sample

In this sample, the Content tag displays the Form Bean's `lastName` property.

     <netui:content value="{actionForm.lastName}" />

## Code Sample

[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui/samContentTag.html

## Related Topics

<netui:content> Tag Sample

<netui:label> Tag