| jsp taglib [message #128884] |
Tue, 02 August 2005 09:55  |
|
Originally posted by: aurphir.aurphir.com
Hi all
Eclipse webtools support jsp taglib or not? because whle editing it says
unknown tag
Thanks
|
|
|
| Re: jsp taglib [message #128923 is a reply to message #128884] |
Tue, 02 August 2005 10:26   |
|
Originally posted by: pavery.us.ibm.com
Vishal Rana wrote:
> Hi all
> Eclipse webtools support jsp taglib or not? because whle editing it says
> unknown tag
>
> Thanks
>
>
There is support for JSP taglib.
If you're seeing "unknown tag" errors, there might be a couple of reasons...
What type of project are you in? Are you in a web project?
How are you referencing your taglibs in your JSPs?
some examples:
<%// specified in web.xml file%>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%// relative to WebContent folder %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%// relative to your JSP file %>
<%@ taglib uri="./struts-bean.tld" prefix="bean" %>
-phil
|
|
|
| Re: jsp taglib [message #128936 is a reply to message #128923] |
Tue, 02 August 2005 10:40   |
|
Originally posted by: aurphir.aurphir.com
Well I am simply putting a test.tld in WEB-INF folder
and calling it in test.jsp like <%@ taglib prefix="test"
uri="WEB-INF/test.tld" %>
but I don't know what to write in web.xml
"phil avery" <pavery@us.ibm.com> wrote in message
news:dcnvqe$pse$1@news.eclipse.org...
> Vishal Rana wrote:
> > Hi all
> > Eclipse webtools support jsp taglib or not? because whle editing it says
> > unknown tag
> >
> > Thanks
> >
> >
>
> There is support for JSP taglib.
>
> If you're seeing "unknown tag" errors, there might be a couple of
reasons...
>
> What type of project are you in? Are you in a web project?
> How are you referencing your taglibs in your JSPs?
>
> some examples:
> <%// specified in web.xml file%>
> <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
>
> <%// relative to WebContent folder %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
>
> <%// relative to your JSP file %>
> <%@ taglib uri="./struts-bean.tld" prefix="bean" %>
>
> -phil
|
|
|
| Re: jsp taglib [message #129015 is a reply to message #128936] |
Tue, 02 August 2005 12:33   |
|
Originally posted by: pavery.us.ibm.com
Vishal Rana wrote:
> Well I am simply putting a test.tld in WEB-INF folder
> and calling it in test.jsp like <%@ taglib prefix="test"
> uri="WEB-INF/test.tld" %>
>
> but I don't know what to write in web.xml
>
Actually, you don't "have" to change the web.xml file.
<%@ taglib prefix="test" uri="/WEB-INF/test.tld" %>
should work in your case (assuming you're in a web project)
note the leading "/" in the uri, this "should" resolve to the WebContent
folder.
Hopefully this solves your problem.
> "phil avery" <pavery@us.ibm.com> wrote in message
> news:dcnvqe$pse$1@news.eclipse.org...
>
>>Vishal Rana wrote:
>>
>>>Hi all
>>>Eclipse webtools support jsp taglib or not? because whle editing it says
>>>unknown tag
>>>
>>>Thanks
>>>
>>>
>>
>>There is support for JSP taglib.
>>
>>If you're seeing "unknown tag" errors, there might be a couple of
>
> reasons...
>
>>What type of project are you in? Are you in a web project?
>>How are you referencing your taglibs in your JSPs?
>>
>>some examples:
>><%// specified in web.xml file%>
>><%@ taglib uri="/tags/struts-bean" prefix="bean" %>
>>
>><%// relative to WebContent folder %>
>><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
>>
>><%// relative to your JSP file %>
>><%@ taglib uri="./struts-bean.tld" prefix="bean" %>
>>
>>-phil
>
>
>
|
|
|
|
|
|
|
|
|
| Re: jsp taglib [message #129445 is a reply to message #129315] |
Wed, 03 August 2005 05:06  |
David Goodenough Messages: 155 Registered: July 2009 |
Senior Member |
|
|
Nitin Dahyabhai wrote:
> David Goodenough wrote:
>> Nitin Dahyabhai wrote:
>>>David Goodenough wrote:
>>>>Well that is interesting, as I am having a real problem with WTP and JSP
>>>>taglibs. I have my taglib tags in an included JSP file, and while WTP
>>>>does things like content assist in the file that is included (the one
>>>>with the taglibs) it does not work and I get lots of yellow underlines
>>>>about the
>>>><c: tags in the including file.
>>>>
>>>>Any thoughts?
>
> It works fine for me, so my only other guess is that there's
> something related to how you're including the other file. Does the
> file attribute of the include directive begin with a '/'?
>
I have tried both with and without, no change.
David
|
|
|
Powered by
FUDForum. Page generated in 0.01905 seconds