Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Professional JSP Example Error

Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP has finally clicked for me, and I am hitting the new year with a new zeal for studying.
But it have hit an error in Chapter 10 of the Wrox book, and I am wondering if anyone else can duplicate the error.
In, the doEndTag() method is throwing a null pointer exception. It is because the body is empty, and it is trying to getting back null from getBodyContent, then trying to write null to the output stream. The TLD says the body-content should be empty, and it is indeed in the JSP. When I allow body content, it works fine.
Does anyone else get this error?
I didn't say it. I'm just telling you what this tiny ad said.
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic