• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Is there a way to stop websphere from compiling jsps in a particular folder?

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to stop websphere from compiling jsps in a particular folder?
I have a few jsp fragments and I want to stop the compile errors.
 
author & internet detective
Posts: 39540
778
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brahim,
I don't think it's possible to do that. You can ignore categories of errors for a whole project, but not part of it.
 
Brahim Bakayoko
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That really sucks.
The jsp fragments are meant to be included into larger jsps. It makes no sense for them to get compiled.
Is there a better way to deal with jsp includes?
I don't want to rename the fragments to a different extension as it will mess things up in Dreamweaver, which I use along with WSAD.
What is the "derived" option in the properties of folders? (There are 2 options: read only and derived)
 
Brahim Bakayoko
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I renamed the fragments to .asp.
I now have the desired effect in Dreamweaver and WSAD.
So, all is well.
 
author
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you precompiling JSP files?
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Brahim Bakayoko:
Is there a way to stop websphere from compiling jsps in a particular folder?
I have a few jsp fragments and I want to stop the compile errors.


If I'm understanding you right, you just want to stop displaying errors for a particular folder containing some JSP fragments. WebSphere Studio (which is what I think you're talking about) doesn't actually compile the JSP's until runtime (that's right, runtime), it just runs an error checker against them whenever you save a file. So, all you need to do is appropriately filter your files.
You should be able to do that by creating a tasks filter that only displays errors in a particular working set that does NOT contain that folder, but contains the rest of your project. No guarantees that this will work, but it's certainly worth a try.
Kyle
 
Brahim Bakayoko
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Roland Barcia:
Are you precompiling JSP files?


Yes, I am. But, as Kyle mentioned, this is not the issue. The errors are validation errors.

Originally posted by Kyle Brown:

You should be able to do that by creating a tasks filter that only displays errors in a particular working set that does NOT contain that folder, but contains the rest of your project. No guarantees that this will work, but it's certainly worth a try.
Kyle


Hi Kyle!
Thanks for the tip. I don't know why I did not think of that.
I don't want any type of validation to be done idealy on the files, but your tip is what I was lookig for.
Oh yes, I meant validation errors and not compile errors. Sorry for the confusion. Sometimes, you think something but you write something else.
For now, renaming the jsp fragments to .asp works great for both WSAD and Dreamweaver. No other extension works so well for both. WSAD performs no validation check on the .asp files and Dreamweaver renders the includes appropriately.
All the fragments in question are translation time includes. They are part of a few Dreamweaver templates I have developed.
Thanks guys!
[ May 12, 2004: Message edited by: Brahim Bakayoko ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should use ".jspf" not ".jsp" as the extension on JSP fragment files.
 
The knights of nee want a shrubbery. And a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!