commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <>
Subject Re: [jelly] custom variables
Date Sun, 29 Dec 2002 00:06:26 GMT
On Samedi, d├ęce 28, 2002, at 06:56 Europe/Brussels, Todd Trimmer wrote:
> Is there a way to get a JellyContext into a doTag() method? So we can 
> set variables that exist in the scope of that tag? It might be kind of 
> dangerous to allow the whole JellyContext in there, so what about a 
> JellyContextProxy that only gives access to getVariable(String) and 
> setVariable(String, Object)?

But there is !
TagSupport.getContext(), absolutely no proxying whatsoever.
I am not sure why you would want to prevent access to the whole 
context. At least such things as access to the URL, class-loader, and 
tag-library definitions are things you want to offer to most tags.


View raw message