Posted On: Mar 22, 2020
The EL (Expression Language) in the JSP is used to access the data stored in the JavaBeans along with implicit objects like requests, sessions, etc. It uses arithmetic and logical expressions to compute the accessed data. JSP supports data types such as integers, float, string, Boolean, and null.
Syntax
${EL expression}
Example
<jsp:setProperty name = "area" property = "parameter" areaOfCircle = "${3.14*area.radius*area.radius}"/> //here . is used to access a property of the entry
Expression Language supports most of the arithmetic and Logical operators for basic computation along with special operators like ‘.’ to access a property, ‘[]’ to access an array or list, and ‘()’ to group expression.
Functions can also be created using the JSP EL
Syntax
${ns:func(param1, param2, ...)} //ns is the function namespace and func is the name of the function.
Never Miss an Articles from us.
ErrorPage Attribute process specifies a JSP page that should process any exceptions thrown but not caught in the current page....
JSP, expanded as Java Server Pages is a Java-based technology to create dynamic web pages. Released in 1999 by Sun Microsystems, JSP is based on technologies such as HTML, SOAP, XML, etc...
JSP uses the Java programming language. So, most of the statements in JSP follows the Java code. To print a variable in JSP,..