• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connecting midlet to web site

 
pradeepu nair
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi could any of you guys tell me how to connwct the j2me midlet to an online site and retrieve the details from the site.say i want to connect my midlet to an online dictionary and pass the keyword and get its meaning as output?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well there are two things.

1. Do they have a Web Service for this to make the data return just be the information you need.
2. Connect to the website with their URL and pass the parameter in the URL. Get the HTML back, have to parse it to get the information you need.

Either way, just use the Generic Connection Framework to get an HttpConnection object and give it the URL and get the return information.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic