I am trying to get a String
parameter "username"
from the request
with Expression Language . I've done some research, but couldn't find a way to do so, I would like something similar to ${pageContext.request.parameter.username}
How get a specific request parameter, using only expression language?
If get an attribute from 'session', try this ${username}.
If get an parameter from 'request', try this ${param.username}.
The syntax to get the attributes from session would be,
${sessionScope[name]}
And for the request attributes , you can use
${param[name]}
For more info,
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.