Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Custom tags - how to modify body to include dynamic elements?

843835Sep 30 2002 — edited Oct 1 2002
Hi All,

I need to create a custom tag that can modify its body to include scriptlet elements. For example, if a JSP declaration looks like:
<cda:module />
In the custom tag implementation, I want to add dynamic scriptlet code such as
<%= new java.util.Date().toString()%>
I tried adding this extra code within the
doInitBody
method; however, while it seems to add the static text into the final output, the dynamic scriptlet code does not get evaluated at all.

Any help will be appreciated.

Thanks,

Raja
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 29 2002
Added on Sep 30 2002
2 comments
223 views