PDA

View Full Version : What is the proper way to pass a command object to the next page?


bmeltzer
Sep 12th, 2007, 08:03 AM
I have a single page secure form (https://host/context/form.html) with its own controller and command object.

On submit, I bind the form entries to my command object and add some more data (like an order id).

I then redirect to a non-secure receipt page (http://host/context/receipt.html)
This page has its own controller/view and I would like to get the command object from the form submission and use it to display the receipt data in the view.

If I use a session attribute, it doesn't pass from the secure to the non-secure page (I imagine that's a standard security feature for servlets).

What is the proper (Spring) way of doing this?

Thanks,
Bill.