Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: useless packaging of authz.tld?

  1. #11
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Isn't this URL simply related to the information in the authz.tld file?
    Code:
    	<tlib-version>1.0</tlib-version>
    	<jsp-version>1.2</jsp-version>
    	<short-name>authz</short-name>
    	<uri>http://acegisecurity.org/authz</uri>
    	<description>
            Acegi Security Systems Authorization Tag Library
    		$Id: authz.tld 1754 2006-11-17 02:01:21 +0000 (Fri, 17 Nov 2006) benalex $
    	</description>

  2. #12
    Join Date
    Feb 2007
    Posts
    102

    Default

    Karl, try to use auth tag in your jsp page and then close your internet connection.
    Does it work?
    Mine don't.

    What am I missing?


  3. #13
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Ok, I'll give it a try when I get home from work.

  4. #14
    Join Date
    May 2007
    Posts
    1

    Default

    Quote Originally Posted by rhodebump View Post
    I am confused because the authz.tld packaged inside the jar is unusable. To use it, the developer has to extract the tld file and put it in their war file.

    From my understanding, there is absolutely no way for an application to utilize this tld file (inside a jar). If one wants to load a tld file from a jar, the tld needs to be located in the jar as "META-INF/taglib.tld"

    Then this would work:
    <%@ taglib uri='/WEB-INF/lib/acegi-security-1.0.3.jar' prefix='authz' %>

    I am going to extract the tld file and add this to my jsp:
    <%@ taglib uri='/WEB-INF/tlds/authz.tld' prefix='authz' %>

    If I am incorrect, please straighten me out. If I am correct, how about renaming authz.tld to taglib.tld?

    BTW, using tomcat 5.0.28

    Phillip
    The jsf-1_1_01 jar file has both html_basic.tld and jsf_core.tld in the jar file at /meta-inf. But I'm reading confusing JSP specs from sun that say a taglib in a jar file must be stored at meta-inf/taglib.tld.

    If JSF jar files stored to tld's in the same jar, how can you define a prefix for each tld, if you use the jar file syntax for the URI. There must be some way to reference the tld file name in the jar when you use the jar reference. Is there some way to specify files in a jar with a special syntax?

    Also, you might find this of interest although it changed nothing for me when I located tomcat to a directory with no spaces in the path:

    http://issues.apache.org/bugzilla/show_bug.cgi?id=42202

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •