Hello! Such a question, there is a website written in HTML, the Restful web service is written to it, I use WildFly 11 web server, and the problem is that when displaying pages, instead of Russian texts, incomprehensible characters are displayed. I specify the links to the pages via web.xml like this:

<servlet> <servlet-name>account</servlet-name> <jsp-file>/resources/pages/mainFrame.html</jsp-file> </servlet> <servlet-mapping> <servlet-name>account</servlet-name> <url-pattern>/account</url-pattern> </servlet-mapping> 

On HTML pages it is also indicated like this:

 <head> <meta http-equiv="Content-Type" content="text/html" charset="UTF- 8"/> <!--<link rel="stylesheet" href="resources/css/index.css" type="text/css">--> <link rel="stylesheet" href="/SnackLanguage/resources/css/index.css" type="text/css"/> <title>Snack Language</title> </head> 

Here's what's in the server settings in the admin panel: enter image description here

But the fact that in the settings of servlets: enter image description here

And here is what I get in the browser: enter image description here

Who can help fix these cracks?

  • I suspect the problem is that for some reason you have indicated the html-file in the <jsp-file> tag. The container undertow itself gives html-files, without mapping. - Sergey Gornostaev
  • What do I need to do to fix this? - Main Star
  • Either remove mapping from web.xml, or use jsp. - Sergey Gornostaev
  • It did not help. - Main Star
  • And if the html file is just locally open (without a server), what does it look like? with the same karkrzyabry? - Ramiz

0