>In the code that comes with X-Works, each form has a hidden field to indicate the PRG to execute when the POST method is used. Is this the best way to go? Using this method, I can see many PRG files being created. Also, this method is not a very object oriented approach, but it does seem to provide an easy way to add and modify forms.
>I was thinking of creating a class and storing each PRG as a method. I could then use CREATEOBJECT() to create the object and process the request. This might make it hard to add and modify forms without bring down the server. All comments are welcome!
I would suggest you need to build a framework which will be responsible to dispatch to the appropriate EXE.
You will find some information on my article as well about this implementation.
I will send you something by email which might interest you.