Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Combining Javascript File through a Servlet

800321Sep 6 2009 — edited Sep 11 2009
I have a bunch of javascript file which exist on my web server so what I want to do is instead of loading each one on every page slowly with 10 script tags I want to write a servlet which merges them together and then sends them out to the browser. My problem is I can not find any way through code to access these JS files. I need to use streams so things like a JSP include are out of the question.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 9 2009
Added on Sep 6 2009
13 comments
945 views