struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pham Anh Tuan" <anht...@ichi-corp.jp>
Subject Re: [HELP] Can't not submit unicode form by ajax action in Struts + Velocity framework
Date Tue, 26 Sep 2006 09:30:05 GMT
Antonio, would you mind showing an example how to use POST method with AJAX 
?

thanks in advace

bowlkhin
----- Original Message ----- 
From: "Pham Anh Tuan" <anhtuan@ichi-corp.jp>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Tuesday, September 26, 2006 4:16 PM
Subject: Re: [HELP] Can't not submit unicode form by ajax action in Struts + 
Velocity framework


> oh ... :O ...
>
> I just forgot Post method :( ... thank you for reminding me ... I will try 
> it.
>
> Again, thanks for ur feedback :)
>
> ----- Original Message ----- 
> From: "Antonio Petrelli" <apetrelli@apache.org>
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Sent: Tuesday, September 26, 2006 4:13 PM
> Subject: Re: [HELP] Can't not submit unicode form by ajax action in Struts 
> + Velocity framework
>
>
>> Pham Anh Tuan ha scritto:
>>> when I test the submitted url, it gives me the right unicode value for 
>>> each
>>> parameter I sent. ex: xxxx.do?st1=tốivề&st2=ngàyvề
>>>
>>> but when I retrieve it from bean, it was not unicode value :(
>>>
>>> st1: "tốivề" ---> "tối về"
>>> st2: "ngàyvề" ---> "ngà y về"
>>>
>>> I don't know what's wrong?
>>
>> If you want to send special characters in the URL you have to encode 
>> them.
>> Anyway I know how to do it in Java, using URLEncoder.encode(myString, 
>> "UTF-8"). I don't know if there is such a feature in JavaScript...
>> Just a question, why don't you "post" those parameters?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message