• Post Reply Bookmark Topic Watch Topic
  • New Topic

Forwarding Response from Servlet to JSP

 
Sonu Kaush
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Our Current Project has to Support Latin Characters.
The Request from a JSP is handled by Servlet and then forwarded back to the JSP.
I am trying to Use response.setContentType("text/html; charset=iso-8859-1") in the Servlet.
But still the Latin Data on the JSP's are not viewable.
JSP's do not have the HTTP Meta tag for Charset.
Please Advise
 
Rajesh Subbannavar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using <%@ page contentType="text/html;charset=UTF-8"%> in your jsp.
Also, set the response content type's charset to utf-8 instead of iso-8859
Hope this helps,
Rajesh
 
Sonu Kaush
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know about those tags.
But we have currently around 2000 jsp's which have already gone in production.
I need an Idea by which i can change only in few central places, like the FrontController Servlet which forwards the response to the JSP.
This would minimmize our effort in Converting display on JSP everything to UTF-8.
Please Advise.
If the respnse.setContentType() is not working, can some one tell why.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!