Storing the Option inside the DynamicVariable seems unnecessary as
long as you're throwing an exception when there's no stuff. Unless
your route is going to handle None, I would simplify to
DynamicVariable[Stuff]. Request attributes are a nie option as long
as you create a getter and setter to hide the cast. Something like:
def stuff: Stuff = request("stuff").asInstanceOf[Stuff]
def stuff_=(stuff: Stuff) { request("stuff") = stuff }
--
Ross A. Baker
ba...@alumni.indiana.edu
Indianapolis, IN, USA