Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » jsp editor and tag libraries
jsp editor and tag libraries [message #61224] Wed, 05 January 2005 09:00 Go to next message
Eclipse UserFriend
Originally posted by: jesion_list.DROPIT.gazeta.pl

hi,

is there support for tag libraries (and code assist for new tags) in m2?
it seems it doesn't work at all. in ibm contribution there was the
hack known to make it work (c:/web-inf/tag - at least for windows
version)...

wojtek
Re: jsp editor and tag libraries [message #61908 is a reply to message #61224] Thu, 06 January 2005 01:21 Go to previous messageGo to next message
Eclipse UserFriend
Hacks should not be need with M2. Short of JSP 2.0 tagdirs, it
should just work according to the specification. Do you have a case
that doesn't work?

---
- Nitin
Re: jsp editor and tag libraries [message #61951 is a reply to message #61908] Thu, 06 January 2005 02:20 Go to previous messageGo to next message
Eclipse UserFriend
Nitin Dahyabhai schrieb:
> Hacks should not be need with M2. Short of JSP 2.0 tagdirs, it should
> just work according to the specification. Do you have a case that
> doesn't work?

How do I set this up?

I have the following JSP:

main.jsp -> includes /WEB-INF/jsp/includes/environment.jsp
environment.jsp -> includes /WEB-INF/jsp/includes/taglibs.jsp
taglibs.jsp -> defines taglib prefix="debug"
tagdir="/WEB-INF/tags/debug"

- Content assist doesn't work for tags defined in /WEB-INF/tags/debug
- Content assist also doesn't work for taglibs defined in jars

BTW, I can't edit ".tag" files with M2.

Cu, Gunnar
Re: jsp editor and taglibraries [message #61995 is a reply to message #61951] Thu, 06 January 2005 03:00 Go to previous messageGo to next message
Eclipse UserFriend
Gunnar Wagenknecht wrote:
> taglibs.jsp -> defines taglib prefix="debug"
> tagdir="/WEB-INF/tags/debug"
>- Content assist also doesn't work for taglibs defined in jars

Ah, there it is. Tagdirs did not work inside of the JSP editor in
any previous code revision nor do they work in M2. They should be
functional in M3.

JARs should already work without any special setup. Where are the
..jars and .jsps located and how are you referencing them in your
taglib directive?

--
- Nitin
Re: jsp editor and taglibraries [message #62042 is a reply to message #61995] Thu, 06 January 2005 05:40 Go to previous messageGo to next message
Eclipse UserFriend
Nitin Dahyabhai schrieb:

> Ah, there it is. Tagdirs did not work inside of the JSP editor in
> any previous code revision nor do they work in M2. They should be
> functional in M3.

Ah, thanks.

> JARs should already work without any special setup. Where are the .jars
> and .jsps located and how are you referencing them in your taglib
> directive?

Jars are located in WEB-INF/lib (eg. jstl.jar) and automatically added
to the classpath by a builder.

They are referenced like the tagdirs in taglibs.jsp (which is included
by environment.jsp which is included in the main jsp file) with their URI:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

The jsps are in the webapp root or in a subdirectory (eg. WEB-INF/jsp...)

Cu, Gunnar
Re: jsp editor and taglibraries [message #62301 is a reply to message #62042] Thu, 06 January 2005 11:41 Go to previous messageGo to next message
Eclipse UserFriend
Gunnar Wagenknecht wrote:
> They are referenced like the tagdirs in taglibs.jsp (which is included
> by environment.jsp which is included in the main jsp file) with their URI:
>
> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
>
> The jsps are in the webapp root or in a subdirectory (eg. WEB-INF/jsp...)

Ah, and that seems to be broken in M2. When the problems locating
taglibs in the IBM Initial Contribution were fixed for M2, content
model support for taglib directives in included files didn't get
updated. I've opened bug 82333 for this.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=82333

---
- Nitin
Re: jsp editor and taglibraries [message #62649 is a reply to message #62301] Fri, 07 January 2005 02:12 Go to previous message
Eclipse UserFriend
Nitin Dahyabhai schrieb:

> Ah, and that seems to be broken in M2. When the problems locating
> taglibs in the IBM Initial Contribution were fixed for M2, content model
> support for taglib directives in included files didn't get updated.
> I've opened bug 82333 for this.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=82333

Thanks!
Cu, Gunnar
Previous Topic:A new try...
Next Topic:Configuration of Tomcat within Eclispe IDE
Goto Forum:
  


Current Time: Thu May 08 11:27:23 EDT 2025

Powered by FUDForum. Page generated in 0.05024 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top