<%@ taglib prefix="c" uri="http://java.sun.com/jstl/ea/core" %> JSTL: EcmaScript EL Support -- Simple Parameter Access Example

Parameter Access

Request parameters can be accessed through a Map object called "params". See the Map Access page for information on how to conveniently access Map objects. As request parameters can have multiple values, the map entries are actually arrays, so the index operator needs to be used to access the actual string value of the parameter.


Enter a value for the parameter "test", which will be displayed below using this technique.


Here is the parameter value:

Expression Output
$params['test'][0]
$params.test[0]