Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 972869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:11:29+00:00 2026-05-16T03:11:29+00:00

I am doing coding from beggining blackberry by Anthony Rizk. I am stuck with

  • 0

I am doing coding from beggining blackberry by Anthony Rizk.
I am stuck with this code as it is showing error again and again…
private void getURL() {
HttpRequestDispatcher dispatcher = new HttpRequestDispatcher(urlField.getText(),
“GET”, this);
dispatcher.start();
}

Can anyone explain me why we are passing this as parameter and why actually this code is doing…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T03:11:30+00:00Added an answer on May 16, 2026 at 3:11 am

    “this” refers to the main screen you passed to the class so you can alert the requestFailed string. Check the run method on page 170. You’ll see screen.requestFailed(“Unexpected…”).

    As for your error – I suggest adding this line:
    System.out.println(” —————– HTTPREQUESTDISPATCHER ———- ” + urlField.getText());

    right before your dispatcher.start(); line and then compile in debug mode to see what your console says. Just to make sure your URL to request is a valid web URL.

    Additionally, make sure your simulator has MDS enabled. You need that to make web calls.
    In eclipse it is under Run->run configurations-> simulator tab -> general -> checkbox for Mobile Data System.
    I don’t know where it is in the RIM package. If you’re not using eclipse, you might want to switch over to it. It will highlight errors and try to help you resolve them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is what i am doing in coding i want to create controls on
some code snippets. The java coding doing the jaxb unmarshaling. pretty straightforward, copied out
I'm doing a bit of coding, where I have to write this sort of
This is another question from cracking coding interview, I still have some doubt after
I'm planning on doing more coding from home but in order to do so,
I mainly do javascript coding , I am doing javascript coding from last 6
I am doing coding of ASP.NET chart control and chart code is as per
I'm doing exercises form Non-Programmers Tutorial For Python2.6 from Wikibooks . I have this
I am coming from Java and try to learn Javascript right now. Doing that
I'm doing javascript on a daily basis at the moment. I'm coming from an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.