title: Cannot get request params in express middleware
body: <p>I am not able to read any req.params in my middleware. I have a minimal express web server that looks like </p>
  
  <pre><code>'use strict';
  
  var express = require('express');
  var app = express();
  
  //middleware
  function userMiddleware(req, res, next) {
    console.log('user came in. Hello ' + req.param('name'));
    next();
  }
  
  //register middleware
  app.use('/user', userMiddleware)
  
  // routes
  app.get('/user/:name', function(req, res) {
    res.send('username : ' + req.params.name);
  });
  
  app.listen(3000);
  console.log("listening on 3000...");
  </code></pre>
  
  <p>When I try to hit localhost:3000/user/williams , I expect to see  in the log : </p>
  
  <pre><code>user came in. Hello williams
  </code></pre>
  
  <p>but I see </p>
  
  <pre><code>user came in. Hello undefined
  </code></pre>
  
  <p>Should I include any other middleware so that the req.params is populated  in the middleware ? 
  I'm using  <code>express@3.3.4</code></p>