Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 231
Registered: ‎07-09-2009
My Device: Not Specified

Get url parameters

Hi guys,

             How can i fetch url parameters from browserfield(5.0) i knew about document.getBaseURI() then using


                    int startIndex = url.indexOf("param");
                    if (startIndex > -1) {
                        int stopIndex = url.length();
                        if (url.indexOf('&', startIndex) > -1) {
                                stopIndex = url.indexOf('&', startIndex);
                        } else if (url.indexOf(';', startIndex) > -1) {
                                stopIndex = url.indexOf(';', startIndex);
                        String var = url.substring(url.indexOf('=', startIndex) + 1, stopIndex);


I need some other way to fetch url parameters...