Win a copy of Spring Boot in Practice this week in the Spring forum!

Kamalnath Balakrishnan

Greenhorn
+ Follow
since Mar 22, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kamalnath Balakrishnan

Charbel Keyrouz wrote:What if the databases stores it as rubbish character.

In order to simply store it and read it the same way, the database should have the same character set to which this string's characters belong.





I am going to write Tamil name to enter database:

kk.jsp
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html:text name="updateForm" property="tamilName" bundle="default" />

In Action.java
if(request.getCharacterEncoding() == null)
request.setCharacterEncoding("UTF-8");
String enameT=request.getParameter("tamilName");



When it Prints in Action like ==>மனோகர்


Kindly give the Solution
...........Thanks in advance......

Brent Sterling wrote:In general it is best to use String properties in your form to represent fields that the user enters on the screen. I am pretty sure that this error is usually caused by using properties of other types (Date, Long, ...).

- Brent




Hi

But you know that ,i take all values from FormBean I declares as a Date.. then i got the same error.....
11 years ago