sendRedirect « URL « JSP-Servlet Q&A

1. Servlets response.sendRedirect(String url) doesn't seems to send the encoding, why?

I have some Servlet that explicity sets the character encoding and redirect to some servlet

class Servlet1 extends HttpServle{
   void doGet(..... ){
        // ...

2. sendRedirect(url) query

3. sendRedirect(url) problem in jsp

If you are new to JSP, it is important to start off on the right foot. And that means NO JAVA CODE in the JSP. None. Nada. Zero. That's a practice from last decade before JSP 2 and is now discredited. Get yourself a modern JSP reference that concentrates on the JSTL (JSP Standard Tag Library) and the EL (Expression Language). ...