Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Dale Matthews   on Oct 17 In Java Category.

  
Question Answered By: Maliha Malik   on Oct 17

Answer of encoding  problem:

I think your problem is not database  connection. You must override reset() and validate() abstract methods  of your form bean as following:



public void reset(ActionMapping actionMapping, HttpServletRequest request) {

try {

request.setCharacterEncoding("UTF-8");

}

catch (UnsupportedEncodingException e) {

e.printStackTrace();

}

super.reset(actionMapping, request);

}



public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest request) {

try {

request.setCharacterEncoding("UTF-8");

} catch (UnsupportedEncodingException e) {

e.printStackTrace(); .

}

return super.validate(actionMapping, request); //

}

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on 2 Problems: EJB & Encoding Farsi Or get search suggestion and latest updates.


Tagged: