Question: I use CNF to make a view like Project Explorer in my RCP app. I'm done showing new menu and its submenu when user right clicks on a project in the view.
![enter image description here](https://i.stack.imgur.com/zUzGw.png)

But when user click on a submenu (for this case, a method library going to be created), **I need to know which project object that user has right-clicked on**.

My question is how can I do that? Please help me.

Thank you all,
Nautilus

Answer: 
what's wrong with

```
app.use('/modules/MODULE1', express.static('modules/MODULE1/public'))

```

for each module?
The answer is here:

<https://groups.google.com/forum/?fromgroups=#!topic/express-js/kK9muR0mjR4>

Basically:

```
var st = express.static(
    __dirname + app.set('path.static'), 
    { maxAge : app.set('static.expiry') }
);

app.get(/^\/static\/(v.+?\/)?(.+$)/, function (req, res, next) {
  req.url = req.params[1];
  st(req, res, next);
});

```

Basically, since Static consider req.url, it's a matter of hacking it so that it "looks right" when/if the path matches.

I asked TJ if he would add it as an option, he (rightly) answered:

> 
> this isn't something send() should do, you can already do this easily with connect/express with several static() middleware, you would just have to do the same but more manual with send()
> 
> 
> 

<https://github.com/visionmedia/send/issues/10#issuecomment-8225096>