Skip to Content
avatar image
Former Member

Parsing HTML source code from Web Dynpro for Java

Hi All,

I want to read value of an variable from some web page in web dynpro for Java. For e.g. from the webpage "https://www.bankofamerica.com/index.jsp", I want to read the text "Enter Online ID:". This is possible in EP using the class "ParserVisitor" wherein we can read the HTML source code of the page and then parse it...see blog "/people/prakash.singh4/blog/2005/08/25/how-to-parse-html-content-from-websites-using-java-api-deliverd-by-sap-portal

I want to do the same thing in WD for Java....

Can anyone PLEASEEEE help me out URGENTLY?????????????????

Thanks...

Aditya

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Nov 15, 2006 at 05:30 PM

    Hi,

    You could use the HTTP client library at http://jakarta.apache.org/commons/httpclient/ to get hold of the HTML for the page you are interested in, and then use one of the HTML parsing libraries at http://www.java-source.net/open-source/html-parsers to parse the page and get the information you need.

    Regards,

    Darren

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Darren for ur prompt reply.....But I'm unable to figure out how to use these....Can you please demonstrate how to use it?

      Thanks,

      Aditya

  • avatar image
    Former Member
    Nov 16, 2006 at 03:04 AM

    Hi Aditya,

    Go to http://jakarta.apache.org/site/downloads/downloads_commons-httpclient.cgi

    you can download the sourcecode and there were some sample examples also.

    Regards, Anilkumar

    Add comment
    10|10000 characters needed characters exceeded