×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / doStartTag(). Should this method be done once it's loaded by tag.tld? Is this like init() in Applet and start() in thread? tks.
    • Nearly cannot understand your question. Whose doStartTag()?
      If I discuss with you about toUpperCase() method or getDate() method, can you understand me? :-) :-)
      • sorry sorry sorry. It's in Tag Lib of JSP. It's said I must every Tag Lib should have doStartTag() .
        • Your question is still unclear, but let me try.
          Dear "How are you",

          It is important not to assume that your talking partners can understand you easily.

          I guess you are talking about doStartTag() method of the "tag handler".
          It is from javax.servlet.jsp.tagext package.

          This method performs the action associated with its custom tag. It returns one of two integer values in indicating how processing is to proceed. These two integers are final constants
          javax.servlet.jsp.tagext.Tag.SKIP_BODY and javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE.

          Just a note in passing: Note in all the projects people use custom tags, because they are not easy to handle. But it is a good idea for you to do a few small exercises.