The method generateBody() is meant to "continue to generate
codes for body of the tag, as usual". What you want is a method
to "generate codes to get the body content", which is certainly
doable, but is not currently available. You are welcome to have
the first crack at extending the plugin frame
Thanks for all your help.
But I still have questions :-). I know that the body content of the tag is the
runtime entity. I think the value of some attributes is also runtime entity, if
its value can be EL. The method generateAttribute can generate the code in the
generated x_jsp.java file whic
The body content of a tag is a runtime entity, and you cannot
generally get it during compilation time, since it may contain
non-template texts. You need to achieve what you want in another way,
such as the use of JSP fragments.
-Kin-man
On Sat, 2005-08-20 at 00:26, wing lee wrote:
> I think it'
I think it's ok in the "if" tag. When the following code
ctxt.generateJavaSource("if (" + condV + "){");
ctxt.generateBody();
ctxt.generateJavaSource("}");
is executed, the generated code is supposed to be:
if(temp_name_of_condV){
out.write(body_content);
}
the generateBody method not g
wing lee wrote:
> I've tried the generateBody method, but it just generate such code
> "write.out(body content)", don't return the value of the body content.
That's odd: it's supposed to continue evaluation and code generation for
the body, not consider nested stuff as static text. There's a goo
wing lee wrote:
> Hi all,
> I'm working on the JSTL tag plugin for jasper. I don't fin any method in the
> interface TagPluginContext to get the body content of the tag. But I have to
> use it. Anyone can help me?
Isn't that supposed to be TagPluginContext.generateBody ? I didn't try
it, though.