frontcontroller

Can a servlet determine if the data posted to it is enctype="multipart/form-data"?

I have a servlet that is used for many different actions, used in the Front Controller pattern. Does anyone know if it is possible to tell if the data posted back to it is enctype="multipart/form-data"? I can't read the request parameters until I decide this, so I can't dispatch the request to the proper controller. Any ideas? ...

Simplest PHP Routing framework .. ?

I'm looking for the simplest implementation of a routing framework in PHP, in a typical PHP environment (Running on Apache, or maybe nginx) .. It's the implementation itself I'm mostly interested in, and how you'd accomplish it. I'm thinking it should handle URL's, with the minimal rewriting possible, (is it really a good idea, to have...

how can redirect after a dispatcher exception?

On zend framework inside my bootstrap file i have the following code: $frontController = Zend_Controller_Front::getInstance(); try { $front->dispatch(); } catch (Exception $e) { echo "Something wrong happen"; } Instead the ugly message i want to redirect to a custom controller... how can i do that if i can not use $frontC...