sounds like we need a jsp version of cf_bodycontent....
I've kind of hashed one up, but it doesn't work too well...
What it should do is everything between the tag is returned as a variable,
but not actually output to screen (or buffer?).
eg if the template is:
<!------------------------------------------->
<jsp_bodycontent return="myvar">
some text
</jsp_bodycontent>
some other text
<%= myvar %>
<!------------------------------------------->
Then what appears on the page is:
some other text
some text
Does that make sense?
The problem i found with the tag i wrote was that if i included a file
within the tag, then the contents of the included file were not captured my
mytag.generated content....
Bert
ps apologies for cross post but it seems appropriate
> -----Original Message-----
> From: Regina Moore [mailto:[EMAIL PROTECTED]]
> Sent: 27 April 2001 15:37
> To: JRun-Talk
> Subject: Equivalent of <cfhtmlhead>?
>
>
> speaking of equivalent to a cf tag...
> Here's one that's stumped me. I'm trying to replicate the
> functionality of
> <cfhtmlhead>. So basically, I need to create a custom tag
> that when called,
> will modify the <head> tag of the calling jsp. The problem
> is that the
> <head> tag in the calling jsp occurs before the custom tag.
> So how can I go
> back and modify something that's already been done? Here's
> an example of
> what the calling jsp would look like:
> <html>
> <head></head>
> <body>
> <mytaglib:mytag/>
> </body>
> and what i want to do inside the custom tag is manipulate the
> html <head>
> tag to contain a few lines of javascript. But how do you
> manipulate content
> that comes BEFORE the call to the custom tag?
> I've come up with a very dirty solution that involves
> creating a new jsp,
> copying the contents of the old jsp to the new jsp, and then
> modifying the
> <head> tag during the copy. But that opens up a whole new
> bag of worms.
> Anyone have any other ideas???
> thx
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists