DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20534>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20534

context variable not accessible from threads

           Summary: context variable not accessible from threads
           Product: Commons
           Version: Nightly Builds
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jelly
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Inside of a <threads:thread> you cannot access the context variable.  For 
example, ${context.findVariable(foo)} doesn't work.

Fix is in JellyContext.java.  But I can't checkin the fix because I don't have 
access to CVS (and no one has answered my mails to the jakarta-commons list).
The problem is that the setVariables() call erases the "context" variable set 
in the init() call.  One possible fix is:

    public void setVariables(Map variables) {
       this.variables = variables;
        variables.put("context", this);
    }

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

Reply via email to