RE: [S1] The proper way to define taglibs in a jsp file

2007-04-23 Thread Crawford, Preston
This is really strange. So it works if I reference the taglibs as defined in the web.xml (i.e. define /bean in the web.xml and then declare the taglib in the JSP referring to that uri). So now this works... %@ taglib uri=/bean prefix=bean % But this doesn't work... %@ taglib

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-23 Thread Crawford, Preston
Nevermind. I figured it out. It's a WAS problem. You have to use the full URI in the Web.xml if you want to use it on the JSP page in the taglib declaration. So like this. taglib taglib-urihttp://struts.apache.org/tags-bean/taglib-uri

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-20 Thread Dave Newton
--- Crawford, Preston wrote: I did. It's expecting the one you listed. I just get a Not Found error if I go there. Why are you trying to go there? It's not a URL. You're saying your server/IDE is trying to hit that address? Something is set up funny if it is. d.

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-20 Thread Crawford, Preston
Just thought I'd see if I got any kind of response since earlier the server itself through a URI couldn't be reached exception, or something to that effect. I'm thinking this problem may be different, though, as it can't even locate local TLDs currently. Preston -Original Message-

Re: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Paul Benedict
On 4/19/07, Crawford, Preston [EMAIL PROTECTED] wrote: So I'm helping my company clean up some JSP files, things like that and I'm seeing declarations like this. %@ taglib uri=/bean prefix=bean % %@ taglib uri=/html prefix=html % The ability to automatically find TLD files is a feature of

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
Yeah, actually I was the guy (way back when) who helped define those TLDs in the web.xml. Now I'm back on contract and want to clean up my work. I would like to just refer to the dtd in the URI and forgo having the TLDs located in the build process. We use WebSphere 6.1, so this should be fine.

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
Oh, I just remembered something. There might be overhead/risk to jsps hitting the dtd on the Internet vs. the local tld, no? Preston -Original Message- From: Crawford, Preston [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 3:27 PM To: 'Struts Users Mailing List' Subject: RE:

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Dave Newton
--- Crawford, Preston wrote: Yeah, actually I was the guy (way back when) who helped define those TLDs in the web.xml. Now I'm back on contract and want to clean up my work. That'll teach ya' ;) I would like to just refer to the dtd in the URI and forgo having the TLDs located in the

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Dave Newton
--- Crawford, Preston wrote: Oh, I just remembered something. There might be overhead/risk to jsps hitting the dtd on the Internet vs. the local tld, no? I'm not sure that that's what the URI really does; they *look* like URLs but I think they're just look-up values to find the corresponding

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
That's my impression, the part about not being able to find it locally. Part of what I was thinking of doing is not having the tld's locally available. But it occurs to me that then it might spin out to the Interwebs whenever it compiles a JSP page. Trying to find a reference on this to get a

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
One last question. Do I use strut-el.jar or struts.jar? Preston CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
Nevermind, I think the answer is both if I remember correctly. Preston CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
Although I can't remember if I need struts-el if all I want is jstl + the new version of Struts. Dang, I've had my head in Struts 2, Spring, JSF for too long. Preston -Original Message- From: Crawford, Preston [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 4:26 PM To: 'Struts

Re: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Niall Pemberton
Dave is correct since Servlet 2.3/JSP 1.2 TLD files no longer have to be specified in the web.xml - they can be auto-discovered if they're in the web applications resource path which includes the META-INF section of jar files - Struts ships the TLDs in its jars so you don't have to specify this.

Re: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Niall Pemberton
Struts EL is for Servlet 2.3 containers only (provided to give people the opportunity to start using EL before it was included in the standard for containers) - you can't use it in Servlet 2.2 and you don't need it in Servlet 2.4 (its part of Servlet 2.4/JSP 2.0 Spec). Niall On 4/20/07,

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
Ah, thank you very much. I have never had to use those. I went straight from Struts 1.1 to other frameworks, now I'm back on Struts, so I must have missed that phase or else wasn't doing configuration at the time. I suppose that means I don't need anything in the struts-el directory, then.

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
Wow. Except this URI can't be found. Umm Hmmm.. Preston -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 3:42 PM To: Struts Users Mailing List Subject: RE: [S1] The proper way to define taglibs in a jsp file --- Crawford, Preston wrote:

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Dave Newton
--- Crawford, Preston wrote: Wow. Except this URI can't be found. Umm Hmmm.. You can check what URI it's expecting by looking in the TLD file(s). d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Crawford, Preston
I did. It's expecting the one you listed. I just get a Not Found error if I go there. I tried declaring it inside the web.xml instead (newly converted to 2.4) and that doesn't work either. Preston CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Karr, David
You can search through all your documentation, but there's a more direct (some might say indirect, but whatever) way. Open up the jar file that the taglib refers to, using winzip, the Eclipse Zip Editor, or whatever. Select the TLD file. Open it into a plain text editor. Find the uri element.

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-19 Thread Karr, David
As Dave Newton said, these are URIs, not URLs. A URI is just an identifier, nothing more. In any case, all it does is match that URI to the URI in a TLD in one of the jar files in the classpath. It doesn't need to go to the internet for any of this. -Original Message- From: Crawford,