RE: [OT] TLD question

2003-08-14 Thread e


Anybody on the list migrate from struts 1.0 to struts 1.1 running on 
silverstream 3.7?
I've been trying to get it to work and I keep getting null pointer 
exceptions, and I'm
wondering if there is something random I'm missing.

Thanks.

-e

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [OT] TLD question

2003-08-14 Thread Kris Schneider
Even if it did, have you tried hitting http://java.sun.com/jstl/core? Don't
bother, there's nothing there ;-). It's just the official URI of the taglib and
is essentially only an identifier even though it looks like an external URL. So,
no, a request to the URI will not be made.

Basically, what happens is that the container will inspect the JAR files in
WEB-INF/lib to see if they contain any TLD files under their META-INF
directories. If they do, then a search is made for a  element within each
of the TLD files. For each  element found, an implicit taglib map entry is
created. As long as you use the same URI in your taglib directive that the
packaged taglib uses in its TLD file, you're good to go. BTW, this also works
for Struts tags...

Quoting Andy Kriger <[EMAIL PROTECTED]>:

> does putting an external URI on a page mean that webapp container is going
> to make a request to that URI when it loads the page?
> 
> -Original Message-
> From: Kris Schneider [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 15:14
> To: Struts Users Mailing List
> Subject: Re: [OT] TLD question
> 
> 
> You don't need the TLD files, they're already packaged in the JAR files for
> the
> tags. You also don't need to add taglib entries to your web.xml file. You
> *do*
> need taglib directive(s) in your JSP:
> 
> <%@ taglib prefix="c"   uri="http://java.sun.com/jstl/core"; %>
> <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>
> <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>
> <%@ taglib prefix="x"   uri="http://java.sun.com/jstl/xml"; %>
> 
> Quoting Andy Kriger <[EMAIL PROTECTED]>:
> 
> > I downloaded the JSTL from Sun. In the tld directory there are 2 TLDs for
> > each taglib.
> >
> > Example: c.tld and c-rt.tld
> >
> > Do I need to copy both of these to my WEB-INF dir?
> > Do I need to reference both of these in the JSP <[EMAIL PROTECTED]> directive?
> >
> > thx
> > andy
> 
> --
> Kris Schneider <mailto:[EMAIL PROTECTED]>
> D.O.Tech   <http://www.dotech.com/>

-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech   <http://www.dotech.com/>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] TLD question

2003-08-14 Thread Andy Kriger
does putting an external URI on a page mean that webapp container is going
to make a request to that URI when it loads the page?

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 15:14
To: Struts Users Mailing List
Subject: Re: [OT] TLD question


You don't need the TLD files, they're already packaged in the JAR files for
the
tags. You also don't need to add taglib entries to your web.xml file. You
*do*
need taglib directive(s) in your JSP:

<%@ taglib prefix="c"   uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>
<%@ taglib prefix="x"   uri="http://java.sun.com/jstl/xml"; %>

Quoting Andy Kriger <[EMAIL PROTECTED]>:

> I downloaded the JSTL from Sun. In the tld directory there are 2 TLDs for
> each taglib.
>
> Example: c.tld and c-rt.tld
>
> Do I need to copy both of these to my WEB-INF dir?
> Do I need to reference both of these in the JSP <[EMAIL PROTECTED]> directive?
>
> thx
> andy

--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech   <http://www.dotech.com/>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] TLD question

2003-08-14 Thread Alex Shneyderman

This is easy to check if you run your server localy. Unplug your machine
and look what happens. But the short answer is 'no' it does not. It goes
thru your TLD and finds that URL. 

> -Original Message-
> From: Andy Kriger [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 3:29 PM
> To: Struts Users Mailing List
> Subject: RE: [OT] TLD question
> 
> does putting an external URI on a page mean that webapp container is
going
> to make a request to that URI when it loads the page?
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] TLD question

2003-08-14 Thread Chen, Gin
URIs are just unique identifiers.. most times they don't even match to real
URLs (hence the http://tempuri standard). Therefore, the server will never
have a reason to look anywhere else but in your configs for it.
-Tim

-Original Message-
From: Andy Kriger [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 3:41 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: [OT] TLD question


So it looks in the WEB-INF dir first for TLDs then goes to that URI?

-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 15:34
To: 'Struts Users Mailing List'
Subject: RE: [OT] TLD question



This is easy to check if you run your server localy. Unplug your machine
and look what happens. But the short answer is 'no' it does not. It goes
thru your TLD and finds that URL. 

> -Original Message-
> From: Andy Kriger [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 3:29 PM
> To: Struts Users Mailing List
> Subject: RE: [OT] TLD question
> 
> does putting an external URI on a page mean that webapp container is
going
> to make a request to that URI when it loads the page?
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] TLD question

2003-08-14 Thread Kris Schneider
You don't need the TLD files, they're already packaged in the JAR files for the
tags. You also don't need to add taglib entries to your web.xml file. You *do*
need taglib directive(s) in your JSP:

<%@ taglib prefix="c"   uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>
<%@ taglib prefix="x"   uri="http://java.sun.com/jstl/xml"; %>

Quoting Andy Kriger <[EMAIL PROTECTED]>:

> I downloaded the JSTL from Sun. In the tld directory there are 2 TLDs for
> each taglib.
> 
> Example: c.tld and c-rt.tld
> 
> Do I need to copy both of these to my WEB-INF dir?
> Do I need to reference both of these in the JSP <[EMAIL PROTECTED]> directive?
> 
> thx
> andy

-- 
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] TLD question

2003-08-08 Thread Raible, Matt
It also looks in WEB-INF/lib/*.jar/META-INF/ for .tld files and simply
checks for the URI in .tld files.  It doesn't actually go to it.  For proof,
try the URI for Struts' HTML tag:

http://jakarta.apache.org/struts/tags-html


-Original Message-
From: Andy Kriger [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 1:41 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: [OT] TLD question


So it looks in the WEB-INF dir first for TLDs then goes to that URI?

-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 15:34
To: 'Struts Users Mailing List'
Subject: RE: [OT] TLD question



This is easy to check if you run your server localy. Unplug your machine
and look what happens. But the short answer is 'no' it does not. It goes
thru your TLD and finds that URL. 

> -Original Message-
> From: Andy Kriger [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 3:29 PM
> To: Struts Users Mailing List
> Subject: RE: [OT] TLD question
> 
> does putting an external URI on a page mean that webapp container is
going
> to make a request to that URI when it loads the page?
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] TLD question

2003-08-06 Thread Andy Kriger
So it looks in the WEB-INF dir first for TLDs then goes to that URI?

-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 15:34
To: 'Struts Users Mailing List'
Subject: RE: [OT] TLD question



This is easy to check if you run your server localy. Unplug your machine
and look what happens. But the short answer is 'no' it does not. It goes
thru your TLD and finds that URL. 

> -Original Message-
> From: Andy Kriger [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 3:29 PM
> To: Struts Users Mailing List
> Subject: RE: [OT] TLD question
> 
> does putting an external URI on a page mean that webapp container is
going
> to make a request to that URI when it loads the page?
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]