Keeping result of calling a jsp.tag

In my jsp I am calling a tag that returns a string. Is there a way to assign the result of calling the tag to a variable, so I can use it as a string in my jsp?Thanks!
[181 byte] By [Odd_Ra] at [2007-11-26 18:55:03]
# 1
yes, use jslt<c:set might work for you. what do you mean keeping result?>
mkoryaka at 2007-7-9 20:32:42 > top of Java-index,Java Essentials,Java Programming...
# 2

I need to implement a simple form of caching, like this:

<%! Cache cache=new Cache();

%>

<% String result="";

if(result is in cache)

out.print(cache.get(result);

else{

result=<my_taglib:my_tag parameter="my_parameter"/>

cache.add(result);

out.print(result);

}

%>

However this seems not to work. Any ideas?

Odd_Ra at 2007-7-9 20:32:42 > top of Java-index,Java Essentials,Java Programming...