0

I made a small java ee app, and a login in html, with a form post method to a java class verification.

UTF-8 is respected at the beginning, as we can see on this:

Login Html page

When the login or password is not good, we have this message at the top

Failed login message

And as you can see, there is a problem with accent. here is the source code after ctrl+u :

enter image description here

And this is the class that checks the login, and send a out.print.ln : enter image description here

I don't understand why there is a problem with utf-8 after the out.print.ln ? How can I solve this ? I could have used a jsp page, but I used this tag lib in my web.xml file :

    <jsp-config>
        <jsp-property-group>
            <url-pattern>*.jsp</url-pattern>
            <include-prelude>include/taglibs.jsp</include-prelude>
        </jsp-property-group>
    </jsp-config>

, that doesn't give me the possibility to use my index page as a jsp , which is in a different folder from others jsp, (because it tries to include taglibs.jsp, but it is in a different folder from the include prelude, I think you understood).

Thanks for your help

9
  • Is your title displayed on the top when the password is wrong? Commented Jan 20, 2018 at 14:38
  • Hi Ad5001, yes it is :) Commented Jan 20, 2018 at 14:39
  • If you comment out the line where it prints "identifiant ou mot de passe incorrect", do you still have the issue? Commented Jan 20, 2018 at 14:41
  • I just tried, and yes, still the same issue... Commented Jan 20, 2018 at 14:43
  • Have you tried forwarding the request instead of including it when the password is incorrect? Commented Jan 20, 2018 at 14:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.