티스토리 뷰
JSTL Core - Remove tag
Removes a scoped variable.
Attributes
| Name | Dynamic | Decription | Type | Required |
|---|---|---|---|---|
| var | false | Name of the scoped variable to be removed. | String | Yes |
| scope | false | Scope for var. |
String | No |
How to use
<%@ 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>JSTL remove tag example</title>
</head>
<body>
<!-- Set message to display -->
<c:set var="umejintan" scope="request" value="Hello, UserName"/>
<c:out value="${umejintan}"/>
<!-- Remove the message -->
<c:remove var="umejintan"/>
<c:out value="${umejintan}"/>
</body>
Description
The <c:remove> action removes a scoped variable.If attribute scope is not specified, the scoped variable is removed according to the semantics of PageContext.removeAttribute(varName).
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 :: set tag (0) | 2016.08.04 |
| [JSTL] Core :: out tage (0) | 2016.08.04 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- select
- Set
- InputStreamReader
- FileInputStream
- catch
- IF
- 자바
- IO
- InputStreamWriter
- isDirectory
- reflection
- BufferedWriter
- file
- FOUND_ROW
- syntax
- highlight.js
- remove
- JSP
- java
- 임시파일
- foreach
- BufferedReader
- jstl
- Rowcount
- choose
- forToken
- 파일
- Field
- 소스코드
- 라이브아카데미
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함