Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Tag LIBRARY.....

 
senthil nathan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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
 
Angelo Watson
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you returning in your doStartTag()
 
senthil nathan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm returning
SKIP_BODY;
in my doStartTag()
Senthil
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic