You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Jen Sing Choe <je...@b2b.com.my> on 2014/04/23 06:09:00 UTC

hashtag in request parameters on the url param

Hi,
Had anyone had difficult passing hashtag (#) into the request parameters as
url param

e.g
myValue#1234

the value stored into the context are myValue
In which the character starting and after hastag are all being removed.

-- 
Disclaimer : This E-mail is intended only for the use of the individual or 
entity named above and may contain information that is confidential. If you 
are not the intended recipients, please immediately notify us by return 
email and delete it from your system. Any unauthorised dissemination, 
distribution or copying of this email is strictly prohibited. Thank You.

Re: hashtag in request parameters on the url param

Posted by Xiangqian Liu <sm...@gmail.com>.
—
Sent from Mailbox for iPad

On Wed, Apr 23, 2014 at 1:53 PM, Adrian Crum
<ad...@sandglass-software.com> wrote:

> Have you tried URL encoding?
> Adrian Crum
> Sandglass Software
> www.sandglass-software.com
> On 4/22/2014 9:09 PM, Jen Sing Choe wrote:
>> Hi,
>> Had anyone had difficult passing hashtag (#) into the request parameters as
>> url param
>>
>> e.g
>> myValue#1234
>>
>> the value stored into the context are myValue
>> In which the character starting and after hastag are all being removed.
>>

Re: hashtag in request parameters on the url param

Posted by Youssef Khaye <y....@unionsmarket.com>.
hello,

the hash tag is used in url to point to specific part of a page(bookmark 
or anchor).

so i think it can not be receivied server side but stripped out from the 
url by the navigator (to be confirmed).

hope this help.

Youssef khaye.


Le 23/04/2014 12:43, Jen Sing Choe a écrit :
> Hi,
> I had tried as below
>
> encode-output="true"
> StringUtil.wrapString
>
> i print out the context map.
> The value in the context map (requestParameters,parameters) of that
> particular property key, is already hashtag removed.
>
> Below are the scenario,
> 1. create product with productId= ##123##
>
> when click on the EditProduct
> catalog/control/EditProduct?productId=##123##
> the system cannot find the product
> in the browser URL fields, the value are showing the correct value with
> hashtag
>
> I had goes trough the below java class, but none are able to explain the
> cause of the hashtag
> ModelFormField.java
> StringUtil.java
> UtilHttp.java
>
> Am i missing anything?
>
>
>
> On Wed, Apr 23, 2014 at 1:52 PM, Adrian Crum <
> adrian.crum@sandglass-software.com> wrote:
>
>> Have you tried URL encoding?
>>
>> Adrian Crum
>> Sandglass Software
>> www.sandglass-software.com
>>
>>
>> On 4/22/2014 9:09 PM, Jen Sing Choe wrote:
>>
>>> Hi,
>>> Had anyone had difficult passing hashtag (#) into the request parameters
>>> as
>>> url param
>>>
>>> e.g
>>> myValue#1234
>>>
>>> the value stored into the context are myValue
>>> In which the character starting and after hastag are all being removed.
>>>
>>>


Re: hashtag in request parameters on the url param

Posted by Jen Sing Choe <je...@b2b.com.my>.
Hi,
I had tried as below

encode-output="true"
StringUtil.wrapString

i print out the context map.
The value in the context map (requestParameters,parameters) of that
particular property key, is already hashtag removed.

Below are the scenario,
1. create product with productId= ##123##

when click on the EditProduct
catalog/control/EditProduct?productId=##123##
the system cannot find the product
in the browser URL fields, the value are showing the correct value with
hashtag

I had goes trough the below java class, but none are able to explain the
cause of the hashtag
ModelFormField.java
StringUtil.java
UtilHttp.java

Am i missing anything?



On Wed, Apr 23, 2014 at 1:52 PM, Adrian Crum <
adrian.crum@sandglass-software.com> wrote:

> Have you tried URL encoding?
>
> Adrian Crum
> Sandglass Software
> www.sandglass-software.com
>
>
> On 4/22/2014 9:09 PM, Jen Sing Choe wrote:
>
>> Hi,
>> Had anyone had difficult passing hashtag (#) into the request parameters
>> as
>> url param
>>
>> e.g
>> myValue#1234
>>
>> the value stored into the context are myValue
>> In which the character starting and after hastag are all being removed.
>>
>>

-- 
Disclaimer : This E-mail is intended only for the use of the individual or 
entity named above and may contain information that is confidential. If you 
are not the intended recipients, please immediately notify us by return 
email and delete it from your system. Any unauthorised dissemination, 
distribution or copying of this email is strictly prohibited. Thank You.

Re: hashtag in request parameters on the url param

Posted by Adrian Crum <ad...@sandglass-software.com>.
Have you tried URL encoding?

Adrian Crum
Sandglass Software
www.sandglass-software.com

On 4/22/2014 9:09 PM, Jen Sing Choe wrote:
> Hi,
> Had anyone had difficult passing hashtag (#) into the request parameters as
> url param
>
> e.g
> myValue#1234
>
> the value stored into the context are myValue
> In which the character starting and after hastag are all being removed.
>