Create? As in, generate it under
Java control using file I/O?
And if this is the case, I'm assuming that it is the triggering at web app start that's the question?
If so, I'd write up a
servlet that creates the file to your liking and load it via the web.xml deployment descriptor.
Odd thing to be doing. Why do you need to generate the file at web app init? If you just need some dynamic content, it might be easier to use the
JSP mechanism in your js file to effect dynamic JS content.
hth,
bear