ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Skip" <s...@thedevers.org>
Subject RE: URLs with & ? and other special characters
Date Fri, 20 Jan 2012 17:52:43 GMT
Thanks, didn't know these were there.  Actually ended up writing my own.

-----Original Message-----
From: Rishi Solanki [mailto:rishisolankii@gmail.com]
Sent: Friday, January 20, 2012 1:19 AM
To: user@ofbiz.apache.org
Subject: Re: URLs with & ? and other special characters


Hi,
Use following utility methods for formation of Urls before pass it to
OfbizUrl.

UtilFormatOut.encodeQueryValue(String)
UtilFormatOut.decodeQueryValue(String)



Rishi Solanki
Manager, Enterprise Software Development
HotWax Media Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxmedia.com


On Sat, Dec 31, 2011 at 8:21 AM, Skip <skip@thedevers.org> wrote:

> I am implementing a new system where some of the key fields like
productId,
> partyId, etc have special characters in them.  When constructing a URL,
for
> instance EditInventoryItem?productId= and the productId contains one of
> these special characters, I expected OfbizUrl to fix it form me.
>
> for instance, findParty?partyId=ANDER&COTCH should be transformed to
> findParty?partyId=ANDER%26COTCH
>
> Is there ofbiz code to handle this?
>
> Thanks in advance
> Skip
>
>


Mime
View raw message