• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP Tag LIBRARY.....

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everyone,
I have a doubt in how lifecycle of taglib works...
public abstract void setPageContext(javax.servlet.jsp.PageContext);
public abstract void setParent(javax.servlet.jsp.tagext.Tag);
public abstract javax.servlet.jsp.tagext.Tag getParent();
public abstract int doStartTag() throws javax.servlet.jsp.JspException;
public abstract int doEndTag() throws javax.servlet.jsp.JspException;
public abstract void release();
Above is the sequence in which methods are called.
THIS IS MY JSP PAGE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<%@ taglib uri="cs6386-taglib.tld" prefix="cs6386" %>
<TITLE><cs6386:first_tag /></TITLE>
</HEAD>
<BODY>
<H1><cs6386:first_tag /></H1>
<cs6386:second_tag />
</BODY>
</HTML>
My question is
IN THE ABOVE PROGRAM I HAVE CALLED 3 TIMES THE TAG CLASS. SO EACH AND EVERYTIME IT WILL CALL doSTARTTAG() METHOD.IS THIS RELATED TO CREATING NEW INSTANCE...SO IF I DIDN'T CODE doENDTAG() IS IT GOING TO BE A PROBLEM..OR HOW IT EXCATLY WORKS...
THANX IN ADVANCE...
SENTHIL
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What are you returning in your doStartTag()
 
senthil nathan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm returning
SKIP_BODY;
in my doStartTag()
Senthil
reply
    Bookmark Topic Watch Topic
  • New Topic