Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 18th, 2007, 2:19 AM   #1
pushkarajthorat
Java Developer
 
pushkarajthorat's Avatar
 
Join Date: Jun 2006
Location: Solapur, India.
Posts: 24
Rep Power: 0 pushkarajthorat is an unknown quantity at this point
Send a message via Yahoo to pushkarajthorat
using request.setencoding() twice...

I am currently working J2EE framework native to our company,

The flow of request in framework matches to Struts..

When Jsp is submitted control gots to class similar to Action processor.. through Front Controller and sequence of other classes..

I am getting problem with Encoding format..

I want to set the encoding format of JSP to "UTF-8" but as the encoding format is already been set.. by some other class in Framework...

i came to this point by getting result of

out.write(request.getCharacterEncoding());
as
ISO-8859-1 on the page

Now i am in the situation that i want it back to set to UTF-8.

Help please its pretty urgent..
__________________
[Pushkaraj]


Imagination is more important than knowledge – Albert Einstein
pushkarajthorat is offline   Reply With Quote
Old May 18th, 2007, 7:58 AM   #2
pushkarajthorat
Java Developer
 
pushkarajthorat's Avatar
 
Join Date: Jun 2006
Location: Solapur, India.
Posts: 24
Rep Power: 0 pushkarajthorat is an unknown quantity at this point
Send a message via Yahoo to pushkarajthorat
Problem resolved

It was invoking getReader() function before coming sending redirect to JSP,

Now I have extended frontController servlet and overloaded servlet methods, in the processing of post and get method i am setting the character encoding and calling respective parent method.

__________________
[Pushkaraj]


Imagination is more important than knowledge – Albert Einstein
pushkarajthorat is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:19 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC