> -----Original Message----- > From: Dariush Behboudi [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 18, 2002 3:27 AM > To: Jetspeed Users List > Subject: Re: WebPagePortlet, WebBrowserPortlet woes > > > If you're interested to, > I've developed a WebPagePortlet using Neko Html Parser (in SAX mode), > based on WebSurfPortlet. > It rewrites urls, manage session and cookies, form submissions and so on. > Right now it doesn't manage code stripping, like head or body removing, > and it doesn't rewrite javascript urls. > > I think it's better than the HtmlEditorKit, because it's not too strict > parsing html files. > I had no time to clean it and complete my implementation. > If someone can dedicate 2 or 3 days to fix it, I can provide my code on > this list... > > Let me know,
Im not going to dedicate 2 or 3 days to cleaning up your code, nor will I check it in until it is cleaned up and passes checkstyle. That's your responsibility. I have no idea what the WebSurfPortlet is. Its not in the jetspeed cvs. Of course I know about Andy Clark's Neko parser, and I believe we can distribute it since its Apache friendly license. http://www.apache.org/~andyc/neko/doc/html/index.html http://www.apache.org/~andyc/neko/LICENSE Look at WebPagePortlet2 and the org.apache.jetspeed.rewriter package. The rewriter package is designed to support pluggable parsers. The HtmlEditorKit is used by default since it comes with Java. You are encouraged to plug in whatever parser suites you. I would be interested in distributing Neko with Jetspeed, and using it as the default HTML parser. Since there is now a pluggable rewriter package, submitting code coupled to one implementation is not acceptable. Why don't you share your efforts with the community and contribute your code to work with the rewriter package? It should be decoupled from the Neko parser and only support the interfaces provided in the rewriter package. If you want to contribute a Neko rewriter implementation, that would be great too. David -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>