Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos
Introduction

In this weblog i am going to present Java code which uses api delivered by SAP portal to parse html contents from other websites.


The code described in this weblog extracts the content described in following picture


Step1:

Create a Dynpage component using wizard inside NWDS or Eclipse.


Step2:

Cut and pase the following code to your Dynpage component.


"); response.write(""); response.write(parser.htmltext); } } } 
Step3:

Write a class that extends com.sapportals.portal.prt.util.html.parser.ParserVisitor. You don't have to write any code, just cut and paste the following code.


Step4:

Deploy you component inside portal and run it. You should get the following content.


8 Comments