Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieve value from query string?

Tags:

jsp

jstl

How can I retrieve the value of a Query String Parameter using Expression Language in a JSP?

like image 431
rajputhch Avatar asked Jan 22 '11 11:01

rajputhch


1 Answers

<c:out value = "${pageContext.request.queryString}" />

update:

If you want certain value for example ?key1=val1&key2=val2

then

<c:out value = "${param.key1}" />

<c:out value = "${param.key2}" />
like image 129
jmj Avatar answered Oct 03 '22 06:10

jmj