This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi ranchers!Got a bit of problem in return type of tag methods.It states in the JSP1.2 Spec (pg 164 Tag Extension API) that " If the TagLibraryDescriptor file indicates that the action must always have an empty action, by an <body-content> entry of “empty”, then the doStartTag() method must return SKIP_BODY. Otherwise, the doStartTag() method may return SKIP_BODY or EVAL_BODY_INCLUDE. " But if I try it out ie an empty tag & make the doStartTag() return EVAL_BODY_INCLUDE,then the code gives me no problem. Also ,those of you who have the Manning book,their IfTag.java in chapter16 has following code : if (condition) return EVAL_BODY_INCLUDE; else return SKIP_BODY; & the tld file has the <body-content> for that tag as empty. Why is this so? Also,if i put some junk values for the <body-content>(or for anthing in the tld) ie <body-content>12345</body-content> then it gives me no error & accepts the default value "jsp". Any answers?