I think the REQUEST TIME EVALUATION for custom taglibs is broken in as
TOMCAT 3.2.1. I could not get my Custom Tag to work. In the end I found
that using apparently simple custom tags to many times would produce
wait for it
JSP CODE BLOAT.
I had one post compiled JSP in $TOMCAT_HOME/work/*/*.jsp that was over 200K
in size. You would not write a single Java Servlet that is 200K long. That is
because use a simple tags such this
(1)
<img src="<foo:contextPath/>/image/help.gif"
width="24" height="24" border="0"
alt="Get Help for this web page!" >
whereas before I had
(2)
<% String contextPath = request.getContextPath() %>
<img src="<%= contextPath+"/image/help.gif" %>"
width="24" height="24" border="0"
alt="Get Help for this web page!" >
Compare the two post compiled java file in Tomcat.
So moral of the story: Custom tags are great for complicated and
business logic tasks. Custom tags are bad for repetitious and
seamingly simple tasks for example just for a `readable-win-win'.
BTW: May be RESIN implements JSP 1.2 other I dunno what server does
--
Peter Pilgrim
G.O.A.T
"the Greatest Of All Time"
---------------------------------------- Message History
----------------------------------------
From: Bernard Granier <[EMAIL PROTECTED]>@java.sun.com> on 11/04/2001 14:09 ZE2
Please respond to A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
DELEGATED - Sent by: A mailing list about Java Server Pages specification and
[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: JSP 1.2 ?
Hi,
I would like to do a such things using the jakarta tagllibs :
<% String connName = application.getAttribute("AName"); %>
<sql:connection id="<%= connName %>" >
...
</sql:connection
It seems possible with the specification JSP 1.2 .
Is there another server than TOMCAT 4.n which implements this specificaiton
?
--
This e-mail may contain confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorised copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets