title: How does struts 2 includes javascript files in a jsp from their struts.jar?
body: <p>I've noticed that the javascript client-side validation feature of the struts 2 framework uses a javascript file that comes inside the struts2 JAR file. The javascript file gets included somehow in the JSP page apparently by just using a tag from the framework.</p>
  
  <p>If I manage to do this it will be extremely helpful for the many javascript library files that I'm always copying inside every new web project, because I'll put them all inside a JAR file and then every project won't have a different copy of the files (wich, as you may know, causes a lot of trouble).</p>
  
  <p>Anybody knows how they did it?</p>