I reported a few issues about the JSP taglibs awhile back but through
trial/error have learned quite a bit more about getting it to work.

        So first off I have defined all my taglib URIs in the IDE Options -> External
Resources.  (Separate feature request will be filed to make this less painful).

BUG #1:
        When I properly define my JSP taglibs in External Resources they still show up
as unresolved URIs in JSP files. (At this point web app settings are not
defined.)  I argue I shouldn't need to set up web app if I explicitly define all
my tld files.

        To work around this there is a few things that are needed, first you must go in
to Project Settings -> Web and select 'Enable Web App Support', then define a
web app and point to a directory that has WEB-INF as a sub-directory.  NOTE: The
WEB-INF doesn't actually need to have your tld files, all IDEA does is verify a
WEB-INF is there.  Uncheck the 'Enable Web App Support' box.  Then save the
project and close the project.  Reopen the project. Open a JSP notice all the
taglib URI's defined in External Resources are resolving fine.  So the funny
thing about this is that all IDEA requires to get this working is have a webapp
dir defined that has a WEB-INF as a sub-dir.  Since this is the only requirement
it should be pretty easy to remove this all together and just automatically
resolve all taglibs defined in External Resources.  This will eliminate the need
to set up a dummy webapp for IDEA to trigger JSP tag auto-complete.

BUG #2:
        If I approach this the "IDEA way" and properly define a webapp which has a
WEB-INF subdir containing my tld files then only files opened with the web tab
will resolve tld files.  If I open JSP files from the Project tab they will not
get the tld files resolved.  Seems to me that if IDEA can resolve the tlds for
files opened from the web tab then should also resolve tlds from the project
tab.

        My reason for all this is that our source tree in source control is not a fully
populated web-app.  We store all the 3rdParty jars and tlds in a separate source
depot shared by all teams and applications.    Then at build time ANT will copy
the proper jars and tlds that our apps needs into a WEB-INF/lib dir before
creating the .war file we ship.  So it will be very useful for me to be able to
use the JSP features of IDEA without having to setup the web app.  I basically
just want to configure my own tlds and have them available to all my projects
and files.

Keep up the good work!!

-kevin
Anxiously waiting for #630

--
Kevin Henrikson                                  Openwave Systems, Inc.



_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs

Reply via email to