How to intercept tag's output
1 posts in topic
Flat View  Flat View

Posted By:   Yuriy_Zubarev
Posted On:   Sunday, December 30, 2001 06:41 PM

Hello guys,

The question has a little to do with Struts, but may be someone knows the answer.

I have a custom tag where I instantiate another custom tag and call its doStartTag() and doEndTag() methods. Those methods write data to JspWriter that is assocaited with PageContext I provided.

I would like to ask if any one knows how get output of mentioned method to my own writer? I just want a String of what they normaly draw in JSP page.

Thank you for your time!

Re: How to intercept tag's output

Posted By:   Ted_Husted  
Posted On:   Monday, December 31, 2001 03:12 AM

You may want to refactor the code so that both methods
can call a common library routine that returns the output,
rather than each other.

HTH -Ted

About | Sitemap | Contact