Taglibraries in JSP

Hi,
Please help me out! I've installed Jdk1.4, Tomcat4.0 and jsk2.0 in my system.
I want to use taglibraries in my application.
I have to import the following packages in my tag handler
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
does jsdk2.0 support it
Could anyone guide me regarding wat has to be done to iinclude these packages!
Thanx in advance.

have u included the servlet classes or the jar file to your classpath? if u have done that, thats enough to import the packages u have mentioned.
by the way, why r installing both jdk1.4 and jsdk2.0?!!
isn't one enough?!!
rgds
JP

Similar Messages

  • Org.apache.jasper.JasperException: File "NewTag" not found

    I've just started learning Taglibraries of JSP.
    when i try to execute the HelloTag.jsp I'm getting the following Exception....
    org.apache.jasper.JasperException: File "NewTag" not found
    I've included .tld file also ......
    <%@ taglib uri="NewTag" prefix="example"%>
    <html>
    <body>
    <h1>This is from Html</h1>
    <example:hello> </example:hello>
    </body>
    </html>Give me any suggestions to fix it..

    Yes, I have specified..
    <taglib>
            <taglib-uri>
                NewTag
            </taglib-uri>
            <taglib-location>
               /WEB-INF/tlds/MyTagLib.tld
            </taglib-location>
        </taglib>and in "MyTagLib.tld" i have included the following....
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.1</jsp-version>
    <short-name>example</short-name>
    <uri>NewTag</uri>
    <description>
      A simple tab library for the Hello tag
    </description>
    <tag>
    <name>hello</name>
    <tag-class>mytag.HelloTag</tag-class>
    <body-content>JSP</body-content>
    <description>Your Info</description>
    </tag>
    </taglib>

  • JSP-Editor not working properly

    Hi everybody,
    I am working with ISA5.0 and NWDI. I have checked out the Web-Module Project crm/isa/web/b2b.
    Now I would like to modify JSP-Files. Unfortonately the JSP-Editor is not working properly.
    The JSP-Editor cannot resolve references to Tag-Libraries like
    <%@ taglib uri="/isa" prefix="isa" %>
    Furthermore I get Errors with JSP-Includes
    <%@ include file="checksession.inc" %>
    The JSP-Editor does not show any other compile errors until the above mentioned errors are resolved.
    So the JSP-Editor does not help with compile errors.
    I have tried to use Lomboz instead, but due to the modularization in ISA5.0 and NWDI (ie the Taglibraries are defined in a separate module) I did not get it to work either.
    Does anybody have experience on how to get the JSP editor to work properly?
    Thanks for your help,
    Andreas

    Highlite the clip in the timeline, control click on it and choose "send to soundtrack as an audio file project" in the pop up menu. Don't do an "open with editor". This should work.
    If it doesn't and it's just the one clip, you could launch Soundtrack and then open that clip as an audio project . . . don't do a open with editor, just open it directly. Make your adjustment and save over writing the file with the new audio. You may want to copy the clip first as a backup. When you open your FCP project, you'll have to re-link the clip. Once you do it will show up with the new sound.

  • Error while accessing OIM UI - OracleJSP error: oracle.jsp.parse.JspParseException

    We have 3 nodes of OIM servers in our clustered production environment. While accessing OIM server on first node, following error is coming in the browser window -
    OracleJSP error: oracle.jsp.parse.JspParseException:
    /oracle/iam/ui/main/signin.jspx: Line # 5, &amp;amp;amp;lt;af:document id="d1" initialFocusId="pt1:_pt_it1" theme="light" title="#{uiBundle['IDENTITY_SELF_SERVICE_TITLE']}"&amp;amp;amp;gt;
    Error: Encountered deferred syntax #{ in template text. If intended as a literal, escape it or set directive deferredSyntaxAllowedAsLiteral
    The OIM UI is accessible on the other 2 nodes. There are no changes made in the environment. I have also attached the OIM diagnostic logs for your analysis.
    Please let us know the steps to resolve this issue in production environment.

    No..
    I have followed the way to add JSF libray,
    1)Right click the projet->project properties->javadoc->JSP taglibraries
    2)Inside the Distributed Library i have selected the JSTL core 1.2 and click on add.
    3) Then a new dialogue box of Choose tablibraries came.inside that only struts bean,struts Html etc are seeing.
    What i need to select?..Do i am following the right way?
    Please help..

  • Justifications needed for using tags in JSP, Please reply

    Hi forum
    My question is to those java people who have also done JSP. I m sound in java server side (servlet programming), now I have asked by my project manager to do server side programming in JSP using tagLibraries (as these are used by those ppl who didnt have much java knowledge). I have worked inserver side java, then my question is y should I start working on tags,
    On the other hand I can do all the work in java embedding in JSP (on some extent, seperated by diffrent helper/util classes to reduce the thickness of JSP page).
    so I want to ask u ppl that should a java programmer needs to use tag libraries to code a JSP page, however he can code it in java directly.
    I will feal great pleasure if u will write ur opinions and help me to ease my life.
    thanx in advance
    Best Regards
    Tahir

    You should use tag libraries whenever you can because:
    1) They increase code re-useability. You can insert the same tag in many pages using just a few lines to do complex tasks, as opposed to writing a lot of scriptlet code in each JSP.
    2) Enhance your ability to seperate logic from display. Everything in your tags is logic. Everything in your JSP is display - with the tags bridging the logic to the display.
    3) Make the JSPs cleaner and easier to maintain. They read easier with tags than with a lot of scriptlets. Non-java people can be used to update the look and feel of the web page, or to debug the HTML later on, relieving the Java programmers for the tag work, or other jobs more suited to them.
    4) Your boss said to do tags, so do tags.

  • How to render a JSP page dynamically with JSF controls ??

    Hi All,
    I am new to JAVA and JSF. I am recently started doing a web project. First we started using plain JSP and servlets and now we are going to use JSF.
    Now I am facing one problem with JSF. In a JSP page, I am having a combobox and a div and when i am selecting a value from the combo box, the div should be filled with some controls(like text boxes and comboboxes, buttons, etc) according to the selection.
    I have done this in plain JSP with the help of XML/XSLT, AJAX and JavaScript. i.e. XML contains the details of the controls and XSLT transformer will give me controls in a string format in the server, AJAX helps to retrieve it and I have to simply set the div.innerHTML property to that string. It is working fine.
    Now with JSF, I need to add JSF controls into my XML file, and it inturn returns the corresponding string having JSF controls easily, but i could not set it directly to div's innerHTML as the String contains JSF controls (Moreover, these JSF controls are linked with JAVA beans).
    Is there any provision to add JSF controls to a running page dynamically or is there any provision to convert the above mentioned string of JSF controls to normal HTML controls like the JSF taglibraries doing.??
    thanks in advance
    noushad
    Edited by: naash007 on Apr 20, 2009 4:17 AM
    Edited by: naash007 on Apr 20, 2009 5:45 AM

    That's simply asking for trouble. Do not suggest to use JSTL in combination with JSF.
    JSF already provides almost everything which the JSTL flow control tags provides in flavour of the 'rendered' attribute.

  • Selecting the Folders in JSP page??

    Hello
    Iam developing a e mail application.I have written some beans to render the directories and files of file system. Now I want to select a particular folder(directory) in the JSP page, so that I can rename it, delete it or move it to another place.How can I select a particular folder and how can I delegate this information to another page.
    I tried generating "radio" buttons for each folder.But since the contents of file system will be dynamically changing, I was not able to track the selected directory.
    Please help me in this regard.Is there any "Html-Only " solution to this.Or we have to use"JavaScript" to acieve this???Any taglibraries??Any JavaBeans??
    waiting for your generous replies.
    regards

    I think this you can do using JavaScript only. Because one of my friend involved development of document management. That also your sort of application. He use to told me that he used Javascript for creating directoried, swaping files, deleting files etc...
    Try in that way.. all the best

  • VM crashes with big class files generated of JSPs

              Hi,
              When calling certain JSP pages with WebLogic Server 5.1 (SP 6) the HotSpot Virtual Machine (JDK1.3) crashes with a core dump.
              Using WebLogic as the JSP engine produces of every JSP page one java file which
              is compiled with javac to one class file. Each generated java file consists of
              just one method: _jspService(...){...}. One method is allowed to be of 64 K
              (the dynamic part 32 K as maximum). As we include other JSP pages and
              components and use taglibraries, the WebLogic JSP engine generates a very big
              java file (more than 1 MB). Javac compiles this to a class file which only
              method exceeds the 64 K limit. As the javac compiler does not reject the class
              file with the to big method the virtual machine crashes.
              Running the same JSP page on Windows NT 4 with WebLogic Server 5.1 (Service Pack 6)
              and JDK 1.3 BUT using the java option -classic works.
              Unfortunately it seems that there is no -classic option for java on Solaris for JDK1.3.
              Using JDK1.2 (JDK_1.2.2_05a) on Solaris or the jikes compiler of Jakarta
              causes an exception instead of a core dump but still does not work.
              Using solaris jdk1.2.2_05a the same page request results in the following exception:
              Tue Nov 21 09:08:16 CET 2000:<I> <WebAppServletContext-maxblue> Generated java file:
              /opt/tadevw/maxblue/weblogic/maxblue_cluster/maxblue_server/public_html/WEB-INF/_tmp_war/jsp_servlet/_portfolio/_PortfolioMyportfolio.java
              Tue Nov 21 09:08:24 CET 2000:<E> <WebAppServletContext-maxblue> Servlet failed with Exception
              java.lang.VerifyError: (class: jsp_servlet/_portfolio/_PortfolioMyportfolio, method:
              _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Illegal target of jump or branch
              Is there a way that the JSP engine of WebLogic creates/generates
              more than one function? (Without reengineering of the source code?)
              Regards,
              Boris
              

    Thank you! I had no idea. But what is a FAT32 drive? Is it the work bench in the Mac, that is used for the transfering between the external hard drives? Is there any way around this then?
    I thought in these HD home movie days, that this was an easy thing dealt with everyday. I still need to understand what practical solutions I can find. The files are .mov - quicktime files.
    It couldn't be the case that files larger than 4BG should be locked in the hard drive forever?
    Sverre

  • Unable to add Custom JSP 1.2 Tag Library to Project

    I am trying to upgrade to a newer version of JDeveloper (10.1.3.0.4) but am having a problem with projects that use custom JSP tag libraries.
    After converting the project (.jpr) files to the new version, I double click and go to "JSP Tag Libraries." When I click on "Add" to add a new JSP Tag library, only JSP version 1.1 libraries are shown, I cannot choose any JSP 1.2 tag libraries.
    my TLD files are all JSP 1.2, so I am not quite sure why this isn't working in a newer JDeveloper after it has worked fine in the past. If I examine any JSP page that uses my taglibs, I see the following 2 kinds of error:
    the line:
    <%@ taglib uri="taglib.uri" prefix="mytag" %>
    is underlined in red and says "the tag library taglib.uri is referenced, but not installed"
    And for any lines that try to use the custom tag:
    <mytag:dosomething>
    there is a yellow/orange underline that says "no grammar available for namespace taglib.uri, contents of element dosomething cannot be validated"
    Note that I can add the taglib JAR file under Tools > Manage Libraries, but I cannot add the JSP tag library to my project. Is there some sort of compatibility issue when transferring project files from an old version of JDeveloper?
    Any help would be appreciated

    Yes any new project I create I can specify JSP 1.2 or 2.0 with the wizard and it works fine.
    But I don't want to re-create my entire project file again just to register my taglibs.
    Here's the JSP related section in web.xml:
    <!-- TagLibraries -->
    <taglib>
    <taglib-uri>taglib.uri</taglib-uri>
    <taglib-location>/WEB-INF/tlds/mytag.tld</taglib-location>
    </taglib>
    It's definately something in the project itself... but I am lost as to what it is.
    Edit: nvm I fixed it. It was the web.xml. I had to change the line:
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    into
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    and it worked. Thanks.
    Message was edited by:
    user523020

  • Passing vars...JSP resolves faster than javascript - is there a workaround?

    HI
    The variable/value ("fieldA") that I want to pass from "frame1.jsp" to "frame2.jsp is actually a variable defined javascript function "getTest()" in "frame1.jsp".
    I want to pass "fieldA" from "frame1.jsp" to "frame2.jsp"..
    "frame2" is initially "blank.html. In the "getTest()" function I use (parent.frames[2].location = "frame2.jsp";) to create frame2.jsp inside of "frame2"
    I generat a "post" request (from "frame1.jsp") assigning "fieldA" to a hidden form field ("fldA") in "frame2", and then display the value of "fldA" using "<%= request.getParameter("fldA") %>"...
    But the value of hidden form field - "fldA" - is initially "null" because when "frame2.jsp" page is creatd, the JSP scriplets resolve before the javascript "getData" function can resolve. (if I click to post frame2.jsp again, the value shows - but, that's just because the frame2.jsp now exists.)
    Is there a work around?.... Or, do I need to have "frame1.jsp" call a servlet to pass "fieldA" ????
    Appreciate ANY help on this!!!!
    (NOTE -- actually, my real world need will be to assign the value to a Custom Tag parameter, rather than simply display - and that is why I need to get this to work!)
    THE WORKING CODE IS BELOW. . . (AGAIN ANY HELP IS APPRECIATED!)
    *****frame0.html*****
    <%@ page language="java" import="java.io.*, java.util.*" errorPage="error.jsp" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE>frame0</TITLE>
    </HEAD>
    <FRAMESET FRAMEBORDER="2" ROWS="20%,80%">
    <FRAME SRC="frame0.html" NAME="frame0">
    <FRAMESET FRAMEBORDER="2" COLS="20%,80%">
    <FRAME SRC=frame1.jsp?fieldX=<%= session.getParameter("fieldX") %> NAME="frame1">
    <FRAME SRC=frame2.jsp?fieldX=<%= session.getParameter("fieldX") %> NAME="frame2">
    </FRAMESET>
    </FRAMESET>
    </HTML>
    *****frame1.jsp*****
    <%@ page language="java" import="java.io.*, java.util.*" errorPage="error.jsp" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
         <head><title>frame1</title>
         <link rel="stylesheet" type="text/css" href="./standard.css">
              <script LANGUAGE="JavaScript">
                   parent.frames[2].location = "blank.html";
                   function getTest()
                        var fieldA = "HO THERE!!!"
                        <%
                             session.putValue("fieldB", "HEY THERE!!!");
                        %>
                        parent.frames[2].location = "frame2.jsp";
                        parent.frames[2].getData(fieldA);
                        return;
    </script>
         </head>
         <body bgcolor="#FFFFFF" text="#000000">
              <p>
              <h2>
              In frame1.jsp, the value in fieldA is: <%= session.getAttribute("fieldA") %>
              <h2>
              In frame1.jsp, the value in fieldB is: <%= session.getAttribute("fieldB") %>
              <p>
              <form name="reportRange">
                   <center>
                        <fieldset style="padding: 0.5em" name="customer_box">
                        <table cellpadding="0" cellspacing="0" border="0">
                             <tr class="drophead">
                                  <td valign="top" height="0" ><span class="drophead">
                                       test submit
                                  </td>
                             </tr>
                        </table>
                        </fieldset>
                   </center>
              </form>
         </body>
    </html>
    *****frame2.html*****
    <%@ page language="java" import="java.io.*, java.util.*" errorPage="error.jsp" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
         <head>
         <title>frame2</title>
              <script LANGUAGE="JavaScript">
                   function getData(fieldA)
                   document.pageData.fldA.value = fieldA;
                        document.pageData.submit();
              </script>
         </head>
         <body>
              <p>
              <h2>
              In frame2.jsp, the value of fieldA: <%= request.getParameter("fldA") %>
         <h2>
              In frame2.jsp, the value of fieldB: <%= session.getValue("fieldB") %>
              <p>
              <div id="HiddenForm">
                   <form name="pageData" method="post" action="frame2.jsp" target="_self">
                        <input type="hidden" name="fldA" value="empty">
                   </form>
              </div>
         </body>
    </html>
    *****blank.html*****
    <html>
    <head>
    <title>blank page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" href="globalview.css" type="text/css">
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    </body>
    </html>
    *****error.jsp*****
    <%-- error.jsp --%>
    <%@ page language="java" isErrorPage="true"%>
    <html>
    <head>
         <title>error page</title>
    </head>
    <body>
    <h2>Error Encountered: </h2>
    <%= exception.toString() %><BR>
    <br>
    details...<%= exception.getMessage() %>
    </body>
    </html>

    So where to start...
    1) session does not have a method "getParameter()" (frame0.jsp) so I don't know how you can get this to work.
    2) When you call "javascript:getTest()" the scriptlet is not run again. It's serverside so it is execute on the server then any return data is placed where you have the scriptlet.
    3) The scriptlets in "frame0.html" will not work as the page is declared as html.
    4) Once again jsp scriptlets (including TagLibraries) are server side components. Any values passed to them should be via a request or session setting on the server side.
    For example:
    Say we have a tag "myWorkingTag" that outputs the value we assign to "valToUse" on the page.
    original jsp document (page.jsp):
    <%@ taglib uri="mytags" prefix="mine" %>
    <html>
    <body>
    <mine:myWorkingTag valToUse="xyz"/>
    </body>
    </html>
    The web browser view of page.jsp:
    <html>
    <body>
    xyz
    </body>
    </html>
    You can assign the "valToUse" attribute using <%="xyz"%> (or session.getAttribute() or request.getParameter()) on the server side but ultimately you need to send the value to the server and recompile the page.
    I've made some changes to your code (in bold) which is a minor fix but not a solution to your overall objective.
    ***** frame0.jsp *****
    <HTML>
    <HEAD>
    <TITLE>frame0</TITLE>
    </HEAD>
    <FRAMESET ROWS="20%,80%">
    <FRAME SRC="frame0.jsp" NAME="frame0">
    <FRAMESET COLS="20%,80%">
    <FRAME SRC=tFrame1.jsp?fieldX=<%= request.getParameter("fieldX") %> NAME="frame1">
    <FRAME SRC=tFrame2.jsp?fieldX=<%= request.getParameter("fieldX") %> NAME="frame2">
    </FRAMESET>
    </FRAMESET>
    </HTML>
    ***** frame1.jsp *****
    <%@ page language="java" import="java.io.*, java.util.*" errorPage="error.jsp" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head><title>frame1</title>
    <link rel="stylesheet" type="text/css" href="./standard.css">
    <script LANGUAGE="JavaScript">
    //parent.frames[2].location = "blank.html";
    function getTest()
    var fieldA = "HO THERE!!!"
    <%session.setAttribute("fieldB", "HEY THERE!!!");%>
    parent.frames[2].location = "frame2.jsp";
    parent.frames[2].getData(fieldA);
    return;
    </script>
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <p>
    <h2>
    In frame1.jsp, the value in fieldA is: <%= session.getAttribute("fieldA") %>
    <h2>
    In frame1.jsp, the value in fieldB is: <%= session.getAttribute("fieldB") %>
    <p>
    <form name="reportRange">
    <center>
    <fieldset style="padding: 0.5em" name="customer_box">
    <table cellpadding="0" cellspacing="0" border="0">
    <tr class="drophead">
    <td valign="top" height="0" ><span class="drophead">
    test submit
    </td>
    </tr>
    </table>
    </fieldset>
    </center>
    </form>
    </body>
    </html>
    *****frame2.jsp*****
    <%@ page language="java" import="java.io.*, java.util.*" errorPage="error.jsp" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>frame2</title>
    <script LANGUAGE="JavaScript">
    function getData(fieldA)
    document.pageData.fldA.value = fieldA;
    document.pageData.submit();
    </script>
    </head>
    <body>
    <%if(request.getParameter("fldA")!=null){
    //this section doesn't make sense, your using the same value twice!?!%>
    <p>
    <h2>
    In frame2.jsp, the value of fieldA: <%= request.getParameter("fldA")
    %>
    <h2>
    In frame2.jsp, the value of fieldB: <%= session.getAttribute("fieldB") %>
    <p>
    <%}%>
    <div id="HiddenForm">
    <form name="pageData" method="post" action="frame2.jsp" target="_self">
    <input type="hidden" name="fldA" value="empty">
    </form>
    </div>
    </body>
    </html>
    ***** blank.html (obsolete) *****
    ***** error.jsp unchanged *****
    What you should be aiming for is either:
    A) Using the above code, send all your required parameters to the form in frame2.jsp and use these parameters to configure the page. As you can see I added an "if(request.getParameter("fldA")!=null)" block to prevent any code from being execute until you send the data.
    B) In frame1.jsp, submit it to itself with all the parameters you need and add the objects to the session. When frame1.jsp returns the page to the browser, get it to call a javascript function (<body onload='...'>") to reload frame2.jsp and collect the objects/variables from the session.
    Just remember Javascript and Java in JSP's don't exist in the same "world" so to speak. They have to cross a bridge to communicate, the bridge being the action of the form.
    Cheers,
    Anthony

  • Tag Libraries in JSP

    Hi Guru's,
    Where can I get more information about these
    <i><TD class=<b>"prtlHeaderNotch"</b> i</i>.
    I know these are taglibraries which are referenced in jsp using this <%@ taglib uri="prt:taglib:tlhtmlb" prefix="hbj" %>.
    But I am looking for documentation on these. I have seen a link <a href="http://devnetmedia.sap.com/html/submitted_docs/htmlbManuals/HTMLB-shortreferenceindex.html">HTMLB Documentation</a> but this is not very helpful.
    Please let me know where can I get more information on this topic

    Hello Das,
    You cannot find any official documentation for "prtlHeaderNotch" class as this is CSS <b>designClass</b>
    for HTML.
    The only official doc I found is:
    http://help.sap.com/saphelp_nw04/helpdata/en/42/efe25b0d301aa2e10000000a422035/content.htm
    As specified in the above link you can specify an optional designClass while creating a custom Layout.
    The only way to know more about them, is by checking the HMTL source of your portal generated pages.
    Greetings,
    Praveen Gudapati

  • Which is more useful in include directive and taglibraries

              I am writing some static html tags inside a file.
              This files i need to call from jsp pages.
              one is i can call using include directive.
              other is writing taglibraries.
              Performance and optimization wise which is more appropriate?
              

    There is an include directive and a jsp:include tag. I would suggest that
              performance differences between these are nominal, with the directive being
              slightly faster due to its "inlining nature".
              Don't write your own tags to do this unless you have to. That would be
              silly.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Raaj" <[email protected]> wrote in message
              news:3af02b63$[email protected]..
              >
              > I am writing some static html tags inside a file.
              > This files i need to call from jsp pages.
              > one is i can call using include directive.
              > other is writing taglibraries.
              > Performance and optimization wise which is more appropriate?
              >
              

  • Unable to use jstl in jsp

    Already I read out the discussion about this topic. But still I face the same problem. I have already put the jstl and standard jar files in the WEB-INF\lib directory and modified the web.xml file adding the following lines.
    <taglib>
    <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
    <taglib-location>/WEB-INF/lib/fmt.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
    <taglib-location>/WEB-INF/lib/fmt-rt.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
    <taglib-location>/WEB-INF/lib/c.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri>
    <taglib-location>/WEB-INF/lib/c-rt.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
    <taglib-location>/WEB-INF/lib/sql.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://java.sun.com/jstl/sql-rt</taglib-uri>
    <taglib-location>/WEB-INF/lib/sql-rt.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
    <taglib-location>/WEB-INF/lib/x.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri>
    <taglib-location>/WEB-INF/lib/x-rt.tld</taglib-location>
    </taglib>
    In jsp page I have written the following lines.
    <%@taglib prefix="c" uri="http://java.sun.com/jstl/core-rt"%>
    <%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
    I have got the following error :
    org.apache.jasper.JasperException: File "/WEB-INF/lib/c-rt.tld" not found
    please help

    Just in case someone is still having problems, the better solution is not to have these entries in web.xml at all.
    To run JSTL, all you need are the two jar files (standard.jar, jstl.jar) in the WEB-INF/lib directory,
    - NO entries in web.xml
    - NO tld files
    - no problems!!!
    You then use the "standard" uri to import the taglibraries into your jsp pages.
    JSTL1.0 - <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
    JSTL1.1 - <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    Use JSTL1.0 in Servlet2.3/JSP1.2 containers (Tomcat 4)
    Use JSTL1.1 in anything more than that.

  • Taglibs+jsp+customtags

    hello how to use taglibs and custom tags in jsp..
    what is diffrence between these two..
    kevin

    Custom taglibs or just taglibs are Java classes written to to a specification that enable you as a Java developer to create new "tags" that a web designer can then use in a JSP file. The tag represents a simplified abstraction that's easy for the web designer to work and lessens the burden on them to know "programming", and at the same time it encourages Java developers to do what they do best which is write code.
    To use a tag library (taglib) in a JSP file, you must first declare it using the taglib syntax:
    <%@ taglib uri="http://jakarta.apache.org/taglibs/datetime-1.0" prefix="dt" %>
    where the uri is just a unique identifier for the tag library and prefix defines how tags in the page must appear.
    For example, using the declaration above and assuming there is a format tag class defined, I'd use it like:
    <dt:format>2/8/75 10:30:33</dt:format>
    when the JSP containing this is compiled and run, control will be handed over to the class that is defined to handled <format> tags.
    Check out http://java.sun.com/products/jsp/taglibraries.html
    for more information.

  • JSP tag libraries tutorials

    Does any of you people, knows the file made by Sun that its a PDF file, the title its JSP TAG TUTORIAL. Would you please send me the URL?

    http://java.sun.com/products/jsp/tutorial/TagLibraries.pdf

Maybe you are looking for