• 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

Validation of JSP Fragments

 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are there any IDEs that may be configured to enable validation and syntax checking of jspf files?

I understand the differences between an include directive and the jsp include (*), but I am pretty much stuck with jspf's.

So the question is about if any IDE has been made smart enough to handle validation (and the handy navigation) of fragments that are pulled in using the include directive.

You would have to tell the IDE which parent you were thinking about because of this situation:

NiceOne.jsp


NotNiceOne.jsp


IncludeMe.jspf


The default I've seen is to either not validate "IncludeMe.jspf", or the "line" variable cannot be resolved, irrespective of the existence of NiceOne,jsp or NotNiceOne.jsp

Are there any easy work-arounds?

--Dale--
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.
 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:I have moved this post there for you.



Thanks Bear.

So, to the folks here in IDE land, what about it? Any ideas?

--Dale--
 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No comments?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had to google JSPF files. Looks like it is just a partial JSP file mention to be used when doing includes. Huh, I always name such files JSP - goes to show what I know ;-)

Anyway, I was going to suggest that you add JSPF files to the General | Content Types within the Eclipse preferences, but I just saw that it is already there under JSP. So the JSP editor should be opening it. You could right-click the file an ensure that the JSP editor is the default for that file extension.
 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:...ensure that the JSP editor is the default for that file extension.



Thanks for the reply. I've got it showing in the right editor, and it validates the stuff it "knows about", but just doesn't "know about" the stuff in the parent jsp. It seems like if the IDE could be told about the parent, it could validate "correctly".

--Dale--
 
reply
    Bookmark Topic Watch Topic
  • New Topic