Web page in J2ME

I am charles from Senega Systems, Bangalore.
Currently i am working on how to display the web page in mobile application using j2me as seen in browser.
I have parsed the web page contents using KXML parser. So i have the confidence to read the tags and data.
And, what i have done is read all tags and its attributes, text, value etc. then I used these values in for example Image.createImage(value) and appended onto canvas.
So my doubt is that is there any other way if we get complete code , how to display this page instead of viewing code as seen in browser.
Pls revert back with a solution
Pls answer this question by Daryl brook

Hi Lakshmi, as told by all and from my experience, we can't display a web page as it is in midlet suite as there is no such package or JSR specification.
For that what I did is parsed the tags and read all values or types and then took to a vector variable and converted to string and paste in consecutive commands in building the UI using midp canvas.
And also Pocket learn has made one HTML parser, but it won't work for any other sites other than pocket learn.
So you have to read the tags using parser.read=parseevent, then parseevet.text or value should be kept in variables.
Why you are also strucked in the mid way like this

Similar Messages

  • How to view web page in emulator/device using j2me

    hi
    i wanna view web page using j2me
    i am using code ----instead of getting teh page i am getting source code of the page and i am not getting any thing in real device so do i need a browser??cant i view this page inside my application??
    HttpConnection connection = null;
         InputStream inputstream = null;
         try
              this.platformRequest("http://www.lntinfotech.com");
              /* System.out.println("aaaaaaaaaaa11");
         connection = (HttpConnection) Connector.open("http://www.lntinfotech.com");
         System.out.println("aaaaaaaaaaa112");
         //HTTP Request
         connection.setRequestMethod(HttpConnection.GET);
         System.out.println("aaaaaaaaaaa113");
         connection.setRequestProperty("Content-Type","//text plain");
         System.out.println("aaaaaaaaaaa1133");
         connection.setRequestProperty("Connection", "close");
         System.out.println("aaaaaaaaaaa11444");
         // HTTP Response
         System.out.println("Status Line Code: " + connection.getResponseCode());
         System.out.println("Status Line Message: " + connection.getResponseMessage());
         if (connection.getResponseCode() == HttpConnection.HTTP_OK)
              this.platformRequest("http://www.google.com");
              System.out.println("aaaaaaaaaaa11444555");
         System.out.println(
         connection.getHeaderField(0)+ " " + connection.getHeaderFieldKey(0));
         System.out.println(
         "Header Field Date: " + connection.getHeaderField("date"));
         String str;
         inputstream = connection.openInputStream();
         int length = (int) connection.getLength();
         if (length != -1)
         byte incomingData[] = new byte[length];
         inputstream.read(incomingData);
         System.out.println("aaaaaaaaaaa1144555");
         str = new String(incomingData);
         else
         ByteArrayOutputStream bytestream =
         new ByteArrayOutputStream();
         int ch;
         while ((ch = inputstream.read()) != -1)
         bytestream.write(ch);
         str = new String(bytestream.toByteArray());
         bytestream.close();
         System.out.println(str);
         }

    instead of getting teh page i am getting source code of the page and i am not getting any thing in real device so do i need a browser??Yes.
    cant i view this page inside my application??Not unless you can write a browser component to parse and display the HTML. (you can't, it's too big a job)
    db

  • How do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA certfificate i can't open web pages with this, how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC CA certfificate i can't open web pages with this

    how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA ?

    Hi
    I am not suprised no one answered your questions, there are simply to many of them. Can I suggest you read the faq on 'how to get help quickly at - http://forums.adobe.com/thread/470404.
    Especially the section Don't which says -
    DON'T
    Don't post a series of questions in  a single post. Splitting them into separate threads increases your  chances of a quick answer.
    PZ
    www.pziecina.com

  • Open web pages from an applet

    I'm developing an applet that has to open some web pages.
    The only way I know is to use the method showDocument that
    needs and URL. So, how to pass parameters to the web page?
    I don't want to put them in the URL: everyone can see
    "secret data"!
    Help me, please.

    Take a look at this example that uses a JEditor pane to hold the HTML page.
    //Create a new JEditor Pane
    jep = new JEditorPane( );
    //Ensure the pane is not editable
    jep.setEditable(false);  
    //Use this to get local HTML file
    URL fileURL = this.getClass().getResource("Manual/Manual.htm");
    //add the html page to the JEditorPane
    jep.setPage(fileURL);Ok the core line of code here is this.
    URL fileURL = this.getClass().getResource("Manual/Manual.htm");The standard method for accessing a html file via a URL is thus. As you can see its very similar.
    URL fileURL = new URL("http://www.comp.glam.ac.uk/pages/staff/asscott/progranimate/docs/Manual/Manual.htm");this.getClass().getResourse() will return the file location of the class you are working with.
    By doing the following you can access manual.html in a folder called Manual that sits in the same file location as the class file you are using.
    URL fileURL = this.getClass().getResource("Manual/Manual.htm");I hope this helps.
    Andrew.

  • In the previous version i was able to close my mozilla and to open it again, the web pages which i was working with remained however i've tried many ways to have this advantage again but it is not working what can i do ???

    in the previous Mozilla version i used to leave some web sites opened and when i start working again my Mozilla showed the web pages i was working with in that occasion, i have looked in the options menu but there is no way, perhaps it was an add-on and now it is removed??? i would like to have this advantage again in my Mozilla could it be possible?? thx!

    Your webpages/tabs are still there. When you start firefox again, there is a "Restore Previous Session" icon below. If you click that, it will open up all your tabs again.
    Or you could see this article for better understanding-
    http://support.mozilla.com/en-US/kb/Firefox%20does%20not%20ask%20to%20save%20tabs%20and%20windows%20on%20exit?s=how+to+save+tabs&as=s#os=win&browser=fx4

  • XML Publisher Report EXCEL output Huge stored as Web Pages

    Hello
    I have a XML Publisher Report which generates EXCEL output and the output file size is huge.
    What I notice that it is stored as Web Pages *.htm; *.html (Save as Type) in Excel this is the reason it is huge.
    If I save as Microsoft Office Excel Workbook *.xls it Reduce the size.
    I don't know how to save as ".xls" through XML Publisher using PL/SQL.
    Any body knows? please Help..
    XML Publisher Template Builder for WORD
    Version 5.6 Build 45
    PATCH        BUG_NUMBER
    XDO.H     *3263588*
    4.5.0     *3554613*
    5.0.0     *3822219*
    5.5.0     *4206181*
    5.0.1     *4236958*
    5.6.0     *4561451*
    5.6.1     *4905678*
    5.6.2     *5097966*
    5.6.3     *5472959*
    Thanks.

    Hi Vetsrini,
    We're on 10.1.3.4.1 and siebel 8.1.1.3 and when trying to open a report from within siebel in the output format EXCEL (selected from the parameter applet), it just opens the document in the browser.
    Is there a way to get it to open directly in Excel? I guess the reason is the file extension*.EXCEL, how could we get the extension to be in excel format (xls)?
    We don't want our users to have to do this themself.
    Regards,
    Hakan

  • How can I display XSLT transformer errors on a web page ?

    Hi,
    I have some JSP pages that access DB, create an XML based on DB data and then transform it into HTML through an XSLT stylesheet. Developing the XSL code it's easy to make mistakes and generate errors on trasformation, but what I receive on the web page is only a "Could not compile stylesheet" TransformerConfigurationException, while the real cause of the error is displayed only on tomcat logs. This is the code for transformation:
    static public void applyXSLT(Document docXML, InputStream isXSL, PrintWriter pw) throws TransformerException, Exception {
            // instantiate the TransformerFactory.
            TransformerFactory tFactory = TransformerFactory.newInstance();
            // creates an error listener
            XslErrorListener xel = new XslErrorListener();
            // sets the error listener for the factory
            tFactory.setErrorListener(xel);
            // generate the transformer
            Transformer transformer = tFactory.newTransformer(new SAXSource(new InputSource(isXSL)));
            // transforms the XML Source and sends the output to the HTTP response
            transformer.transform(new DOMSource(docXML), new StreamResult(pw));
    }If an exception is thrown during the execution of this code, its error message is displayed on the web page.
    This is the listener class:
    public class XslErrorListener implements ErrorListener {
        public XslErrorListener() {
        public void warning(TransformerException ex) {
            // logs on error log
            System.err.println("\n\nWarning on XEL: " + ex.getMessage());
        public void error(TransformerException ex) throws TransformerException {
            // logs on error log
            System.err.println("\n\nError on XEL: " + ex.getMessage());
            // and throws it
            throw ex;
        public void fatalError(TransformerException ex) throws TransformerException {
            // logs on error log
            System.err.println("\n\nFatal Error on XEL: " + ex.getMessage());
            // and throws it
            throw ex;
    }When I have an error in the XSL stylesheet (for examples a missing closing tag), I can find on tomcat logs the real cause of the error:
    [Fatal Error] :59:10: The element type "table" must be terminated by the matching end-tag "</table>".
    Error on XEL: The element type "table" must be terminated by the matching end-tag "</table>".but on my web page is reported just the TransformerConfigurationException message that is:
    "Could not compile stylesheet".
    How can I display the real cause of the error directly on the web page?
    Thanks,
    Andrea

    This code is part of a bigger project that let developers edit XSL stylesheets through a file upload on the system and we can't impose the use of any tool for checking the xsl. So, I need to display the transformer error on the web page.I see. This code is part of an editorial/developmental tool for developers to create and edit XSL stylesheets.
    As part of the editorial process, XSL errors during editing can be considered a normal condition. In other words, it is normal to expect that the developers will generate XSL errors as they are developing stylesheets.
    In this light, handling the XSL transformation errors is a business requirement that you need to handle. Using the Java Exceptions mechanisms, e.g. try / catch are inappropriate to handle business requirements, in my opinion.
    I suggest that you look at how you handle the occurence of XSL errors differently than what you currently have. You need to:
    (1) capture the Transformation exception on the server;
    (2) extract the message from the exception and put it into a message that can be easily understood by the user;
    The current error message that you have going to the web browser is not useful.
    And you should not have the Transformation exception sent to the web browser either.
    What you are attempting to do with the exception is not appropriate.
    Handle the Transformation exception on the Business tier and use it to create a useful message that is then sent to the Presentation tier. In other words, do not send Java exceptions to web browser.
    />

  • How can I get just the text to resize, rather than the entire web page?

    I used to be able to re-size just text on a webpage by typing Ctrl + +. Today, the entire webpage re-sizes, and when I move to another page it reverts. (I see this mostly in Facebook.). Why did this change, and can I go back to having just the text re-size?

    ''How can I get just the text to resize -- zoom text only''
    steps
    #"Alt" if no menu bar, then
    # View > Zoom > Zoom Text Only
    Zoom text of web pages - MozillaZine Knowledge Base
    :http://kb.mozillazine.org/Zoom_text_of_web_pages
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • Can you set a "default" web page in a KM folder?

    Hi there,
    I've been playing around with using Adobe Contribute to edit web pages in a CM Repository. It was easy to create a CM repository, put some web pages and supporting CSS, images etc. in there, and create a KM navigation iView that displays the default page. Setting up Adobe Contribute to edit those pages via a WebDAV protocol was simple too, and to be honest I find the Contribute interface and functionality easier to use (particularly from the average end user's point of view) and implement than the Portal's built-in HTML editor, or the Web Page Composer.
    But then I ran into a snag. In order to be able to "administer" the site with Contribute (or Dreamweaver), it creates an _mm folder and puts a "guard" page in it. The guard page is a file which would be returned to the browser when it tries to access a folder. In a normal website that would be a "default" page (e..g index.htm, default.htm etc.), but in the Portal there doesn't seem to be a way to have one. I believe that's why if you try to access a folder through a browser you get:
    "The folder you are looking for has no displayable content.
    You can try one of the following:
    Access the folder using the Navigation user interface.
    Access the folder as a Web folder. Your operating system and browser dictate whether or not this will work."
    That's what happens if I use something like http://<host name>:<port number>/irj/go/km/docs/<repository prefix>/<folder name>/ as a URL, though http://<host name>:<port number>/irj/go/km/docs/<repository prefix>/<folder name>/default.htm works just fine (as you would expect). And I can retrieve a fake "guard" page using http://<host name>:<port number>/irj/go/km/docs/<repository prefix>/<folder name>/_mm/default.htm
    An Adobe technote confirms this as problem - [Guard Page not found|http://go.adobe.com/kb/ts_f3675780_en-us]. Does any one know if a default page can be set in a CM repository.
    Regards,
    Tom

    I don't think you can.
    What is possible is to set content on the folder resource itself; that would be returned instead of the page you mentioned.

  • Safari on iPod touch will no longer open any web pages even after reset.

    My iPod touch will no longer open any web pages via Safari. I am connected to WiFi and other apps work fine (mail for example). I connected to Itunes and did a reset - still no luck. S/w is up to date for this version of touch - 4.x.
    Please help with any ideas?

    hello susnyk, please see [[Fix problems connecting to websites after updating Firefox]] &
    [[Firefox can't load websites but other browsers can]]

  • Can not open my web page?

    Installed my new 2T unit 5 days ago, it was fine till this afternoon. I can not open web page or connect to internet. (wired or wirelessly)
    No issue with my cable modem as i tested by pluging wire direct from the modem.
    "Green" light in front is OK, i have to unplug power and plug power back in after 10 sec to restore the unit to function again.
    I read about the new time capsule will loss connections over time, wonder if anyone has experienced this problem in the past?

    Hi BigChinaD,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots. 
    Resetting an AirPort Base Station or AirPort Time Capsule FAQ
    http://support.apple.com/kb/HT3728
    Cheers,
    - Judy

  • Can not open any web page in Safari

    can not open any web page in Safari on the IPad.  All other wireless features work fine.

    If this does not work then try a reset ,
    Reset your iPad by pressing the 'Sleep' and 'Home' button at the same time for about 15 seconds or so. Your iPad  will then go through a reset / reboot procedure and will be ready for use within about a minute.
    Don't worry about doing this as you will not lose data or settings.
    Good luck and do report back.

  • On my macbook pro when opening a page i can not save it as a pdf only give me the option of saving it as a web page can any body help me on this I have tryed so many times without success

    on my macbook pro when opening a page on safaryi can not save it as a pdf only give me the option of saving it as a web page can any body help me on this I have tryed so many times without success?

    Just select Print in Safari and then, in the bottom left-hand corner, select PDF and you can save it to whichever flavor pdf file you like.
    Clinton

  • Can not start Enterprise Manager web page

    I can not start Enterprise Manager web page.
    Here is my steps:
    1. Start enterprise manager
    emctl start
    Waiting for EM to initialize ...Started
    2. Check status:
    emctl status
    EMD is up and running : 200 OK
    3. Start the web page
    http://myhost:1810/
    4. get following error
    "There was no response. The server could be down or is not responding"
    System info:
    Database: 8.1.7.2
    OAS: 9.2.0.2
    JDK: 1.3.0_02
    Server OS: SunOS 5.8
    My question is where is the log file of enterprise manager and what the problem is.
    Thanks in advance
    Don

    diego,
    Thank you for your help. when I try your command I get following error:
    emctl start iasconsole
    Unknown command option
    Usage::
    emctl start|stop|status
    emctl reload | upload
    emctl set credentials [<Target_name>[:<Target_Type>]]
    emctl gencertrequest
    emctl installcert [-ca|-cert] <certificate base64 text file>
    emctl set ssl test|on|off|password [<old password> <new password>]
    emctl set password <new pwd>
    emctl authenticate <pwd>
    emctl switch home [-silent <new_home>]
    emctl config <options>
    emctl config options can be listed by typing "emctl config"

  • Cannot send email when clicking lonk on web page

    I cannot send email when clicking link on web page. 
    When I would click the link to send via email I was being directed to hotmail to open new account.
    Today the tech tried to assist me and completely messed up my email capabilities by setting up
    windows live account.
    I am thoroughly disgusted with FIOS internet services..Every time I've called them in the past month problem has been with someone else whose portal services they are using.
    I cannot send emails because all my contact information cannot be moved.
    I'm paying for FIOS internet service that is almost non existent.
    THe VZ in home agent doesn't work nor does the FIOS information site.
    My next move is to get rid of FIOS.
    They create more problems then they solve with me.

    If I understand your problem correctly, you are having trouble when clicking on a MailTo link on any webpage? What loads when you click this type of link is a setting in your browser. If you tell us what browser you are using, we can try to direct you to the setting.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

Maybe you are looking for

  • General Warning Message while creating po

    Hi Gurus, Good Morning. I want to pop-up a warning message while creating all types of PO saying that "Contact Person & Email ID text should be filled " This message should be applicable to all PO . How to create a message and assign in PO ? Thanks &

  • Calling BSP Application from Business Object?

    Hi, Can any one tried to call BSP Application from Business Object for showing in the Portal. I have the following Scenario: 1. BSP Page: User will input the Date and Submit to store in the Database. and in this page the Workflow will be truggered an

  • Web hosting: catalyst vs Office 365

    Hello, I am creating my website in Muse for my small business and currently use Adobe CC as well as MS Office 365 for business email/server. I am getting ready to publish my website and wonder if anyone can provide insight about the hosting capabilit

  • Screen updation in RMWB

    Hi, I need to add a new button in the extended search functions tab in RMWB transaction. When you run tansaction RMWB the initial screen will come with Recipe,Substance, Packaging, Material & Favourites in the navigation area of the screen. And when

  • Printer regonizes Black/white page as color page

    When we print a Word document to a PDF file with the Acrobat printer, pages that contain only Black/White information but with an image that looks as if it is Black/White, the printer recognizes the page as a color page. When we print this page with