Welcome!

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

Web and WebWorks Development

Reply
New Contributor
prem251
Posts: 3
Registered: ‎05-03-2011
My Device: Blackberry curve
My Carrier: Vodafone

Handling the request response and redirect

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.

 

 

 

Please use plain text.
Developer
agungeddy
Posts: 164
Registered: ‎08-26-2010
My Device: Not Specified

Re: Handling the request response and redirect

looks like you are developing Blackberry Java application. If so, you should go to this forum: http://supportforums.blackberry.com/t5/Java-Development/bd-p/java_dev
Please use plain text.
New Contributor
prem251
Posts: 3
Registered: ‎05-03-2011
My Device: Blackberry curve
My Carrier: Vodafone

Re: Handling the request response and redirect

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

Please use plain text.