Remove an html attribute in a html document

Hi...
Can someone give me a piece of code describing how I can remove a html attribute for the text under the current caret position or selection?
If I have a <font class="..."> tag, I want to delete the class attribute, but maybe still want to have the font tag because it can contain some other attributes, face, size etc.
I can get the current attribute with the AttributeSet attr = getCharacterElement().getAttributes().
To be able to delete an attribute in the AttributeSet, I have to put it in a SimpleAttributeSet object?
If I do that and delete the class attribute with the removeAttribute method and then put the changed AttributeSet back with setCharacterAttributes and setting the replace parameter to true, the selected text is removed...
Any solutions?

I don't know exact answer. It's only my suggestions!
Foreground color in HTMLDocument differ from DefaultStyledDocument
in the HTMLDocument color is specified with appropriate TAGs (like <FONT>).
when you change source html text the document tree structure is changed according to html content and your settings are disappeared.
Try to change source html text.
Could you tell me what do you want to achieve?
may be i can suggest a solution...
i tryed to create an example... but it's unstable.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.text.html.*;
import javax.swing.event.*;
import javax.swing.tree.*;
import java.util.*;
class Test extends JFrame {
JEditorPane edit;
public Test(){
super("Test");
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
getContentPane().setLayout(new BorderLayout());
edit = new JEditorPane();
edit.setEditorKit(new HTMLEditorKit());
//edit.setDocument(new MyHTMLDocument());
edit.setEditable(true);
edit.setText("<HTML><FONT CLASS='c1' COLOR=RED><B>red text</B></FONT></HTML>");
JScrollPane scroll=new JScrollPane(edit);
getContentPane().add(scroll,BorderLayout.CENTER);
JTree tree=new JTree((TreeNode)edit.getDocument().getDefaultRootElement());
getContentPane().add(tree,BorderLayout.WEST);
JButton btn=new JButton("test");
ActionListener lst=new ActionListener() {
public void actionPerformed(ActionEvent e){
HTMLDocument html_doc=(HTMLDocument)edit.getDocument();
Element el=html_doc.getCharacterElement(1);
MutableAttributeSet newAttr=new SimpleAttributeSet();
StyleConstants.setForeground(newAttr,Color.blue);
html_doc.setCharacterAttributes(1,3,newAttr,false);
try {
html_doc.insertString(0,"",null); //this call do nothing but notifies that document is changed
catch (Exception ex) {
ex.printStackTrace();
Element font=el.getParentElement();
MutableAttributeSet attr=(MutableAttributeSet)el.getAttributes();
btn.addActionListener(lst);
getContentPane().add(btn,BorderLayout.SOUTH);
setSize(300,300);
setVisible(true);
public static void main(String a[]) {
new Test();
and don't worry about dukes:-))
i just want to help you.
best regards
Stas

Similar Messages

  • CR Reports 2008: Space Between HTML Attribute and Value Causes Attribute To Be Ignored

    I have a field in a report with its Text interpretation set to "HTML Text".  When content is rendered in that field that was sourced from a Microsoft Word document, some of the attributes seem to be ignored by Crystal. 
    For example, I have observed with "style" attributes that if there is a space between the attribute and the value, e.g. "FONT-FAMILY: SimSun" then Crystal will not render the Asian characters, replacing them with squares.  However, if I manually remove the space so that the attribute appears as "FONT-FAMILY:SimSun", then the characters properly render as expected.  I have observed the same issue with at least one other attribute as well, "FONT-SIZE".
    This html does render properly in various browsers, so it seems to be an issue with Crystal Reports.  Can you provide me with information about this and if there is a fix for it in subsequent versions.  The version I tested with is 2008 - 12.5.0.1190.
    Thanks for any assistance that you can provide.

    hi Ethan,
    here are the list of supported html tags in text interpretation...font family is indeed a supported tag.
    does the html appear properly in the designer?...you mentioned various browsers and am wondering if you mean the crystal web viewers?
    if the issue is in your cr designer, you may wish to patch it to the latest level.
    also, ensure that you do not have any unsupported tags in your html that may be causing an issue.
    -jamie
    html
    body
    div (causes a paragraph break)
    tr (causes only a paragraph break; does not preserve column structure of a table)
    span
    font
    p (causes a paragraph break)
    br (causes a paragraph break)
    h1 (causes a paragraph break, makes the font bold & twice default size)
    h2 (causes a paragraph break, makes the font bold & 1.5 times default size)
    h3 (causes a paragraph break, makes the font bold & 9/8 default size)
    h4 (causes a paragraph break, makes the font bold)
    h5 (causes a paragraph break, makes the font bold & 5/6 default size)
    h6 (causes a paragraph break, makes the font bold & 5/8 default size)
    center
    big (increases font size by 2 points)
    small (decreases font size by 2 points if it's 8 points or larger)
    b
    i
    s
    strike
    u
    The supported HTML attributes are:
    align
    face
    size
    color
    style
    font-family
    font-size
    font-style
    font-weight
    In Crystal Reports 2008 Service Pack 2 and above, the following additional HTML tags and attributes have been added to the supported list:
    The supported HTML tags are:
    ul  ( bulleted list )
    ol  ( ordered list )
    li   ( tag defining a list item used for both list type: ul and ol. )
    Important Note: The bullet will not show up as a regular size bullet, but as a small dot.
    The supported HTML attributes are:
    strong ( bold )

  • Changing HTML attributes

    Hi,
    My application can display HTML pages in a JTextPane. It can highlight parts of the text to make them stand out. But this is a problem when the HTML document has the same color that is used for highlighting the text. It makes the text look invisible!
    So I would like to be able to change the background color to white, no matter what is in the original HTML document. (Later, I will also be wanting to change the font color to black, and maybe remove/change some other attributes, but one thing at a time!)
    A StyledDocument is created with this code: EditorKit ek = new HTMLEditorKit();
    StyledDocument myDoc = (StyledDocument)ek.createDefaultDocument(); The HTML from the file is then read into myDoc with the "Read" method of the EditorKit. This StyledDocument will be used in another class which displays it on the JTextPane. But I want to change it BEFORE it goes on the JTextPane.
    Because the JTextPane accesses myDoc, I made a temporary StyledDocument called tempDoc to read the HTML into, then **hopefully** make my changes to, so that the very last line can be myDoc = tempDoc to make sure that myDoc only gets the very final changes.
    I use a Javax.Swing.Text.ElementIterator over the StyledDocument to get all of the elements and see if it's the body element using the Element.getName() method. This part works, because I have lots of println's in to see what is happening.
    I then use a SimpleAttributeSet and construct it using (bodyElement.getAttributes()). Then I tell it this: SimpleAttributeSet sas = new SimpleAttributeSet(bodyElement.getAttributes());
    sas.removeAttribute(sas.getAttribute(HTML.Attribute.BGCOLOR));
    sas.addAttribute(HTML.Attribute.BGCOLOR, "white");
    tempDoc.setCharacterAttributes(0, tempDoc.getLength(), sas, true); For the last line in particular, I feel like I've tried everytthing! Many different combinations.
    What I notice happening is that often the HTML document in the JTextPane displays the original document. Or else, all of the Elements, including content, are replaced with the <body bgcolor=white"> tag. (I make the EditorKit write out the resulting HTML file to see what's going on!). In the JTextPane, the original bgcolor remains, even if the content disappears. In the Browser, the bgcolor is the right color (with the content still missing.)
    Please do not tell me to edit the HTML files themselves as they are the client's, and it's a nicer solution for the program to handle them rather than tell the people to manually edit all of the files. Plus, the files are machine-generated, so there might not be anyone who even knows HTML!
    I have also tried using StyleConstants to change the colors, but this only changes the colors right behind the text. So the bgcolor is still displayed, but it looks like someone has run a white highlighter over the text. Quite ugly!
    I hope I have explained this well. The code is quite complicated (and messed up right now because I have been playing with it all day) so I haven't posted it. If you have any questions to clarify it, please ask!
    Thanks in advance to anyone who takes a look and attempts to help. (There are Dukes cuz everyone seems to like them, even though I don't really know what they do. A ranking system?)

    Ok, I deleted all of my changes and started again. This time, I set the Paragraph attributes instead of Character Attributes (I read the API properly and it said that set Character Attributes changes all of the content element attributes). That would explain why all of the text disappeared, lol! It doesn't explain why the original document was still being displayed in the JTextPane, but when I set Paragraph attributes, the document with the correct color background appears.
    There are still a couple of funny things happening. Cuz I'm lazy I'll post the resulting and original HTML files here:
    ORIGINAL:
    <html>
    <head>
    <title>A Test Document</title>
    </head>
    <body bgcolor=red>
    A red document
    <p>
    New paragraph
    </body>
    </html>
    RESULTING:
    <html>
    <head>
    <body bgcolor="white">
    <title>A Test Document </title>
    </body>
    </head>
    <body bgcolor="red">
    <body bgcolor="white">
    A red document
    </body>
    <body bgcolor="white">
    New paragraph
    </body>
    </body>
    </html>
    It would be nice if only the <body bgcolor=red> tag would be replaced with <body bgcolor="white"> instead of getting inserted everywhere (even in the HEAD tag). I tried setting the Paragraph attributes to bodyElement.getStartOffset and getEndOffset() but it didn't work either.

  • Question about HTML attributes

    I am parsing HTML code and need some help. Maybe it's because
    I don't understand HTML code or something.
    Anyways, I'm trying to get the content of an HTML element. Given the
    following Java code:
         // Iterate through the elements of the HTML document.
         ElementIterator it = new ElementIterator(doc);
         javax.swing.text.Element elem;
         while ((elem = it.next()) != null) {
              SimpleAttributeSet s = (SimpleAttributeSet)elem.getAttributes().getAttribute(HTML.Tag.A);
              if (s != null) {
              System.out.println(s.toString());
              System.out.println(s.getAttribute(HTML.Attribute.HREF));
              System.out.println("element: " + elem.toString());
              if (elem.getName().equals("tr")) {
              System.out.print("found TR: ");
              Enumeration e = elem.getAttributes().getAttributeNames();
              while (e.hasMoreElements())
                   System.out.print(e.nextElement().toString() + " ");
              System.out.println();
    I can't figure out how to parse the content from table data.
    Here is my HTML code:
    <TR VALIGN="top">
    <TD ALIGN="left" COLSPAN="2">
    <FONT FACE="Monospace,Courier">KDEN 191753Z 10007KT 050V150 10SM FEW090 SCT120 SCT200 29/M01 A3004 RMK AO2
    SLP087 VIRGA DSNT S-NW TCU DSNT SW T02891011 10294 20128 58007</FONT><BR>
    <FONT FACE="Monospace,Courier">KDEN 191653Z VRB05KT 10SM FEW090 SCT120 SCT200 28/00 A3006 RMK AO2 SLP095 VIRGA
    DSNT SW-NW T02830000</FONT><BR>
    <BR>
    </TD>
    </TR>
    The code picks out the HTML attribute "valign" for the TR element. But,
    how do I get to the actual content.
    What I would like is to get the string that begins with KDEN.
    Any comments would be helpful.
    Thanks.
    -brad w.

    I was able to make this work.
    What I did was the following:
    <code>
         // Parse the HTML.
         kit.read(rd, doc, 0);
         // Iterate through the elements of the HTML document.
         ElementIterator it = new ElementIterator(doc);
         javax.swing.text.Element elem;
         while ((elem = it.next()) != null) {          
    //          System.out.println("element: " + elem.toString());
              if (elem.getName().equals("content")) {
              start = elem.getStartOffset();
              end = elem.getEndOffset();
              // System.out.println("found content: beg_offset: " + start + "end_offset: " + end);
              if ((end-start) < 4)
                   continue;
              try {
                   loc = doc.getText(start, 4);
              } catch (BadLocationException ex) { continue; }
              if (loc.startsWith("KDEN"))
                   System.out.println(doc.getText(start, end - start));
    </code>
    I need to use the start and end position of the element to get
    the text from the Document.
    -brad w.

  • Caputre event on html/js view for PS Document open and change

    I want to refresh the extension view(html/js) when a new document is opened in photoshop or photoshop documents are switched.
    tried to add a listener via CSInterface.addEventListener but may be I am not doing it correct. I would appreciate if I can get some sample code for it.

    <div id="home_but"><a href="../index.html"><img src="../images/navbar_imgs/home_off.jpg" alt="home" width="78" height="28"........>
    If I try to link everything again from scratch, it gives me the "../images..." instead of just "images" as the index page.
    The part "a href="../" before the images source is the difference, I deleted those (not before backing up my page) with no avail.
    Sorry for the long post, but trying to explain as much as possible as a newbie in DW, help will be appreciated.
    I don't know the steps you're following when you get that result, but you should be able to use site-root relative. Try changing them to:
    <div id="home_but"><a href="/index.html"><img src="/images/navbar_imgs/home_off.jpg" alt="home" width="78" height="28"........>
    or
    <div id="home_but"><a href="/"><img src="/images/navbar_imgs/home_off.jpg" alt="home" width="78" height="28"........>
    (removed index.html)
    Worst case scenario, you might get away with using a BASE href=... element.
    Mark A. Boyd
    Keep-On-Learnin' :-)
    This message was processed and edited by Jive.
    It shall not be considered an accurate representation of my words.
    It might not even have been intended as a reply to your message.

  • TREX python extension for HTML attribute extraction

    How is the TREX python extension for HTML attribute extraction supposed to work?
    I activated this extension and indexed an HTML document containing:
    <HTML>
    <HEAD>
    <META content="debian, GNU, linux, unix" name=Keywords>
    <HEAD>
    <HTML>
    Why when submitting the query "unix" this document is not found by the system?
    (TREX version 6.1.11.02)
    Davide

    The trick doesn't work on my system (TREX v. 6.1.11.02).
    1) This is the edited line in getDCAttributes.py:
    knownAttributes = ['description','Keywords']
    2) Only the HTML Attribute Extractor extension is activated in extensions.py. In particular, the Dublin Core extension is deactivated.
    3) This is the pythonextension section of TREXPreprocessor.ini:
    extensiontype= beforeHTTP
    4) This is the parametrization of the newly created property in CM:
    <i>Unique ID: html_keywords
    Description: not set
    Property ID: Keywords
    Namespace Alias: trilog
    Type: String
    Group: html
    Mandatory: not checked
    Multi-Valued: not checked
    Read Only: not checked
    Maintainable: not checked
    Indexable: checked
    Default Value: not set     
    Allowed Values: not set
    Key for Label: not set
    Meta Data Extension: not set
    Folder Validity Patterns: /
    Document Validity Patterns: /
    Resource Types: not set
    Mime Types: not set
    Default Sorting     Ascending: not set
    Label Icon: not set     
    Hidden: not checked
    Dependencies: not checked
    Additional Metadata: not set
    Property Renderer: not set
    Virtual: not checked
    Composed of: not set
    Comparator Class: not set</i>
    5) I've added this property in the parameters <i>Allowed Predefined Properties</i> and <i>Predefined Properties</i> under <i>Content Management -> User Interface -> Search</i>
    6) Now it's possible to filter by the <b>Keywords</b> predefined property in the Search UI, but no matches are ever found.
    7) No significant message is found in PythonExtension.log:
    # running global extensions.py at Tue Jul 12 11:13:03 2005
    ### import getHtmlAttributes
    # running global extensions.py at Tue Jul 12 11:13:04 2005
    ### import getHtmlAttributes
    8) I've run another test <b>activating the Dublin Core extension</b> in extensions.py as well, and setting extensiontype to beforeLEXICON in TREXPreprocessor.ini. Nevertheless it didn't work.
    9) Here's some DC extension's output:
    ### Parse document with key: '/davide_test/attributi/GNU_Emacs.htm'
    ### extracted attributes: []
    This is the GNU_Emacs.htm's <head>:
    <META content=emacs name=keywords>
    Cheers, Davide

  • How to add a custom attributes in Oracle HTML Quotes page?

    Hi,
    Could someone advice on the best way to add a custom attribute in Oracle HTML Sales Quoting page.
    As this page is not an OA page, we are not able to use the concept of View Objects using AK Developer.
    Thanks,
    Arathi

    I have a requirement from our end users that all of them requires a shortcut button in toolbar for submitting a request instead of going the normal way in order to submit a single request.
    please can any one help me out in solving this query.Any reason you want to use a shortcut rather than using (Requests > Submit) window?
    You can use "FND_REQUEST.SUBMIT_REQUEST" API -- https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_REQUEST.SUBMIT_REQUEST&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    How To Submit A Concurrent Request Set Using Fnd_Request.Submit_Request [ID 382791.1]
    How To Set ORG_ID When Submitting A Concurrent Request Using FND_REQUEST.SUBMIT_REQUEST in Release 12 [ID 1383266.1]
    Thanks,
    Hussein

  • Using the value "Image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of preconfigured file types (.jpe, .jpg, .jpeg, .?

    On a form, using the value "image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of pre-configured file types (.jpe, .jpg, .jpeg, .gif, .png, .bmp, .ico, .svg, .svgz, .tif, .tiff, .ai, .drw, .pct, .psp, .xcf, .psd, .raw)?
    Say I wanted to add .gif, .jfif or .ico. I find this array limited, how can I add types to image?
    <input type="file" name="file" accept="image/*" id="file" />
    mimeTypes.rdf does not seem to allow this.

    ''mimeTypes.rdf'' has nothing to do with web development. It's a file that stores your file handling preferences (e.g. if you want ZIP files automatically saved or opened).
    You can't change the file types of the pre-defined content specifiers (audio/*, video/*, image/*), but you can specify additional MIME types. To add PDF to your above example,
    <pre><nowiki><input type="file" name="file" accept="image/*,application/pdf" id="file" /></nowiki></pre>
    For details, see
    * [https://developer.mozilla.org/En/HTML/Element/Input developer.mozilla.org/En/HTML/Element/Input]

  • HTML Comments in a JSP Document

    I am writing a JSP Document that has a number of comments. Some I want to be server-side such as version history and some I want to be client-side.
    Using a JSP page this is easily achieved using JSP comments <%-- JSP comment for server-side --%> and HTML Comments<!-- HTML comment client-side -->.
    Using XML syntax a number of things are apparent:
    1. There is no XML equivalent of a JSP comment (this has been well doc'd for a long time).
    2. In the Java EE tutorials the recommended alternative to a JSP coomment is a HTML comment.
    3. Using HTML comments in a JSP document the web container omits these in the page output - and so they are server-side only just like a JSP comment.
    Code Snippet:
    <template xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" version="1.2">
    <!-- this comment will not appear in the generated source on the client browser -->
    </template>
    <!-- JSP fragment for no caching policy -->
    So, my question is how do I generate a client-side comment in a JSP Document?
    Thanks
    Edited by: DJT on Mar 3, 2008 4:28 AM
    Edited by: DJT on Mar 3, 2008 4:30 AM

    I found this ....
    http://www.javaworld.com/javaworld/jw-07-2003/jw-0725-morejsp.html
    One significant disadvantage of JSP documents is that no XML-compliant version of JSP comments exists. A JSP document developer can use client-side (HTML-/XML-style) comments or embed Java comments in scriptlets, but there is no JSP document equivalent to <%-- -->. This is a disadvantage because the other two commenting styles JSP documents can use have their own drawbacks. You can see the client-side comments in the rendered page using the browser's View Source option. The Java comments in scriptlets require placing Java code directly in the JSP document.
    So try to embed the HTML comment inside scriptlet tags...
    <%
    <!-- HTML comment here -->
    %>

  • How to get the "link" HTML.attribute

    What are the HTML.attribute that could contain a link ?
    The most common are
    HREF and
    SRC
    but there are too : ACTION, BGCOLOR ...
    and attribute that doesn't contain links like width ...
    Is there anyway to know the attributes that can contain links, or if someone knows the full list.
    Thanks

    Hmm.. got your meaning.. maybe its kind of weird to say but how about trying to see which similiar html tags can = "url" ? If the similiar html tags can, sure can the attribute.
    Just my cents..

  • Disable HTML generation in Interactive Reporting documents

    I need to disable the generation of HTML that came with bqy documents, i know that is an option in the bqy properties that you can check to enable or disable this, but i already serach in verion 9.0.1 and 9.3 ant dont have any option for this.. <BR><BR>Any know how can i disable html?<BR><BR>Juan Alvarado

    Hi,
    I have been never used the MySQL server as a database. But I advise you that instead of copy the myodbc folder in new environment (in step 1), you should install the My SQL server database drives in new environment. As you will install the drivers, some entries of this installation will go to registry.
    Also registered your database server on Hyperion Server via RSC.
    Hope it will help you.
    Thanks & Regards,
    Mohit Jain

  • Error - html version of the indexed document

    Hi All,
    EP Version -2004s
    I have created a web repository and configured  a TREX search for that .
    Search is working fine except I cannot see the html version of the searched document when I click on the 'html version' link.
    When I click on 'html version'  link I get an error message saying 'index service not found'.
    Any idea ?
    Thanks & Regards,
    Amit Kade

    Hi Experts,
    Can anybody please answer this query .. its very urgent.
    Thanks & Regards,
    Amit Kade

  • Parsing Non-Standard HTML Attributes

    Hi, recently I have been making use of the HTMLEditorKit to parse HTML pages and extract the values of certain attributes. However, I run into problems when attempting to extract the values of non-standard html attributes since javax.swing.text.html.HTML.Attribute does not allow you to define new attributes only use its existing values. Does anyone know a way of getting values from non-standard attributes?
    Thanks,
    Ross

    Ray.R wrote:
    Hi Darin.
    How have you been?  Wishing you a belated Happy New Year!
    I like your expression:  "step away from the mouse".  Very much to the point.  
    Thanks for the advice.  I'll check out XPath.
    Cheers,
    RayR
    Doing well, Thanks.  Wishing you an early Chinese New Year.  (that's going to get bleeped). [Edit:  Yay, no more bleeping Chinese]
    Be a little careful with XPath.  Some people have been known to wrap C++ libraries to have access to XPath 2.0 and an XSLT engine for awesome search and replace capabilities.  Others have been known to find ways to program XPath graphically:

  • How do you access html attributes from an Event?

    Hi,
    Is there a way to access the VALUE of this html tag in the event code?
    Html:
    <input type="IMAGE" id="testId" src="images/sort_ascending.gif" name="event_Sort" value="ASC" />
    Event Code:
    public void onSort(DataActionContext ctx)
    // Code before executing the default action
    //if (ctx.getEventActionBinding() != null) ctx.getEventActionBinding().doIt();
    // Code after executing the default action
    }

    Duncan or anyone,
    Any Ideas why I can not get this to work?
    I do not get the value "ASC" in a prameter "event_Sort".
    I do get Two Parameters event_Sort.x & event_Sort.y.
    I believe they represent the coordinates on the image that I clicked?
    Here is all my code simple to the core:
    JSP Page:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>untitled</title>
    </head>
    <body>
    <form action="action1.jsp">
    <input type="image" src="images/sort_ascending.gif" name="event_Sort" value="ASC"/>
    </form>
    </body>
    </html>
    Java Event Code:
    package mypackage3;
    import javax.servlet.http.HttpServletRequest;
    import oracle.adf.controller.struts.actions.DataForwardAction;
    import oracle.adf.controller.struts.actions.DataActionContext;
    public class Action1Action extends DataForwardAction
    // To handle an event named "yourname" add a method:
    // public void onYourname(DataActionContext ctx)
    // To override a method of the lifecycle, go to
    // the main menu "Tools/Override Methods...".
    public void onSort(DataActionContext ctx)
    // Code before executing the default action
    //if (ctx.getEventActionBinding() != null) ctx.getEventActionBinding().doIt();
    // Code after executing the default action
    HttpServletRequest request = ctx.getHttpServletRequest();
    String sortValue = request.getParameter("event_Sort");
    System.out.println(sortValue);
    }

  • FW2004 HTML obj broken in HTML 4.01 strict

    I have a nav/title bar created in FW MX2004 that has been
    working fine inside of pages with both XHMTL 1.0 transitional
    XHTML_trans
    and HTML 4.01 transitional
    HTML_trans
    declarations. However, I'm attempting to create new pages with an
    HTML 4.01 strict declaration and the table is breaking apart.
    HTML_strict
    I've done some reading and understand that this is probably
    due to the transitional declarations putting the some of browsers
    into "Almost Standards" mode thereby affecting tables that utilize
    slices. Unfortunately, I don't know how to fix it. I have made
    changes suggested by the validator including removing the
    "language" attribute from the JavaScript tag. It also didn't seem
    to like <td border="0"> so I stripped all of those out of
    there. The latter created problems with FireFox, however, wrapping
    all of the link images in the the default link color.
    In any case, I'd appreciate any input. Pertinent code appears
    below.
    Thanks - JAY

    Of course. The solution was painfully obvious: don't use the JSP tags but use the generated HTML. Then cut out the COMMENT and UNEMBED tags. Duh. Sorry about that.

Maybe you are looking for