I spent a few hours on this last night. It was going pretty well when I had to call it a night. I hope to submit a patch for review and I'm pretty sure it will address Dave and Allen's concern about adding to the learning curve for developers.

I changed the PageServlet into a Controller called PageController and moved the Velocity-specific code into a View called RollerVelocityView. PagController gets the view from a factory that can be injected at initialization time.

PageController calls:
ContextLoader.setupContext( ctx, rreq, response );
as before, but "ctx" is now a HashMap and I changed lots of references to VelocityContext into references to the Map interface.

I didn't get to the point of actually trying to test and won't have the time for a few days, but I'll report back with an update at that time.

-- Sean

Reply via email to