Hi I-Lin! Fancy meeting up with you here! Nope, what you describe is not what I want, precisely because I do not know what the value of "lookup" is before I want to use it...could be just a string, could be HTML (i.e....a string), or could be JSP (i.e....a string, too, except this time I want it to be evaluated at request time). Sounds like something is in the works for JSP 1.3 ("JSP fragments") so I will have to wait....
jeff I-Lin Kuo wrote: > Hi Jeff, > > I'm not sure exactly what you want, but couldn't you just nest tags? > > <mytaglib:bodymunger value="lookup"> > <mytaglib:customprocessing value="lookup"> > Place the stuff *** here > </mytaglib:bodymunger> > </mytaglib:bodymunger> > > if you didn't want to retype "lookup" in the inner tag, you could make > the inner tag an associated child tag of the outer one and have it > get the value="lookup" from the outer one. > > Here are some good references > http://www.onjava.com/pub/a/onjava/2001/01/18/jsptags.html > http://www.onjava.com/pub/a/onjava/2000/12/15/jsp_custom_tags.html > >> From: Jeffrey Bonevich <[EMAIL PROTECTED]> >> Subject: Altering content of BodyContent prior to JSP eval >> Date: Tue, 09 Apr 2002 09:57:45 -0400 >> >> How can I get at the content of BodyContent in a BodyTagSupport >> subclass, alter that content, and then reinsert the content into the >> body before it gets evaluated as JSP? Is this just just totally >> anathema to JSP spec or something? Say that I have the following: >> >> <mytaglib:bodymunger value="lookup"> >> Place the stuff *** here >> </mytaglib:bodymunger> >> >> Then in the BodymungerTag (extends BodyTagSupport) I want to lookup the >> value of "lookup", grab the body content, and replace the string "***" >> with that value. Say the value actually returns a string: >> <mytaglib:othertag/> >> >> Then I want that new content evaluated as JSP. >> >> Is there any way to do this? Do I have to do it manually using Jspc or >> something? >> >> jeff >> >> -- >> Jeffrey Bonevich >> Ann Arbor, Michigan >> [EMAIL PROTECTED] >> http://www.bonevich.com >> >> Hwæt! W?Gär-Dena in geär-dagum, >> peod-cyninga, prym gefrünon, >> h?ða aepelingas ellen fremedon! >> >> >> -- >> To unsubscribe: <mailto:[EMAIL PROTECTED]> >> For additional commands: <mailto:[EMAIL PROTECTED]> >> Troubles with the list: <mailto:[EMAIL PROTECTED]> >> > > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > > -- Jeffrey Bonevich Ann Arbor, Michigan [EMAIL PROTECTED] http://www.bonevich.com Hwæt! Wë Gär-Dena in geär-dagum, peod-cyninga, prym gefrünon, hü ða aepelingas ellen fremedon! -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>