This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes JSP and the fly likes Custom Tags : Tag handler class not called Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Custom Tags : Tag handler class not called" Watch "Custom Tags : Tag handler class not called" New topic

Custom Tags : Tag handler class not called

madupu Prasanna

Joined: May 18, 2010
Posts: 2

Im new to JSP.

I have a sample custom tag handler which prints date and is compiled with out errors.

when i call the tag in my jsp file, it is printing nothing.

Tag Class :

public int doStartTag() throws JspException
public int doEndTag() throws JspException
return Tag.EVAL_PAGE;
public void dateStamp() throws JspException
JspWriter out = pageContext.getOut();
out.write("<i>"+ new Date() +"</i>");
out.write("Class calling ... ");
catch(IOException e)
throw new JspException(e);

can anyone help me out?

Thanks in advance,
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62291

Please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information.

Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: Custom Tags : Tag handler class not called