• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Urgent Problem: Please help -> showing web page

 
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I would like to make something like this after I walked through the J2ME tutorial but it seems it's not possible to do this:
I want to build a simple e-learning site, in the mobile device, it will need to request an enrollment form from the site, displaying courses and description on mobile screen, for user to choose and submit enrollment form to the server. My problem is that the mobile device is not able to show the enrollment form from the server, it can only show html tag, so how can I solve this? I want to show the form to the user for him to sumbit, is it possible?Thanks!
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I haven't put a lot of research into this, but I don't think that most mobile devices understand html. There is another markup language for mobile devices called WML. Sorry, I don't have any links for more info.
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want to display HTML on a MIDP device, you can use ReqwirelessWeb:
http://www.reqwireless.com/products-web.html
Alternatively, you can build your own interface in MIDP and submit the enrollment information using an HttpConnection.
 
Ken Shamrock
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks
Liam Quinn , I can't get reqwireless work, I save it in D:\midp\lib but the system can't find it when it compile the demo java
also,what do you mean by "building my own interface?" since the mobile device need to get the course info from web first, so do you mean I need to parse the info in the html and make a form (using j2me) in the mobile device ? Thanks
 
author
Posts: 1436
6
Python TypeScript Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
An MIDP program is not a web browser. It does not understand markup languages like HTML or WML unless you tell it how to display the component. It is more similar to a Swing/AWT front end rather than a web browser front end.
Your server needs to return the display form in any format you are comfortable with. Then, your MIDP program should parse the input stream from the server and translate them into Java GUI objects and display them.
 
Ken Shamrock
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a easy way there?
For eg, if MIDP receives a XML doc, have any method or available class that can help me parse the XML and extract the info? Thanks
 
Liam Quinn
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can parse XML with (among others) kXML:
http://www.kxml.org/
Regarding your ReqwirelessWeb difficulty, it's easiest if you use the J2ME Wireless Toolkit, in which case you should place the ReqwirelessWeb.jar in your MIDlet's "lib" directory (e.g., "C:\J2mewtk\apps\Your_MIDlet\lib").
 
Michael Yuan
author
Posts: 1436
6
Python TypeScript Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, kXML is very good. It offers both SAX and DOM style parsers.
But you should balance carefully whether to use XML as your data format. For simple applications, coma delimited text stream saves both bandwidth and processing overhead. But of course, XML is a lot more robust.
Also Liam, Reqwireless looks like a very good product. Thanks for the info.
 
reply
    Bookmark Topic Watch Topic
  • New Topic