Atributes prompting for custom tagilbs [message #76388] |
Thu, 24 February 2005 06:05  |
Eclipse User |
|
|
|
Originally posted by: borislav_sabev.yahoo.com
Hi all,
I need some help about taglibraries and tag attributes.
1. when i put taglib declaration in a jsp like this here:
<%@ taglib uri="/WEB-INF/taglibs/struts-logic.tld" prefix="logic" %>
the editor finds it and propmt me tags from this taglib. but I use
something like this <%@ taglib uri="struts-logic.tld" prefix="logic" %>
and specify the location of the taglib in web.xml, then the editor doesn't
prompt the tags. Is there some solution about this or at least is it
possible?
2. if the taglib is recognized by the jsp editor and propmts me the tags,
it doesn't prompt me the attributes of the tag. Is this implemented at all
or I have to tune the editor somehow? or may be the feature is not planned
at all?
I'll appreciate any help about these 2 issues.
Cheers
Borislav
|
|
|
|
|
Re: Atributes prompting for custom tagilbs [message #76817 is a reply to message #76702] |
Fri, 25 February 2005 08:02  |
Eclipse User |
|
|
|
Hi Borislav,
With:
<taglib-uri>/struts-html</taglib-uri>
in your web.xml, wouldn't you need:
<%@ taglib uri="/struts-html" prefix="logic" %>
instead of:
<%@ taglib uri="struts-logic.tld" prefix="logic" %>
that you mentioned in your first mail? The uri's need to match.
Alternatively, you can use the uri specified in the tld and not bother
with the web.xml entries at all, i.e.:
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
prefix="logic" %>
HTH
Cheers,
Larry
Borislav Sabev wrote:
> Nitin Dahyabhai wrote:
>
>> To use the URI "struts-logic.tld", that string needs to be within a
>> taglib-uri element in the web.xml file. If that's the case and it's
>> not working, please open a bug.
>
> That's right, it's in my web.xml file. Otherwise I'll not bother the
> community here with obvious problems. This is snippet from my web.xml:
> <jsp-config>
> <taglib>
> <taglib-uri>/struts-bean</taglib-uri>
> <taglib-location>/WEB-INF/taglibs/struts-bean.tld</taglib-location >
> </taglib>
>
> <taglib>
> <taglib-uri>/struts-html</taglib-uri>
> <taglib-location>/WEB-INF/taglibs/struts-html.tld</taglib-location >
> </taglib>
> ...................
>
> So as you suggested I'll open a bug.
>
>> This should be working in M3. If not, please open a bug.
>
> I'm waiting the M3 - it's for today isn't it, so when I get M3 I'll
> check the propmpting again and if it's still not working I'll open a new
> bug.
>
> Thanks a lot for the fast answers!
>
> Borislav
>
|
|
|
Powered by
FUDForum. Page generated in 0.27365 seconds