perhaps you could use GWT.isClient() to decide which implementation to use, the GWT version in a GWT environment or the java version in a JVM?
-jason On May 27, 2009, at 12:30 AM, TimOnGmail wrote: > > Hi all... > > I have a class that I'd like to use in GWT, and have it work both in a > freestanding Java app, and in GWT. The problem is, it needs to do > some URL encoding, but GWT's URL class does it's encoding/decoding in > a native method (in Javascript), and URLEncoder/URLDecoder in Java are > not allowed in GWT. > > Does anyone know if a Java class out there on the web that implements > a good-enough URL encoding/decoding mechanism and which does not > depend on any disallowed classes? > > - Tim > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
