This week's book giveaway is in the iOS forum.
We're giving away four copies of Classic Computer Science Problems in Swift and have David Kopec on-line!
See this thread for details.
Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

html code to webpage  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two laptops that are communicating over a wireless ad-hoc connection (I'm not using a webserver). After my server computer transfers an html file to the client computer, the client computer just prints out the code that was transferred. How do I get the client to display the html file as an actual webpage instead of a lot of messy html code?
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the client a J2ME-based client?
 
Ashley Swinson
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the server and client are J2ME based.
 
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, there is no built-in library in the J2ME APIs for rendering HTML. For example, ReqWireless WebViewer uses a servlet which first fetches web pages, translates them into a "simplified" HTML document, and then delivers the simplified HTML to the device where the WebViewer client code renders the HTML "manually". I'm afraid you'll have to do something similar (write code for rendering HTML yourself).

(Obviously I'll be glad to hear about any existing libraries for doing this!)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!