facebook

tld/jstl question [Closed]

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #204181 Reply

    eclipsetrial
    Member

    Hi,

    I was trying to find help about jstl/tld, but all I saw were release notes saying it is supported. So can I just use it? I was merely typing in:
    <%@ taglib uri=”http://java.sun.com/jstl/core&#8221; prefix=”c” %> and got the following error message:
    Unexpected Unmapped URI: http://java.sun.com/jstl/core

    I assume part of my problem is missing the TLD. But where is it located and how do I get it in place?

    Any help appreciated. Thanks Ron

    Platform: Windows 2000
    eclipse: 2.1.2
    myeclipse: 2.6.200

    #204199

    doyle
    Member

    Dude you can use it. I am. You have to put the tlds folder containing your tldc.tld in the WEB-INF also add this to your web.xml file

    <taglib>
    <taglib-uri>/tldc</taglib-uri>
    <taglib-location>/WEB-INF/tlds/tldc.tld</taglib-location>
    </taglib>

    Make sure you have all your proper jars or libs or vars whatever the kids are calling them these days.

    #204201

    Riyad Kalla
    Member

    Yes doyle is absolutely right. You can also just drop the jstl.jar and standard.jar into your WEB-INF/lib (don’t need TLDs, or web.xml changes) and you can use the libs no problem. However, when you go to RUN the project, in order for the expression language to be evaluated, you need to change your web.xml header from the 2.3 version of the servlet spec DTD to the 2.4 schema. Please refer to sun docs (or the JSTL docs) on how to do this; and note that this is only if you want to be using the expression language.

    #204206

    eclipsetrial
    Member

    thanks. part of my confusion was where the tld’s, standard.jar and jstl.jar resided (i thought they might be shipped with eclipse).

    thanks again for the speedy reply. Ron

    #204210

    Riyad Kalla
    Member

    No problem, I’m glad it helped.

    Doyle thanks for the speedy help, we appreciate it!

    #205877

    gmichel
    Member

    Just wondering, but is there a way to make a default JSP 2.0 template, so I don’t have to go fetch the jar files jstl.jar and standard.jar?

    #205880

    Riyad Kalla
    Member

    We don’t currenlty support users creating their own templates, although its on our TODO list. You can EDIT our existing templates to better meet your needs, see this thread: https://www.genuitec.com/forums/topic/customization-of-jsp-templates/&highlight=template

    #205902

    gmichel
    Member

    Thanks for the prompt reply.

    I read that thread but it is hanging.

    “I’ll ask Michael to weigh in on this, as I am not sure. ”

    Also it does not quite clarify how to automate the adding of the jar files, although it does shed
    some light on how to make the default jsp pages better suited to my needs.

    I would think that JSP 2.0 support would/should be more seemless in MyEclipse.

    #205905

    Riyad Kalla
    Member

    JSP 2.0 support will be forth comming in MyEclipse 2.8.

    Also I’ve ask M/S to comment on that thread to give you more info, sorry for the delay.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: tld/jstl question [Closed]

You must be logged in to post in the forum log in