Thanks very much guys for your feedback. Would it be possible to take a look at the following pseudo code? This is a general outline for the current implementation - I have added my concerns/thoughts at the end of the message:
Controller Servlet Command Factory Command Interface A Comand Class One of the problems is with getting the XSL, currently XSL file/path is hardcoded into the class.I would like this to be more generic and reusable.
Should this function even be in this class or should I move this out to the controller servlet?
Essentially the command will always return the same XML but the XSL to use will change based on certain business criteria- for example - the customerid and locale. What is a good technique for this? Should I code these values into hidden fields in the HTML?
Any thoughts and suggestions, criticisms would be greatly appreciated. I'm already taking a look at the patterns you guys suggested earlier!
Thanks again
Keith