tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Klemme, Robert, myview" <>
Subject Q: Why using introspection and reflection inside a compiled JSP?
Date Mon, 05 Feb 2001 08:55:42 GMT

**  sorry people for reposting - i got no answer so far. maybe the e-mail
got lost.  can someone comment on this, please?  thx!  **

hi all,

this might be regarded as a user question but i think this is so much
internal that this is the right list to post to.  if not, please excuse me.
i will then repost on the users list.

ok, here's what i'd like to know: looking at the java code generated from a
JSP i found this:

in the JSP (the details of the tag are irrelevant.  the important thing is
the property):
<my:tag foo="false">

in the generated .java file:
"foo","false",null,null, false);

since the type of the attribute can be determined at compile time i wonder
why introspection / reflection is used inspite of the performance drawback.
did i overlook something?  can anyone anser this?  thank you!


Robert Klemme
Software Engineer
myview technologies GmbH & Co. KG
Riemekestra├če 160 ~ D-33106 Paderborn ~ Germany
Telefon: +49/5251/69090-321 ~ Fax: +49/5251/69090-399

View raw message