File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ganymede bug using jsp include directive

 
R. Duval
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
R. Duval
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic