Apologies, the getServletConfig().getContextPath() in the init() of my
servlet works well, that probably had been a problem in my VS Code.
Still I wonder, if I would set a "property" with a "name" and "value" as
described in the "Jetty XML Syntax" section
I try to use the following but the method is not available:
@Override
public void init() throws ServletException {
super.init();
mLanguage = getServletConfig().getContextPath();
}
___
jetty-users mailing list
Good morning,
I have an "overengineered" setup with Jetty 10.0.16 and haproxy 2.7.8,
where I currently run 6 different Jetty instances to serve the same servlet
-
I have programmed that WAR servlet using Maven and it supports 6 languages:
src/main/resources/strings.properties
Thank you, Joakim - your second suggestion has worked well for me:
webapps/root.xml
http://www.eclipse.org/jetty/configure_9_0.dtd;>
/
index.html
/var/www/html/wordsbyfarber.com
true
Thank you Joakim for the extensive answer, however -
On Tue, Oct 3, 2023 at 2:23 PM Joakim Erdfelt via jetty-users <
jetty-users@eclipse.org> wrote:
> Per the javascript RFC, the `text/javascript` mime-type has an optional
> `charset` parameter.
> The behavior is documented at
>
Hello,
I am using Jetty 10.0.16 and when it serves static JavaScript files (I have
Consts-en.js, Consts-de.js, Consts-fr.js, ...) the encoding is
unfortunately not set to utf8 (like it is for the served json files).
Is there a way to enforce that without compiling a custom version of Jetty?
I