I have a jsp say hello.jsp. Now there are 2 use cases
the request is redirected to hello.jsp through mainserverlet and in this case, it renders the "editable" text in chinese properly.
The second case is when i change the drop down menu on hello.jsp, it "resubmits" the request to itself, instead of mainservlet and in this case the text in chinese is not being displayed properly.
Any pointers or suggestions?
Have you tried page
tag?
Sample:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
Obs: You need to put this on top of every page you use.
PS:
If you are thinking you can add above line in your header.jsp
file and then include
header file in your required file like this:
<jsp:include page="/resources/header.jsp" />
It won't work unless you add that line in every page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With