Expression Language (EL) in JSPThe Expression Language (EL) simplifies the accessibility of data stored in the Java Bean component, and other objects like request, session, application etc. There are many implicit objects, operators and reserve words in EL. It is the newly added feature in JSP technology version 2.0. Syntax for Expression Language (EL)Implicit Objects in Expression Language (EL)There are many implicit objects in the Expression Language. They are as follows:
EL param exampleIn this example, we have created two files index.jsp and process.jsp. The index.jsp file gets input from the user and sends the request to the process.jsp which in turn prints the name of the user using EL. index.jspprocess.jspEL sessionScope exampleIn this example, we printing the data stored in the session scope using EL. For this purpose, we have used sessionScope object. index.jspprocess.jspEL cookie exampleindex.jspprocess.jspPrecedence of Operators in ELThere are many operators that have been provided in the Expression Language. Their precedence are as follows:
Reserve words in ELThere are many reserve words in the Expression Language. They are as follows:
Next TopicMVC In Jsp |