• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connecting to HttpServer

 
Chandrasekaran Sathasivam
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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
 
Luis Valle
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic