JSP EL (JSP Expression Language)
It simplifies for retrieving following types values mainly
-
Request Paramters req.getParamter(-“)
-
Init Patamter values getInitParameter(-“)
-
Attribute Values getAttribute(-“) in 4 scopes
-
Cookie values getCookie(-“)
<form action="jspel.jsp" method="post">
Name <input type="text" name="name"><br>
<input type="submit" value="Login"><br>
<%
session.setAttribute("pwd", "123456");
%>
</form>
Jspel.jsp
--
Name : ${ param.name }
Session: ${sessionScope.pwd}
PREVIOUSAction Tags
NEXTJSTL