aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Ganymede bug using jsp include directive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Ganymede bug using jsp include directive" Watch "Ganymede bug using jsp include directive" New topic
Author

Ganymede bug using jsp include directive

R. Duval
Greenhorn

Joined: Sep 16, 2008
Posts: 11
Salute ladies and gentlemen,

Since I downloaded Eclipse Ganymede I've been experiencing a buggy error when trying to use some include directive: <%@include file="somefile.jsp"%>.

The issue occurs on a simple JSP file like this:



The "<%@ include file="./includes/someCentralArea.jsp" %>" is just a jsp with struts 2 taglibs (a s:form actually) with nothing unusual, it doesn't show any error and runs pretty fine on container, but Eclipse 3.4 keep showing me the following error lines:

Syntax error on token "}", delete this token
Syntax error on token "catch", Identifier expected
Syntax error, insert "Finally" to complete TryStatement

Does anyone have a clue on that? I tried even to Google for a bug on Eclipse but found nothing. Is there any workaround or a fix for that?

Thanks,
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14153
    
  18

I've noticed these kinds of errors in Eclipse 3.4 too. Unfortunately it looks like that the Web Tools Platform (WTP) part of Eclipse 3.4 is far from perfect.

You could try downloading the latest version of Eclipse (currently 3.4.1), I've noticed that for example editing JavaScript code works much better in 3.4.1 than in 3.4.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
R. Duval
Greenhorn

Joined: Sep 16, 2008
Posts: 11
Jesper,

Actually I updated the WTP module to no avail. Well, I'm gonna try to update the whole Eclipse to 3.4.1 but I'm not sure if it'll work.

If there is a way to suspend the validator that checks this kind of issue, I'd be glad to know.
[ October 24, 2008: Message edited by: R. Duval ]
Bruno Melloni
Greenhorn

Joined: Oct 25, 2004
Posts: 3
The problem only seems to happens when using the old style <%@ ... %>. If you switch to the new strict XML style <jsp:... /> the problem goes away.

Perhaps one of the Ganymede developers felt that we should all switch to writing JSPs using XML syntax. Annoying.

I have not found a way to eliminate the warnings. If somebody finds it, please post.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ganymede bug using jsp include directive