wood burning stoves 2.0*
The moose likes Servlets and the fly likes Encoding query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Encoding query" Watch "Encoding query" New topic
Author

Encoding query

Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
Hi,
When I receive a request, on doing request.getCharacterEncoding() it always returns null, is there any means to set the encoding of the request object at jsp level itself ?
Thuogh it can be done at servlet level using setCharacterEndoing etc. .. Or is that request always comes in null encoding ?
Thanks
Varun


- Varun
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
I haven't worked with what you ask in particular, but the HttpServletRequest object is present in the JSP as the implicit request object.


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
Don't get me started about those stupid light bulbs.
 
subject: Encoding query