jQuery in Action, 2nd edition*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
 
Consider Paul's rocket mass heater.
 
subject: Encoding query