вс, 15 мар. 2020 г. в 13:47, Peter Rader <p.ra...@gmx.net>:
> I have my default.js in a frontend.jar's /META-INF/resources/js/ according to 
> the specs (last paragraph of point 10.10 in 
> https://download.oracle.com/otn-pub/jcp/servlet-3.0-fr-eval-oth-JSpec/servlet-3_0-final-spec.pdf
>  ) it is served successfully. This works great!

1. If you unpack the file into a directory in your web application
(into its /js/ directory),
it will take precedence over the version packed in the framework jar.

2. It is possible to map files from elsewhere on your hard drive into
your web application.
It can be done with "<PreResources>" element in the
META-INF/context.xml file of your web application.

For reference:

3. If your Tomcat runs on the same computer. you can run the web
application from an expanded directory, without packing it as a war

1) Copy your META-INF/context.xml file as

2) Add docBase attribute to the <Context> element in it.


Best regards,
Konstantin Kolinko

To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to