cancel
Showing results for 
Search instead for 
Did you mean: 

Parsing HTML source code from Web Dynpro for Java

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

darren_hague
Contributor
0 Kudos

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

Former Member
0 Kudos

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