I have a LWUIT app that should load and display downloaded html pages .
So I had created a html page and putted in src dir ( the same dir of my java class)
returns
To load the page I used htmlC.setPage("jar:///mypage.html");
returns
But I have got the error
No BODY tag was found in page.
import com.sun.lwuit.layouts.*;
import com.sun.lwuit.html.*;
import javax.microedition.midlet.*;
public class HelloLWUITMidlet3 extends MIDlet
{
public void startApp()
{
com.sun.lwuit.Display.init(this);
final com.sun.lwuit.Form form = new com.sun.lwuit.Form("");
final com.sun.lwuit.html.HTMLComponent htmlC = new com.sun.lwuit.html.HTMLComponent( );
DocumentInfo docInfo = htmlC.getDocumentInfo() ;
DocumentRequestHandler handler =htmlC.getRequestHandler();
htmlC.setRTL(true);
htmlC.setPage("jar:///mypage.html");
form.addComponent(htmlC);
BorderLayout bl = new BorderLayout();
form.setScrollable(true);
form.show( );
}
public void pauseApp()
{
}
public void destroyApp(boolean unconditional) {
}
}