aspose file tools*
The moose likes JSP and the fly likes JSP Tag LIBRARY..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Tag LIBRARY....." Watch "JSP Tag LIBRARY....." New topic
Author

JSP Tag LIBRARY.....

senthil nathan
Greenhorn

Joined: Jun 14, 2002
Posts: 17
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

Joined: Oct 27, 2002
Posts: 39
What are you returning in your doStartTag()
senthil nathan
Greenhorn

Joined: Jun 14, 2002
Posts: 17
I'm returning
SKIP_BODY;
in my doStartTag()
Senthil
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSP Tag LIBRARY.....