Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: taglib


Message #1 by waseem altaf <waseemaltaf@y...> on Mon, 18 Jun 2001 02:44:45 -0700 (PDT)
Hi there,

I have a slightly different spin to this question and I would say that it 
depends on what you want to do. As a rule of thumb, I would tend to use 
JavaBeans for business objects, accessing data and storing session state. 
Custom tags on the other hand I would use for generating HTML, iterating, 
etc and also for accessing enterprise resources such as EJBs.

Maintainability is an important issue, but regardless of whether you use 
tags or beans, the page designers probably won't be responsible for 
maintaining the Java code. For this reason, I would probably recommend 
that you limit the HTML that gets generated in your tags - in other words, 
leave this on the JSPs where it belongs.

Hope that helps...

Regards
Simon
Co-author Professional JSP, 2nd edition

  Return to Index