• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Character encoding not working for j_security_check

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have developed an applicaiton with user login

i am using jboss custom login module for user authentication

iam passing the username and password to j_security_check servlet. It works perfect for normal user names but when using FRENCH characters it fails

till Before passing it to j_security_check the username is same what i typed, it changes to some character when j_secuity_check is called with the j_username and j_password .

it means j_secrity_check is not working on UTF-8 character encoding

how to configure character encoding for j_security_check servlet. i Tried even setting filters but not working for servlets.

iam using struts and jboss.

please help me to configure character encoding for servlets iam stuck up..
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

That's an interesting problem. Since WebLogic has a custom solution to this, I am guessing that there is no standard way to specify the character encoding to be used.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I searched the whole afternoon to find a solution (first I only searched how to enable "Umlaute", but Unicode is better than ISO-8859-1 ;-) )...

For me unicode login works, if I put

<Valve className="org.apache.catalina.authenticator.FormAuthenticator" characterEncoding="UTF-8"/>

in my tomcat server.xml, inside the <Context ...>... </Context>

Hope this helps someone.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"jm009", please check your private messages for an important administrative matter.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic