<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">JSTL out tag is used to display information on JSP. It can also be used with properties of the bean.</p>
<p>The <b><;c:out>;</b> tag displays the result of an expression, similar to the way <;%= %>; works with a difference that <;c:out>; tag lets you use the simpler &#8220;.&#8221; notation to access properties. ;</p>
<p><b>For example</b>, to access <b>employee.salary</b> just use tag is<b> <;c:out value=&#8221;employee.salary&#8221;/>;.</b></p>
<p> <b>JSTL <i><;c:out>;</i> tag Example:</b><br />
To display the salary of the employee on JSP, you can use the <i><b><;c:out>; </b></i>tag like:</p>
<pre class="highlight" name="code"><;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">;
<;html>;
<;head>;
<;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">;
<;title>;JSTL c out Tag example<;/title>;
<;/head>;
<;body>;
 <;c:out value="${employee.salary}" default="Not Available" escapeXml="true">;<;/c:out>;
<;/body>;
<;/html>;
</pre>
<p>
The above statement assumes that employee object is available on this JSP and that employee bean has a property salary with setters and getter.</p>
<p> <b>Attributes of <i><;c:out>;</i> tag are:</b></p>
<p><b>Required Attributes:</b></p>
<p><b>1. value:</b> This attribute needs expression to be evaluated.</p>
<p><b>Optional Attributes:</b></p>
<p><b>1. default:</b> This attribute provides default value if the resulting value is null.<br />
<b>2. escapeXml: </b>This attribute determines whether characters &;,&#8217;,&#8221; in the resulting string should be converted to their corresponding character entity codes. Default value is set to true.</p>
</div>
<div style="background-color: pink; border-width: thin; text-align: center;"><b><;<;<a href="https://dineshonjava.com/2013/10/jsp-standard-tag-library-jstl-tutorial.html">Previous</a> <;<; ; ; || <a href="https://dineshonjava.com/2013/10/jsp-standard-tag-library-jstl-tutorial.html">Index </a>||  ; >;>;<a href="https://dineshonjava.com/2013/10/jstl-core-tag_2.html">Next</a> >;>;</b></div>
<p>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/jsp-standard-tag-library-jstl-tutorial/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/jstl-core-tag_2/">Next</a> 
									 </div> 
									</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
 $.post('https://dineshonjava.com/wp-admin/admin-ajax.php', {action: 'mts_view_count', id: '320'});
});
</script>
Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…
Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…
Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…
Technology has emerged a lot in the last decade, and now we have artificial intelligence;…
Managing a database is becoming increasingly complex now due to the vast amount of data…
Overview In this article, we will explore Spring Scheduler how we could use it by…