티스토리 뷰
JSTL Core - out tag
Evaluates an expression and outputs the result of the evaluation to the current JspWriter object.
Attributes
Name |
Dynamic |
Decription |
Type |
Required |
value |
true |
Expression to be evaluated. |
Object |
Yes |
escapeXml |
true |
Determines whether characters <,>,&,’,” in the resulting string should be converted to their corresponding character entity codes. Default value is true. |
boolean |
No |
default |
true |
Default value if the resulting value is null. | Object |
No |
How to use
If a page url inclues a parameterName, then you can see the value on the page.
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title>Tag Example</title>
</head>
<body>
<c:out value="${param.parameterName}"/>
</body>
If value is null, the default value takes over. If no default value is specified, it itself defaults to an empty string.
Reference
'JSTL' 카테고리의 다른 글
[JSTL] Core :: choose tag (0) | 2016.08.08 |
---|---|
[JSTL] Core - if tag (0) | 2016.08.07 |
[JSTL] Core :: catch tag (0) | 2016.08.07 |
[JSTL] Core :: remove tag (0) | 2016.08.04 |
[JSTL] Core :: set tag (0) | 2016.08.04 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- java
- 소스코드
- select
- FOUND_ROW
- Field
- IO
- highlight.js
- Set
- IF
- BufferedReader
- jstl
- InputStreamWriter
- Rowcount
- FileInputStream
- BufferedWriter
- catch
- foreach
- 임시파일
- choose
- 파일
- remove
- 라이브아카데미
- JSP
- file
- InputStreamReader
- reflection
- 자바
- isDirectory
- syntax
- forToken
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함