something.html?id=arbitrary_parameter
I'd like to run "arbitrary_parameter" through something like the
URLEncode.encode() function so that I know the app produces safe
URLs. URLEncode is in java.net, so, according to the
documentation, it's not available in GWT. Is this correct? Is there
an alternative function to do this? Or do I need to code up my own
encoder?
public class MyUtilityClass {
public static native void encodeURIComponent(String component) /*-{
return encodeURIComponent(component);
}-*/;
}
Ian
--
Tired of pop-ups, security holes, and spyware?
Try Firefox: http://www.getfirefox.com