MVC Controller Layer on Coldfusion
Posted on 2008-10-03
I´m trying to build a application on ColdFusion based on MVC, but not using a Framework.
I´ve built some pagelets with forms that submit the content to a controller with an action like "/controllers/Publication.cfc" with the method as input argument. At controller i have some methods to validate the input and if it is all ok, update the database and finaly call another view.
My question is: when the validation is not ok, i want to send the user to the first view again and mantain the form with the information the user gave and also send him the validation error result.
I could not find a way to handle a callback. Is there some way to do this?
I´d like not to use session variables
And sorry if my question is a bit stupid! I'm new at MVC in Coldfusion.
Tks for your attention!