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
Selected Reading
Can we test XPath expression in JSP?
The
Attribute
The
| Attribute | Description | Required | Default |
|---|---|---|---|
| select | The XPath expression to be evaluated | Yes | None |
| var | Name of the variable to store the condition's result | No | None |
| scope | Scope of the variable specified in the var attribute | No | Page |
Example
Following is an example that show the use of the
JSTL x:if Tags Books Info:
Padam History ZARA 100 Great Mistry NUHA 2000 Document has at least one element.
Book prices are very high
Let us now access the above JSP, the following result will be displayed −
Books Info: Document has at least oneelement. Book prices are very high
Advertisements
