![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Java Developer
|
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 |
|
|
|
|
|
#2 |
|
Java Developer
|
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|