Antonio, would you mind showing an example how to use POST method with AJAX
?
thanks in advace
bowlkhin
----- Original Message -----
From: "Pham Anh Tuan" <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]