• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ganymede bug using jsp include directive

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic