05-03-2011 01:10 AM
Dear all,
I am a newbie to Blackberry development and also to the forum.
Please direct me tot he proper forum in case my question is not suitable for this one.
I have an application requirement where
1) I get a cookie from the server. The cookie acts as a token through out the the app.
2) once I get the cookie, I need to redirect the same request to a URL with userid,password and the cookie token as params.
I have a class that extends ProtocolController and implements BrowserFieldNavigationRequestHandler, BrowserFieldResourceRequestHandler.
in the handleResource method i am calling super.handleResourceRequest(request) and then I get the cookie from the returned httpconnection.
After this I am stuck.
I do not understand how I can redirect the request to another url.
I tried _browserField.requestContent and it is going in an endless loop.
Please help.
05-03-2011 02:59 AM
05-03-2011 03:03 AM
Thanks. But it is a web application. I have extended the javascript using the extend script function.
And its just the navigation part that is in Java for which I need Help.
But thanks for pointing me to the link.
Regards