Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
|
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 13th, 2005, 02:40 PM
Registered User
 
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Evaluating body content of a custom tag

Is it possible to evaluate a custom tag that is inside another tag with <body-content>tagdependent<body-content>?

In "Professional JSP Tag Libraries" by Simon Brown on pages 168-174 (the end of Chapter 6) he discusses a custom tag that can display code to the browser without it being interpreted by the JSP container. The trick is to use tagdependent body content.

My question is: Is it possible to *also* interpret that code? For example, the following in the JSP
<a:displayCode>
  <b:currentDate />
</a:displayCode>

would produce in the browser:
<b:currentDate />
May 13, 2005

So that you could both echo the code used for the inner custom tag and evaluate it also.

Thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
Content page DIV tag problem msbsam ASP.NET 2.0 Professional 0 September 19th, 2008 12:12 AM
Printing the content inside the div tag cheeky Pro JSP 0 April 26th, 2007 07:26 AM
Properties in Body Tag - Pg. 40/41 jabs BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 December 5th, 2006 09:12 AM
HTML tag vs Body Tag CFGerry BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 October 7th, 2005 07:13 AM
body tag in an include page Adam H-W Javascript 8 April 29th, 2004 03:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.