views:

35

answers:

0

Hi people!

I am trying to write a JavaBean to be used in a JSP, such that when a user writes the url to an external website the bean filters the page before displaying it to the user.

Now what I tried to do till now is to download the page using an HTTPUrlConnection, does the filtering, saves the filtered html inside a temporal local html file and makes an iframe get the source from this local file.

Well, in a way it works. But I was wondering whether there is actually some better way how to do it?

Thanks!