Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 149716 - "No start tag" errors in JSP editor
Summary: "No start tag" errors in JSP editor
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: 1.5.3   Edit
Hardware: PC Linux
: P2 normal with 4 votes (vote)
Target Milestone: ---   Edit
Assignee: Nick Sandonato CLA
QA Contact: David Williams CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-05 13:55 EDT by Andreas Schildbach CLA
Modified: 2010-01-29 10:42 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schildbach CLA 2006-07-05 13:55:17 EDT
In my .jspx files, I've got numerous "No start tag" errors. I reduced one of these files to a minimum, and got the following:

<jsp:root version="2.0">
	<p>
	</p>	
</jsp:root>

The error appears at line 3 (</p>).

I am using Eclipse 3.2 / WTP 1.5 final (Callisto install)
Comment 1 Harry CLA 2006-10-17 23:21:27 EDT
Happens for me too, but:

Windows 2000 Server running in VMWare
Eclipse 3.2.1 build M20060921-0945 Callisto install

I have noticed that if I edit the file by making a trivial change, ie add whitespace, then save the file, the JSP syntax checker then finds the JSP to be correct. If I then do a Project->Clean so that it builds everything automatically, the "error" appears.
Comment 2 Neil McFarb CLA 2007-02-14 10:08:02 EST
I get it too on Windows XP, Eclipse 3.2.1 build M20060921-0945,  WST 1.5
Usually no start tag (<form>)
Comment 3 Wayne Beaton CLA 2007-02-20 23:41:45 EST
Another example:

--
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<p>
<div></div>
</p>
</body>
</html>
--

This is a violation of the DTD, so while there is an error, the message ("No start tag" on the </p>) is incorrect.
Comment 4 Neil McFarb CLA 2007-02-21 10:10:14 EST
(In reply to comment #2)
> I get it too on Windows XP, Eclipse 3.2.1 build M20060921-0945,  WST 1.5
> Usually no start tag (<form>)
> 

It appears in my case that at least some (perhaps all) of these errors were caused by bad jsp.  For example no end slash on input tags e.g. <input type="text" name="textbox" >,
 or bad nesting ex
<form>
  <table>
    <table>
    </table>
  </form>
</table>
so perhaps the error reporting could be improved in this case.
Comment 5 Ian Tewksbury CLA 2010-01-18 17:33:29 EST
The original issue with this bug has been resolved.  And the secondary issue now has a better error message "Invalid location of tag (div)."
Comment 6 Nick Sandonato CLA 2010-01-29 10:42:58 EST
Resolved by Bug 283840.