- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to apply forTokens tag in JSP?
The <c:forTokens> tag has similar attributes as that of the <c:forEach> tag except for one additional attribute delims which specifies characters to use as delimiters.
Attribute | Description | Required | Default |
---|---|---|---|
delims | Characters to use as delimiters | Yes | None |
Example for <c:forTokens>
<%@ 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
- Related Articles
- How to apply if tag in JSP?
- How to apply choose tag in JSP?
- How to apply forEach tag in JSP?
- I want to create a custom tag in JSP. How to write a custom tag in JSP?
- How can I create custom tag in JSP which can accept attribute from parent jsp page?
- What is the use of tag in JSP?
- What is the use of tag in JSP?
- What is the use of tag in JSP?
- How to apply a tag to the azure resource group using PowerShell?
- What are the standard attributes that should be passed to a custom tag in a JSP page?
- How to use action in JSP?
- How to use action in JSP?
- How to use action in JSP?
- How to use Action in JSP?
- How to use Action in JSP?

Advertisements