ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rishi Solanki <rishisolan...@gmail.com>
Subject Re: URLs with & ? and other special characters
Date Fri, 20 Jan 2012 09:18:38 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message