1.

Explain Jstl Out Tag?

Answer»

JSTL out TAG: The out tag is used to evaluate an expression and write the result to JspWriter. For Example :

<%@ taglib uri="HTTP://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<HEAD>
<title>Tag Example</title>
</head>
<body>
<c:out VALUE="${param.name}" default="StudyTonight" />
</body>
</html>

The value attribute specifies the expression to be written to the JspWriter. The default attribute specifies the value to be written if the expression evaluates null.

JSTL out tag: The out tag is used to evaluate an expression and write the result to JspWriter. For Example :

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title>Tag Example</title>
</head>
<body>
<c:out value="${param.name}" default="StudyTonight" />
</body>
</html>

The value attribute specifies the expression to be written to the JspWriter. The default attribute specifies the value to be written if the expression evaluates null.



Discussion

No Comment Found