Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Atributes prompting for custom tagilbs
Atributes prompting for custom tagilbs [message #76388] Thu, 24 February 2005 11:05 Go to next message
Eclipse UserFriend
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 #76513 is a reply to message #76388] Thu, 24 February 2005 16:29 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4472
Registered: July 2009
Senior Member

Borislav Sabev wrote:
> 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?

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.

> 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.

This should be working in M3. If not, please open a bug.

--
- Nitin


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Atributes prompting for custom tagilbs [message #76702 is a reply to message #76513] Fri, 25 February 2005 07:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: borislav_sabev.yahoo.com

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
Re: Atributes prompting for custom tagilbs [message #76817 is a reply to message #76702] Fri, 25 February 2005 13:02 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
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
>
Previous Topic:How to configure http.proxyHost with JST and Jboss 3.2.3 as generic server?
Next Topic:Disable automatic structured builder ?
Goto Forum:
  


Current Time: Tue Jul 16 06:41:10 GMT 2024

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

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

Back to the top