• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Forwarding Response from Servlet to JSP

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic