You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by David Liles <da...@dynamichostings.com> on 2003/10/20 17:39:46 UTC

is this link correct?

I am trying to use jstl and when I include the following line in my JSP I get an error indicating it can not find the uri....
 
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

Is this link even valid?


RE: is this link correct?

Posted by Wallace <wa...@rogers.com>.
I've got almost the same problem, my tomcat is 4.0.3 so therefore it
would be for JSP 1.2, but my script uses ${param.var} for EL and I use
<c:choose><c:when test="${param.var eq 'whatever'}">do
whatever</c:when></c:choose>

I want to use ${param.var} as the way I would for core_rt in tomcat 5. I
tested in tomcat 5, but the server I am uploading only uses tomcat
4.0.3, would you guys know a work around for this?


-----Original Message-----
From: Mark R. Diggory [mailto:mdiggory@latte.harvard.edu] 
Sent: Monday, October 20, 2003 12:40 PM
To: Tag Libraries Users List
Subject: Re: is this link correct?

Doh, My bad, your correct.

Kris Schneider wrote:

> You shouldn't need anything in web.xml
> 
> JSP 1.2 / JSTL 1.0:
> http://java.sun.com/jstl/core
> 
> JSP 2.0 / JSTL 1.1:
> http://java.sun.com/jsp/jstl/core
> 
> And make sure the necessary JAR files are in WEB-INF/lib...
> 
> Quoting "Mark R. Diggory" <md...@latte.harvard.edu>:
> 
> 
>>Are you adding the taglib mapping to your web.xml?
>>
>>for example
>>
>>   <taglib>
>>     <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
>>     <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
>>   </taglib>
>>
>>
>>David Liles wrote:
>>
>>
>>>I am trying to use jstl and when I include the following line in my
JSP I
>>
>>get an error indicating it can not find the uri....
>>
>>> 
>>><%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
>>>
>>>Is this link even valid?
>>
>>-- 
>>Mark Diggory
>>Software Developer
>>Harvard MIT Data Center
>>http://www.hmdc.harvard.edu
> 
> 

-- 
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: is this link correct?

Posted by "Mark R. Diggory" <md...@latte.harvard.edu>.
Doh, My bad, your correct.

Kris Schneider wrote:

> You shouldn't need anything in web.xml
> 
> JSP 1.2 / JSTL 1.0:
> http://java.sun.com/jstl/core
> 
> JSP 2.0 / JSTL 1.1:
> http://java.sun.com/jsp/jstl/core
> 
> And make sure the necessary JAR files are in WEB-INF/lib...
> 
> Quoting "Mark R. Diggory" <md...@latte.harvard.edu>:
> 
> 
>>Are you adding the taglib mapping to your web.xml?
>>
>>for example
>>
>>   <taglib>
>>     <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
>>     <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
>>   </taglib>
>>
>>
>>David Liles wrote:
>>
>>
>>>I am trying to use jstl and when I include the following line in my JSP I
>>
>>get an error indicating it can not find the uri....
>>
>>> 
>>><%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
>>>
>>>Is this link even valid?
>>
>>-- 
>>Mark Diggory
>>Software Developer
>>Harvard MIT Data Center
>>http://www.hmdc.harvard.edu
> 
> 

-- 
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: is this link correct?

Posted by Kris Schneider <kr...@dotech.com>.
You shouldn't need anything in web.xml

JSP 1.2 / JSTL 1.0:
http://java.sun.com/jstl/core

JSP 2.0 / JSTL 1.1:
http://java.sun.com/jsp/jstl/core

And make sure the necessary JAR files are in WEB-INF/lib...

Quoting "Mark R. Diggory" <md...@latte.harvard.edu>:

> Are you adding the taglib mapping to your web.xml?
> 
> for example
> 
>    <taglib>
>      <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
>      <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
>    </taglib>
> 
> 
> David Liles wrote:
> 
> > I am trying to use jstl and when I include the following line in my JSP I
> get an error indicating it can not find the uri....
> >  
> > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
> > 
> > Is this link even valid?
> 
> -- 
> Mark Diggory
> Software Developer
> Harvard MIT Data Center
> http://www.hmdc.harvard.edu

-- 
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: is this link correct?

Posted by "Mark R. Diggory" <md...@latte.harvard.edu>.
Are you adding the taglib mapping to your web.xml?

for example

   <taglib>
     <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
     <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
   </taglib>


David Liles wrote:

> I am trying to use jstl and when I include the following line in my JSP I get an error indicating it can not find the uri....
>  
> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
> 
> Is this link even valid?
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org

-- 
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: is this link correct?

Posted by Felipe Leme <ja...@felipeal.net>.
On Monday 20 October 2003 01:39 pm, David Liles wrote:
> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
>
> Is this link even valid?

The link is correct and valid, but you need to map the URI to a .tld file:

- if you are using a JSP 1.2 container, that mapping is done automatically 
when the container reads the standard.jar from WEB-INF/lib
- if you are using a JSP 1.1 container, that mapping must be explicitly 
defined at WEB-INF/web.xml. But that wouldn't matter, as JSTL requires a JSP 
1.2 or 2.0 container. 

Also, if you're using JSP 2.0 and JSTL 1.1, the URIs have been changed.

So, which web container are you using?

Felipe


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org