I believe that's a "feature" of the jdk parser (My experience is with WebSurfPortlet;
this may be different)
If the callback being used is available, you can modify handleStartTag and
handleEndTag to simply ignore html, head, and body tags altogether.
public void handleStartTag(HTML.Tag tag, MutableAttributeSet attrs, int position) {
if ((tag == HTML.Tag.HTML) || (tag == HTML.Tag.HEAD) || (tag == HTML.Tag.BODY)) {
// never add html, head, or body tags.
} else {
appendTagToResult(tag, attrs);
}
}
>>> [EMAIL PROTECTED] 10/21/03 03:00PM >>>
Hello Everyone,
I'm using Portlet to fetch <table>..</table> at given
url and then append it to my html. For that I'm using
HTMLRewriter which will rewrite urls so that they will
be displayed in same portlet window.
But I found that, htmlRewriter tries to append the
<html _implied_="true><body _implied_="true"> to table
that I'm fetching from given url.
So the reterived data from url looks like below :
<html _implied_="true">
<body _implied_="true">
<table border="0" bgcolor="#ffffff" cellpadding="0"
cellspacing="0" width="546">
....
...
</table>
</body>
</html>
Any Idea why Rewriter appends <html..> <body
_implie..>
tags ?
How I can avoid them ?
thanks
j
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]