permaculture playing cards
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Encoding query" Watch "Encoding query" New topic

Encoding query

Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
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 ?

- Varun
Tony Alicea

Joined: Jan 30, 2000
Posts: 3226
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
I agree. Here's the link:
subject: Encoding query
It's not a secret anymore!