JSTL is probably a better option that struts logic tags, as you gain the benefits of containers being optimised for c:if and c:choose/c:when while not needing scriptlet code. logic tags where written before jstl was kicking around.
<c:if test="${empty myvar}"> My variable exists </c:if> rather than <% if(null != myvar && !"".equals(myvar)) { %> My variable exists <% } %> If your container supports jstl then I'd choose it over scriptlets any day, and in theory containers are optimised for it. Mark On 1/5/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > It isn't unreasonable to think that a taglib will impose a performance > impact over straight scriplets because there is extra work involved in > executing the tag... the container needs to instantiate the tag class > (although maybe there is a pool, I don't know), then populate the > properties, then excute, etc. > > Will this impact be significant? Assuming the container is fairly > efficient, and assuming the code in the tag class isn't written stupidly, > I wouldn't think it would be something to worry about. It is similar to > calling a method vs. inlining the code... inlining will, compiler and > runtime optimizations aside, result in faster execution. But it is in > most cases not a significant difference. > > The benefits you gain by using the tags outweighs any peformance impact, > most would agree. > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > AIM: fzammetti > Yahoo: fzammetti > MSN: [EMAIL PROTECTED] > > On Thu, January 5, 2006 4:54 am, Raghuveer said: > > > > Does there will be any performance issue if i use struts tags like logic > > tags, when comapred to > > "if " condion in scriplet in JSP. > > > > Does there will be any impact on request/responce time of use only struts > > tags in JSP's. > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]