The Artima Developer Community
Sponsored Link

Java Buzz Forum
TagUnit 1.0.1 available

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Simon Brown

Posts: 636
Nickname: simonbrown
Registered: Jun, 2003

Simon Brown is a Java developer, architect and author.
TagUnit 1.0.1 available Posted: Mar 11, 2004 5:41 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Simon Brown.
Original Post: TagUnit 1.0.1 available
Feed Title: Simon Brown's weblog
Feed URL: http://www.simongbrown.com/blog/feed.xml?flavor=rss20&category=java
Feed Description: My thoughts on Java, software development and technology.
Latest Java Buzz Posts
Latest Java Buzz Posts by Simon Brown
Latest Posts From Simon Brown's weblog

Advertisement

TagUnit 1.0.1 has been uploaded to the SourceForge file release system. It's a minor update that fixes a problem where using the expectedResult and actualResult tags with empty bodies can result in reuse of previous body content. You can get it here.

I've only noticed this behaviour on Tomcat 4.1.x and it's caused by the way that the JSP is translated into a Servlet. I'm not sure whether this is part of the spec, but when a tag handler instance is reused, its body content (if it's a BodyTag) does not get set to null if the body content is empty. What this means is that calling getBodyContent() gives you back whatever content was used in the previous invocation with that tag handler. As a fix, I simply call clearBody() when I'm finished accessing it.

Read: TagUnit 1.0.1 available

Topic: RDF pixie dust Previous Topic   Next Topic Topic: David Parnas at the University of Limerick

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use