• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Connecting to HttpServer

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am using the notepad as editor for creating and Java2 Wireless Toolkit for running the J2ME application. Could anybody help me, how to connect the application to the HttpServer and read text file that's available in the remote HttpServer?
With regards
Chandru
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello:
You could use servlets in the server side, and HTTP GET/POST requests in the J2ME client side to achive your objective. Look at: http://developer.java.sun.com/developer/technicalArticles/wireless/midpservlets/ http://developer.java.sun.com/developer/technicalArticles/wireless/midpnetwork/index.html
There you can get ideas for your project.
Regards, Luis
 
Chandrasekaran Sathasivam
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai Luis,
Thanks for your response. I've done the connection from the client to server using the Servlet already. But here we need that the prerequirement that Java Web Server should run on server side.
Is there any other way to communicate with the server, so that we can retrieve data from the server side, may be a text file.
With regards
Chandru
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic