6/10/2005

From one Spring Controller to Another

It's been a BUSY week for me. I'm heads-down on my current project trying to get some code cranked out before next Wednesday. I'm not sure I'm going to make it, but I'm giving it hell.

I'm using the Sring Framework and its MVC layer on this project. I ran into a problem where I wanted to do some work with one controller and forward the result to another controller. It turns out, that ain't exactly pretty in this version of Spring MVC. It's actually a problem that Spring Web Flow is going to solve. Unfortunately, it's too late for me to pull the plug and switch to Web Flow.

I found Tamer Salama's Weblog post about Spring controller forwarding extremely useful. FYI - I went with the RedirectView option, but I put my information on the URL as parameters.

No comments: