You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-user@portals.apache.org by Teddy Voutour <TV...@SkywaySoftware.com> on 2005/02/14 13:55:13 UTC
HTML to WSRP Bridge
I am interested in wsrp enabling some legacy
applications and have been wondering about an HTML to
wsrp bridge. I have looked around and found other
projects (eXo, apache portal) who have done some work
in implementing bridges for specific frameworks such
as Struts, JSF, PHP, etc. Typically these bridges go
from the specific platform to JSR 168 portlet
compliance first then use something like wsrp4j
(apache) to get to wsrp. But I was wondering if anyone
might have investigated a proxy type approach that
could handle any type of html content by parsing the
HTML, removing and rewriting specific content and
converting the HTTP protocol to wsrp.
Any info on your own experiences or pointers to other
projects would be greatly appreciated.
Thanks
Teddy
Re: HTML to WSRP Bridge
Posted by Rickard Öberg <ri...@dreambean.com>.
Teddy Voutour wrote:
> I am interested in wsrp enabling some legacy
> applications and have been wondering about an HTML to
> wsrp bridge. I have looked around and found other
> projects (eXo, apache portal) who have done some work
> in implementing bridges for specific frameworks such
> as Struts, JSF, PHP, etc. Typically these bridges go
> from the specific platform to JSR 168 portlet
> compliance first then use something like wsrp4j
> (apache) to get to wsrp. But I was wondering if anyone
> might have investigated a proxy type approach that
> could handle any type of html content by parsing the
> HTML, removing and rewriting specific content and
> converting the HTTP protocol to wsrp.
I've written such a JSR168 portlet, although I haven't exposed it
through WSRP yet (which is a detail really). I used Tagsoup for the HTML
parsing, which meant that I got to work purely in XML. After that it was
just a matter of applying an XSL that transformed links, forms,
stylesheets, Javascripts, removed <html><head><body>, etc. Took about a
week to write, in total.
I'm afraid I can't share my code, but as above, if you start with
Tagsoup as the HTML parser and then use XSL it's pretty trivial.
/Rickard