Preferences > JavaScript > Include Path > Source >.
Exclude select <dir> > Edit >
Preferences > Web > JSP Files > Validation > Validate JSP Fragments.