That was helpful, Serge, thanks!

Now, while I got this working for simple variables, how would I access
nested or array variables?  

If I have something like

<c:forEach var="myRow" ..>
        <c:forEach var="myCol" ..>
                <c:out value="${myRow[myCol]}" />
        </c:forEach >
</c:forEach >

Using "pageContext.findAttribute()" I can access myCol and myRow ...
what about myRow[myCol] ?

Wolfgang





>>> [EMAIL PROTECTED] 23.03.2004 22:00:48 >>>
On Tue, 23 Mar 2004 21:39:22 +0100
  "Wolfgang Schreiber" <[EMAIL PROTECTED]> wrote:
>So, the extract of my question is: how can I catch a 
>variable that I
>can display with "c:out" and pass it to my own java 
>function?  
>Obviously, something like 
>       <= myFunction(   <c:out value="${myVar}" />   )  %> 
>won't work.

<c:out value="${myvar}" />

is roughly equivalent to:

Object obj = pageContext.findAttribute("myvar");
if (obj != null) {
     out.println(obj);
}

--
Serge Knystautas

---------------------------------------------------------------------
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