Hi all,

Here's an example of one of my html files 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
    <HEAD>
        <META NAME="generator" CONTENT="WebObjects 5.2">
        <TITLE>Add Products</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FFFFFF">
    <WEBOBJECT NAME=Form1>
        <TABLE WIDTH="100%">
            <TR>
                <TD VALIGN=TOP><FONT FACE="Tahoma, Verdana, Arial">Create 
Products</FONT><BR>
   
                <FONT FACE="Tahoma, Verdana, Arial"><FONT
SIZE=2><I>Create Penn State Public Broadcasting
products.</I></FONT></FONT><BR>
                </TD>
   
            <TD ALIGN=RIGHT VALIGN=TOP><FONT FACE="Tahoma,
Arial"><WEBOBJECT
NAME=ActiveImage2></WEBOBJECT></FONT></TD>
            </TR>
   
    </TABLE><P ALIGN=CENTER><FONT FACE="Tahoma,
Ariel"><FONT COLOR="#ff0000"><WEBOBJECT
NAME=String5></WEBOBJECT></FONT></FONT></P><BR><FONT
COLOR="#ff0000"><FONT
SIZE=3>*&nbsp;</FONT></FONT><WEBOBJECT
NAME=PopUpButton1></WEBOBJECT>&nbsp;<WEBOBJECT
NAME=SubmitButton3></WEBOBJECT><BR><BR><BR><TABLE
CELLSPACING=3 CELLPADDING=3 BORDER=1 WIDTH="100%"><TR
VALIGN=TOP><TD><FONT FACE="Tahoma, Verdana,
Arial"><U><FONT SIZE=3>Areas of
Interest</FONT></U><FONT
SIZE=4><BR></FONT></FONT><WEBOBJECT
NAME=CheckBoxList1></WEBOBJECT></TD><TD><FONT
FACE="Tahoma, Verdana, Arial"><U><FONT
SIZE=3>Audiences</FONT></U></FONT><FONT
SIZE=4><FONT FACE="Tahoma, Verdana,
Arial"><BR></FONT></FONT><WEBOBJECT
NAME=CheckBoxList2></WEBOBJECT><FONT FACE="Tahoma,
Arial"><BR><U><FONT
SIZE=3>Keywords</FONT></U><BR></FONT><FONT
FACE="Tahoma, Arial">Enter Keywords:<BR><WEBOBJECT
NAME=Text1></WEBOBJECT><BR><BR></FONT><FONT
FACE="Tahoma, Arial"><FONT SIZE=2><WEBOBJECT
NAME=Conditional11><FONT COLOR="#ff0000">You must enter a
valid URL, starting with either &quot;http://&quot; or
&quot;https://&quot;.<BR></FONT></WEBOBJECT></FONT></FONT><FONT
FACE="Tahoma, Arial"><FONT
SIZE=2><BR></FONT></FONT><FONT
COLOR="#ff0000"><FONT
SIZE=3>*&nbsp;</FONT></FONT><FONT FACE="Tahoma,
Arial"><FONT SIZE=3>Product
URL:</FONT></FONT><FONT FACE="Tahoma, Arial"><FONT
SIZE=2><BR><WEBOBJECT
NAME=TextField3></WEBOBJECT></FONT></FONT><FONT
FACE="Tahoma, Arial"><FONT
SIZE=2><BR></FONT></FONT></TD></TR><TR VALIGN=TOP><TD><FONT
FACE="Tahoma, Arial">Product Id:<BR><WEBOBJECT
NAME=String1></WEBOBJECT><BR><BR>Location
Code:<BR><WEBOBJECT
NAME=String4></WEBOBJECT><BR><BR>Location:<BR><WEBOBJECT
NAME=String2></WEBOBJECT><BR><BR>Course
Key:<BR><WEBOBJECT
NAME=String3></WEBOBJECT></FONT></TD><TD
COLSPAN=2><FONT COLOR="#ff0000"><FONT
SIZE=3>*&nbsp;</FONT></FONT><FONT
SIZE=3><FONT FACE="Tahoma, Verdana, Arial">Overriding
Title:</FONT></FONT><FONT FACE="Tahoma, Arial"><FONT SIZE=3><BR><WEBOBJECT
NAME=TextField1></WEBOBJECT><FONT FACE="Tahoma, Verdana,
Arial"><FONT
SIZE=3><BR><BR></FONT></FONT><FONT
COLOR="#ff0000"><FONT
SIZE=3>*&nbsp;</FONT></FONT><FONT
SIZE=3><FONT FACE="Tahoma, Verdana, Arial">Overriding
Description:</FONT></FONT><FONT FACE="Tahoma,
Arial"><FONT SIZE=3><FONT FACE="Tahoma, Arial"><FONT
SIZE=3><BR><FONT SIZE=1><FONT FACE="Tahoma,
Arial">(If length is more than 2048 characters, changes will not be
saved.)</FONT></FONT><BR><WEBOBJECT
NAME=Text2></WEBOBJECT><BR><BR><FONT
FACE="Tahoma, Arial"><WEBOBJECT
NAME=SubmitButton1></WEBOBJECT><WEBOBJECT
NAME=SubmitButton2></WEBOBJECT></FONT></FONT></FONT></FONT></FONT></TR></TD></FONT></TABLE></WEBOBJECT><FONT
FACE="Tahoma, Arial"><FONT SIZE=3><FONT
COLOR="#ff0000"><FONT
SIZE=3>*&nbsp;</FONT></FONT></FONT>Required
Fields</FONT></BODY>
</HTML>

These are
the error messages I see.  If anyone has any idea what to do please let
me know as I'm not really good at this stuff.  Thank you in advace.

</TABLE> occurred before </TR>
</TR> occurred before </FONT>
</TR> occurred before </FONT>
</TABLE> occurred before </TR>

--- On Mon, 7/21/08, Gavin Eadie <[EMAIL PROTECTED]> wrote:
From: Gavin Eadie <[EMAIL PROTECTED]>
Subject: Re: Problem with webobjects - tag occurred before another tag
To: "Guido Neitzer" <[EMAIL PROTECTED]>
Cc: "Development WebObjects" <[email protected]>
Date: Monday, July 21, 2008, 5:43 PM

On Jul 21, 2008, at 5:16 PM, Guido Neitzer wrote:

> On 21.07.2008, at 15:04, Lachlan Deck wrote:
>
>>> I have just switched my environment from 10.4 tiger with web  
>>> objects 5.2.4 to 10.5 leopard (mac intel) with webobjects 5.4.2  
>>> and I'm getting a lot of tag errors such as </TABLE>
occurred  
>>> before </TR>, </TD> occurred before </FONT>,
</TR> occurred before  
>>> </WOB-Tokenizer> and so on...its is about 115 messages and
so hard  
>>> to fix because we use nested tags.  Does anyone know how to fix  
>>> these errors easily?  Any help would be greatly appreciated.
>>
>> Try hitting cmd+shift+f in Eclipse component editor
>>
>> Uppercase tags (I think) are a thing of the past. 5.4.x, by  
>> default, requires xml compliant tags AFAIK
>
> No, only the WO 5.4 inline tag parser does. What he probably sees  
> are errors from the HTML
> validation. These should get fixed nevertheless. Things like this:
>
> <wo:if condition="$foo"><tr></wo:if>
>   ...
> <wo:if condition="$foo"></tr></wo:if>
>
> (Inline tags for better understanding) might work with the old-style  
> parser but will never work with inline bindings, either WOOgnl or WO  
> itself. It's just just bad style to write things like that. I fear,  
> Mersida meant that by "nested tags". Or, even worse, stuff like
that:
>
> <div class = "<webobject name=ClassString />">
>
> which are even uglier and should be forbidden by international  
> law ... And it's really not that hard to fix. Even for 115 error  
> messages - some of them might be fixed by just fixing ONE tag ...
>
> cug

... my experience was, with well over a thousand such complaints in an  
old application brought froward into the modern era, it only took a  
couple of hours to bring the count to zero.  The first 80% were things  
like changing "<br>" to "<br/>" (for which I
just fed the entire  
*.html collection to an editor), the next 15% required a little  
examination (often revealing that the original coding was actually  
wrong!), and the last 5% needing a little new work (mostly usages  
that, cough, "ought to forbidden by international law") ...

... also, as noted, formatting in Eclipse is your friend!  It lower- 
cases where required and converts <webobjects name=wodstuff> into  
<webobjects name="wodstuff">; those quotes are also a
requirement ...  
Gav
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/muc154%40yahoo.com

This email sent to [EMAIL PROTECTED]


      
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to