I'm using the front controller pattern in conjunction with a command resolver class, whose only function is to map requests from the view to a command object.

Everything works fine, but I'm starting to wonder if my implementation, which basically consists of a switch statement, is actually bad practice. 

Would it be better practice to replace this switch statement with an XML file, or to map the requests physically to files in the command class (i.e. the request name would be the file name), or is a switch statement fine for this purpose?

Edit: I am using MVC, the front controller exists in the controller. This is more of a design pattern within a design pattern question.