On Fri, 20 Sep 2002, Hao Ding wrote:

> I can get a map's point coordinates using scriplets as following:
> 
> x = <%= request.getParameter("map.x") %>,
> y = <%= request.getParameter("map.y") %>
> 
> how to use JSTL EL do that? I have tried
> 
> x = <c:out value="${param.map.x}"/>,
> y = <c:out value="${param.map.y}"/>
> 
> and
> 
> x = <c:out value="${param[map.x]"/>,
> y = <c:out value="${param[map.y]"/>
> 
> The outputs are empty.

${param.map.x} means "the 'x' property of the 'map' property of 'param.'"

${param[map.x]} means "the property of 'param' whose key is the value of
the 'x' property of the 'map' variable."

Based on your description, I believe you want the following instead:

 ${param["map.x"]}

-- 
Shawn Bayern
"JSTL in Action"   http://www.jstlbook.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to