Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Selected Reading
How to apply forTokens tag in JSP?
The
| Attribute | Description | Required | Default |
|---|---|---|---|
| delims | Characters to use as delimiters | Yes | None |
Example for
<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %>
<html>
<head>
<title><c:forTokens> Tag Example</title>
</head>
<body>
<c:forTokens items = "Zara,nuha,roshy" delims = "," var = "name">
<c:out value = "${name}"/><p>
</c:forTokens>
</body>
</html>
The above code will generate the following result ?
Zara nuha roshy
Advertisements
