You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by priya j <ja...@gmail.com> on 2008/11/24 10:25:18 UTC
handle special characters in cxf RESTful-service jax-rs
hi all,
Can anyone tell me how to handle special character in the parameter passed?
eg:
http://localhost:8080/webservice/xml/name=restaturants#/9/10
i find issue with '#,%,?,;,/,\'
Waiting for the reply.
Regards,
Priya
--
View this message in context: http://www.nabble.com/handle-special-characters-in-cxf-RESTful-service-jax-rs-tp20657371p20657371.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: handle special characters in cxf RESTful-service jax-rs
Posted by Sergey Beryozkin <se...@progress.com>.
Thanks Gabo
As far as CXF JAXRS is concerned, URI encoding issues have been fixed in 2.2-SNAPSHOT
and 2.1.4-SNAPSHOT
Cheers, Sergey
> Hi Priya,
>
> I suggest having those characters URL encoded. If you are using a
> java-based client, read on:
> http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLEncoder.html
>
> Basically the string "name=restaturants#" should be url encoded.
>
> Hth.
>
> Gabo
>
> priya j wrote:
>> hi all,
>>
>> Can anyone tell me how to handle special character in the parameter passed?
>> eg:
>>
>> http://localhost:8080/webservice/xml/name=restaturants#/9/10
>>
>> i find issue with '#,%,?,;,/,\'
>>
>> Waiting for the reply.
>>
>> Regards,
>> Priya
>>
>> ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com
>> Version: 8.0.175 / Virus Database: 270.9.9/1808 - Release Date: 11/23/2008 6:59 PM
>>
>>
>
Re: handle special characters in cxf RESTful-service jax-rs
Posted by Gabo Manuel <km...@solegysystems.com>.
Hi Priya,
I suggest having those characters URL encoded. If you are using a
java-based client, read on:
http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLEncoder.html
Basically the string "name=restaturants#" should be url encoded.
Hth.
Gabo
priya j wrote:
> hi all,
>
> Can anyone tell me how to handle special character in the parameter passed?
> eg:
>
> http://localhost:8080/webservice/xml/name=restaturants#/9/10
>
> i find issue with '#,%,?,;,/,\'
>
> Waiting for the reply.
>
> Regards,
> Priya
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.175 / Virus Database: 270.9.9/1808 - Release Date: 11/23/2008 6:59 PM
>
>