|
|
Out in JSP Core Tag Library
|
Tutorials

Jsp

|
Topic |
What is "out" tag in JSP Core Tag Library?
|
|
Explanation |
|
The out tag of the core tag library is used to display the result of an expression. This tag always converts the
values into a string.
Syntax:
<c:out value=" " />
In the above syntax the "value" attribute stores the expression or a variable.
Example:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<p>Simple Example for C:out</p>
Multiply 5 and 2::<c:out value="${5*2}" />
Result:
Simple Example for C:out
Multiply 5 and 2::10
In the above example we have used the "<c:out" tag to output the value of the expression to find the
product of "5", "2".
|
|
A Note |
|
JSP(Java Server Pages) is one of the most used Server Side Programming Language in the world. Simple introduction, basic program codes with examples. Begin coding your own JSP scripts with this online tutorial. Hope you enjoy this tutorial. Do send your feedback or suggestions on this JavaServer Pages tutorial. This is a copyright content.
|
|
|
|