Am Mittwoch, 10. Dezember 2003 17:57 schrieb Todor Sergueev Petkov:

> When I try JSTL
>
> <c:out value="${requestScope.source}"/>
> <c:out value="${requestScope.animalId}"/>
> <c:out value="${requestScope.injId}"/>
>
> doesn't work...

The above code looks for *attributes* in request scope,
not parameters. To access parameters via JSTL, you
have to make use of the implicit EL variable (actually
a java.util.Map) named 'param', like this:

<c:out value="${param.source}"/>
<c:out value="${param.animalId}"/>
<c:out value="${param.injId}"/>

HTH,
-- Chris.

> The names of the the request parameters that should be there are
> correct...
>
> Is there any masking between JSTL vars and STRUTS vars that someone
> is aware of?
>
> Todor
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to