Injecting code into <head>

I am using vaadin 6.7.something and I need to add a non-vaadin component to a page in my webapp. I have the need of using several libraries written in .js that I need to define in , followed by a script to use the code, then also add a

that the js references to,. What I want to accomplish is something like this:

I haven’t seen any solution to this that doesn’t involve importing the .js libs by using some wierd js-code that I’d like to avoid. I’d be very gratefull for any advice. Excuse my English, it is not my native language.

You need to override the default Vaadin servlet like in
this thread