Hi!

Trevor Squires wrote:
> Whilst I haven't downloaded your example I'm currently working on a model2
> web application.  I'm afraid that I've had to shelve my "no java code in
> jsp" dogma in favour of the real world.
> 
> After writing my own simple "iterator" and "if" tags (since validated as
> virtually identical to ones found in orion and jakarta) it turns out that
> tags are significantly slower.
> 
> For example, we previously used an "iterator" tag to generate option lists
> and "if" tags to conditionally add "selected" to particular options
> (javascript can be disabled so it has to be done this way).  We found that
> it was roughly 12 times faster to replace the "if" tag with a simple
> trigraph inside a jsp:expression tag in weblogic5.1.
> 
> The overall performance is bad enough that we've considered translating
> the jsp before it gets installed in the document root, converting all of
> our tags to the &lt% %> java code equivalents.
> 
> You know from previous (offline) conversations we've had that I'm a big
> fan of taglibs but they are not a silver bullet and they do not offer a
> simple, clear alternative to java in the jsp 100% of the time.  Sometimes
> (and it seems with weblogic's implementation, often) a bit of java in the
> jsp is a smarter option.

Good point. Yes, I think too that it is a tradeoff in terms of
performance. I still prefer it instead of using Java code though.

I might have to reconsider that statement later though. We will see.

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to