
Originally Posted by
javaspring
Hi all,
I'm working on a e-commerce application using Spring 1.2.8 framework.
I need to prevent the user from violating the normal process of application execution. For example, if someone is buying an article the following process should be respected : 1-adding articles to the cart -> 2-validating cart -> 3-payment -> 4-payment confirmation...etc
The problem is that users may access directly one of this process steps violating the normal process order.
Is there any solution to solve this problem ?
thanks,
Maybe a little more information of your implementation is needed. Are those 4 steps implemented as own controllers? I guess so? One solution indeed is the AbstractWizardFormController or maybe you should just check the values in your command object that holds the user's data (selected products etc.). If needed infomation is missing, throw an error and redirect user elsewhere.
This is just my quick solution, since I don't know any details of your project
if a trainstation is where the train stops, what's a workstation...