Re: Problem with webobjects - tag occurred before another tag
Re: Problem with webobjects - tag occurred before another tag
- Subject: Re: Problem with webobjects - tag occurred before another tag
- From: Guido Neitzer <email@hidden>
- Date: Mon, 21 Jul 2008 16:00:55 -0600
Please keep that on the list.
The problem is that you have crap like that: </TR></TD></FONT></TABLE>
in that code. You can get help from the Eclipse html formatter (don't
know whether that would even try to format that ...) or other tools
like BBEdit.
And you should REALLY clean up your HTML. That stuff is a horrible
relict and a good reminder why WebObjects Builder sucked.
cug
On 21.07.2008, at 15:52, Mersida Kurti wrote:
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>* </FONT></
FONT><WEBOBJECT NAME=PopUpButton1></WEBOBJECT> <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 "http://" or "https://"
;.<BR></FONT></WEBOBJECT></FONT></FONT><FONT FACE="Tahoma,
Arial"><FONT SIZE=2><BR></FONT></FONT><FONT COLOR="#ff0000"><FONT
SIZE=3>* </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>* </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>* </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>* </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, Guido Neitzer <email@hidden> wrote:
From: Guido Neitzer <email@hidden>
Subject: Re: Problem with webobjects - tag occurred before another tag
To: "Development WebObjects" <email@hidden>
Date: Monday, July 21, 2008, 5:16 PM
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
--
http://www.event-s.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your
Subscription:
This email sent to email@hidden
--
http://www.event-s.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden