Using non-required parameters with java tags
So, you've decided to take the plunge, and make custom java tags. Now, you've got two of the same tags, with some non-required fields, and values set in one are showing up in the next. What's going on? Basically, Java's a bit confused. I won't go into all the details here; if you're really currious, you can go googling. How do you fix it though? Easy, actually. Just implement the TryCatchFinally, and override the doFinally() method to clear out your variables. This way, when Java parses the next tag, it won't have the value left over from the last.
- csigman's blog
- Login or register to post comments

