Yeah that worked thanks Bruce I am wondering whether this is on the exam Head First slightly mentions the variable directive in the questions though.
here is the jsp
and the sri.tag
It produced the result
The subtitle is The Da Vinci Code
The variable directive is used to pass back values (kind of like a return from a method) to the main JSP from the tag file.
more here
webpage