Objects | Descriptions |
---|
pageScope( ) | Sets the given attribute name with the value set in the page scope. |
requestScope( ) | Used to access the value of the variable which is set in the request scope. |
pageContext( ) | Sets the context of the page. |
sessionScope( ) | Accesses the value of variable in session scope. |
applicationScope( ) | Accesses the value of the variable which is sent in application scope. |
param | Maps the single parameter to the single value.vv |
paramValues | Maps the request parameters as a collection of String. |
header | Contains the HTTP request header as a String value. |
headerValues | Contains the HTTP request header as a collection of String value. |
cookie | Maps the given cookie name to the cookie value. |
Example: EL using implicit object
//index.jsp
<form method="post" action="welcome.jsp">
Name: <input type="text" name="user" >
Password: <input type ="text" name="pass" >
<input type="submit" value="submit">
</form>
//welcome.jsp
<html>
<head>
<title>Welcome Page</title>
</head>
<body>
<h1>Welcome ${param.name}</h1>
<p> Your password is ${param.pass} </p>
</body>
</html>
Operators | Description |
---|
. | Access bean property |
[ ] | Array or list of element. |
( ) | Set the evaluation order by group the expression |
+ | Addition |
- | Subtraction |
* | Multiplication |
/ or div | Division |
% or mod | Modulo |
= = or eq | Equality (equal) |
! = or ne | Inequality (not equal) |
< or lt | Less than |
> or gt | Greater than |
< = or le | Less than or equal |
> = or ge | Greater than or equal |
&& or and | Logical AND |
| | or or | Logical OR |
! or not | Unary operator |
empty | Empty variable values |