How to create our own taglib

hi,
i want to create my own simple JSTL.....
what i am doing is i hv created my own tld file say 'com-myTag.tld' in web-inf folder .
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>com</shortname>
<uri>WEB-INF/com-myTag.tld</uri>
<tag>
<name>xhtml</name>
<tagclass>com.myTag.Display</tagclass>
<bodycontent>empty</bodycontent>
</tag>
</taglib>And java class file say 'Display' in com.mytag package........
public class Display extends TagSupport
     public int doStartTag() throws JspException
          try
               pageContext.getOut().print("This is my first Tag Lib");
          catch(Exception e)
               System.out.println(" exception occur inside Display " + e.getMessage());
          return SKIP_BODY;
     public int doEndTag() throws JspException
          return EVAL_PAGE;
}But when i use this tag lib in my JSP it even not complied........
its giving compilation error ...............
JSPTranslate runtime: error classDefNotFound .......
can anybody help me
thanxs

Probably means you didn't add the jar containing TagSupport.class to you class path. This should be shipped with your application server / servlet container. In tomcat 5, the file is jsp-api.jar and can be found in common/lib
Also you may prefer to extend SimpleTagSupport. It's a bit more friendly.

Similar Messages

  • How to create our own fields in workarea in internal tables

    hai
    can u help me out in creating our own fields in workarea in an internal table (without header line..................)

    what kinda theory do u want???
    * Internal table with HEADER LINE
    DATA : BEGIN OF it_output occurs 0 with header line,
              c_icon  TYPE icon-id,
              bukrs   TYPE anla-bukrs,
              anln1   TYPE anla-anln1,
              anln2   TYPE anla-anln2,
              grufl   TYPE anla-grufl,
              grufl_n TYPE anla-grufl,
              leabg   TYPE sy-datum,
              leabg_n TYPE sy-datum,
              message TYPE bapiret2-message,
            END OF it_output.
    The above declaration is same as the below declaration in relation to the previous thread.
    * Data declarations for ty_output
    DATA : it_output TYPE STANDARD TABLE OF ty_output INITIAL SIZE 0, " Internal table declaration
           is_output TYPE ty_output." Work Area declaration
    Please reward for useful answers with appropriate points
    Regards
    Gopi
    "  Internal table without HEADER LINE
    DATA : BEGIN OF it_output occurs 0,
              c_icon  TYPE icon-id,
              bukrs   TYPE anla-bukrs,
              anln1   TYPE anla-anln1,
              anln2   TYPE anla-anln2,
              grufl   TYPE anla-grufl,
              grufl_n TYPE anla-grufl,
              leabg   TYPE sy-datum,
              leabg_n TYPE sy-datum,
              message TYPE bapiret2-message,
            END OF it_output.
    Message was edited by:
            Gopi Narendra

  • How to create our own XML Schema (.xsd) in Weblogic WorkShop

    Hi,
    I am new to Weblogic Workshop.I want to create one xml schema with custom elements.
    when I am creating a file xml schema(.xsd).The file contains default namespace and no child elements in it.I don't know how to add elements to that file.
    please tell me how to add parent elements and child elements and also our own xml namingspace.

    Hi Sivaram,
    Unfortunately, the 8.1 IDE did not have special tooling for schema generation.
    You will need to create it by hand or using an external tool
    If you are using an external tool to create the file within the schema project, you might want to disable the schema project auto build, which will be triggered every time a file save takes place
    cheers
    Raj

  • How to create our own web application on apache tomcat

    I am using Tomcat's default location to place my servlets.
    "E:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT"
    But day by day my classes are increasing. Now i am feeling to have my own location to place my servlets.
    Ex. "E:\myservlets"
    How to create and activate our own web application on apache tomcat except from tomcat's directory structure? Please guide me in this regard.
    Thanks in advance.

    hi,
    you can place your own application in any where
    then you to open under tomcat/conf/server.xml file
    add
    <Context path="/examples" docBase="e:/examples" debug="0"
             reloadable="true" ......./>

  • How to Create our own Custom Design for UI Elements in WebDynpro Java

    Hi Experts,
    As of now i am using the Standard design for the  UI Elements in the WebDynpro Java Applications.
    For example:
    header1,header2,monospace etc are available in design for UI Elements.
    Now i want to give my custom design to the UI Elements.
    So how can i create this. and Is it possible to create in NWDS.
    Thank You.
    DS

    Hi DS
    Eclipse Theme Editor for NetWeaver 2004
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a026b4ce-de48-2a10-7285-fb457ee6c7ed
    Eclipse Theme Editor for NetWeaver 7.0
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/136dd890-0201-0010-1b9d-bd09a0d3b1d8
    Hope this will be use ful for u
    Regards
    sriram

  • How to use Synchronized method when creating our own controls

    I don't know how to use the synchronized method when creating our own activex like controls to speed up the application.

    [url http://java.sun.com/docs/books/tutorial/essential/threads/multithreaded.html] here you go 

  • How to develop our own provisoning process

    Hi,
    Please tell me step by step how to develop our own provisioning process .

    try below
    1. create it resource
    2. create Resource Object
    3. create Process Form using Form designer
    4. Create adapters (You must have java code ready)
    5. create Process Definition
    6. add process task by associating adapter under process definition
    below link will help to do above
    http://docs.oracle.com/cd/E14571_01/doc.1111/e14309.pdf
    Its better Go with OOTB connector and see how OOTB works and that will give you the proper idea
    You can install any OOTB connector for this
    regards,
    Nishith Nayan
    Edited by: Nishith Nayan on Jan 30, 2012 10:08 PM

  • Can we create our own loops? Basic question.

    Hi,
    Can we create our own loops in Logic Pro. I see in all the tutorials. They are either taking input from external instruments OR use existing apple loops.
    I have tried FL studio demo to create our own loops. But there is no trial version for Logic Pro. Need your inputs before I purchase it.
    Thank you.
    Anji

    Yes you can!
    It is as simple as selecting a Region (optional trimming recommended) and choose the Export command.
    A Dialog window opens up that lets you enter the metadata
    Apple had its separate "Apple Loop Utility" app (now only available in the developer package) that allowed you to create loops in a standalone app. The built-in loop capability in Logic uses part of that engine.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • My wife and I have shared one iTunes account for 6  years.  We want to create our own Apple IDs, so when we sync to our new iMac we won't see each others contacts, photos, calendar, music, etc.  Is there a way to move music/apps from one ID to a new ID?

    My wife and I have shared one iTunes account for 6  years.  We want to create our own Apple IDs, so when we sync to our new iMac we won't see each others contacts, photos, calendar, music, etc.  Is there a way to move music/apps from one ID to a new ID?

    JoeyV325 wrote:
    Is there a way to move music/apps from one ID to a new ID?
    No.
    One of you create a new AppleID and one use the existing AppleID.
    But you can still use the items in each iTunes library.
    Create separate computer logins for each of you.
    This will give you each your own data. Contacts, calendars, photos, etc. (and your own iTunes library).

  • How to add our own applications to Cisco Connect Cloud?

    How to add our own applications to Cisco Connect Cloud?

    You might find this interesting.
    http://newsroom.cisco.com/press-release-content?type=webcontent&articleId=926074
    Interested developers are invited to visit the Linksys Developer Community at http://developer.cisco.com/web/ldc to register and develop apps for Linksys Smart Wi-Fi Routers. Cisco empowers developers with technical, marketing, and sales resources to help support every phase of their developmental and business cycles.

  • We have three Apple devices. They are all have the same name and are on the same apple ID. We would like to back up our Notes to the cloud. If we each create our own Apple email address will they create two separate Notes flies on the cloud or merge?

    We have three Apple devices 2 IPhone 4's and one Ipad2. Only the Ipad2 is running the latest OS. They are all have the same name and are on the same apple ID. We would like to back up our Notes to the cloud. If we each create our own Apple email address (we don't have one yet) will they create two separate Notes flies on the Cloud or merge them?

    Welcome to the Apple Community.
    Separate Apple ID's will result in separate notes. However when you first start with separate ID's unless one of you erases the notes you have, you will both start off with the same set of notes, but from then onwards each set won't sync with each other.

  • How to remove the default theme from "Revolution theme" to create our own movies and put our own background..

    how to remove the default theme from 'Revolution theme" to create movies of our own and a background..
    how to create chapter maker for movies...

    Are you using iDVD? Or iMovie?
    If iDVD, post in -> https://discussions.apple.com/community/ilife/idvd.
    If iMovie, post in -> https://discussions.apple.com/community/ilife/imovie.
    Good luck,
    Clinton

  • How to create my own Apple ID and delete the old Apple ID .

    Hello please can anyone help me I recently brought the imac 27 is x maverick desktop. I had brought this imac from someone who no longer wanted it. My problem is I have managed to log on with my Apple ID . But when I go into my purchases of my apps it's saying its empty and I don't know how I create the imac to my Apple ID . I do have the old information of the person I brought it off the id and password but I don't know how to delete the old and create my own please if anyone can help and advice I would be really grateful thanks for your time and advice.

    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.
    From Here   http://support.apple.com/kb/HE37

  • Creating our own Thread Pool

    We have an application running on WLS6.1 with WLI2.1. We're using WLI2.1 to define
    workflows; we interface to the workflow definitions with custom EJB/JSP code.
    Without getting too detailed, we would like to spawn a thread when a user submits
    some of our forms. From the point of submittal onwards, there is nothing in the
    execution of the workflow that requires user intervention.
    We initially tackled this problem with the use of internal JMS messages in the
    workflow. However, the way our workflow is structured we would really like to
    manually spawn threads instead of embedding JMS messages in the flow. (For instance,
    we may want to obtain multiple workflow instances and execute them all at once
    with the same action).
    Is there any downside to us developing our own ThreadPool? Is there a pre-canned
    Thread Pool service that is available as part of the WLS package?
    I've already got a ThreadPool implementation working and it seems to be doing
    the right thing. There's just some concern in our company that we should be using
    a WLS service instead of rolling our own.
    Details of our threadpool:
    - it's a long-lived Singleton that is instantated at application startup.
    - A predefined number of Worker threads are created, and they can be set with
    a Runnable object to execute.
    - I have synchronized LinkedList containers for idleThreads, busyThreads, and
    tasksToRun (Runnables that have not yet been assigned to a thread).
    Thanks!
    Ron

    Hi,
    You have to configure these things.
    Goto System Admin>System Configuration>Universal Worklist & Workflow-->WorkFlow, it shows subareas like
    Engine
    Mail
    Scheduler
    User Interface
    Workflow Notification Settings
    To follow this link
    http://help.sap.com/saphelp_nw04/helpdata/en/57/5b781705184211a4ba344387a992e5/frameset.htm
    Regards,
    Senthil K.

  • How to find our own postings

    Hi
    Can any one let me know how to find your own postings in this forum, before the updates on this forum
    it was esy by giving our handle name in search options we can find it, but now am facing problems to find it.
    can anyone let me know about it.
    thanks in advance. :-)

    There may be (and hopefully is) an easier way, but this seems to work:
    1. In the URL of the page that's returned by clicking <b>Search for all user messages</b>, find your user ID. The URL should look something like this:
    http://forums.oracle.com/forums/search.jspa?userID=<your user ID>
    2. Add the "userID=<your user ID>" as a parameter in the URL of any search results page to filter the results for your own postings only. For example, to see all your postings, the following URL seems to work:
    http://forums.oracle.com/forums/search.jspa?userID=<your user ID>&dateRange=all
    Hope this helps.

Maybe you are looking for

  • Home sharing works on primary wifi but not via Access Point

    I have two wifi routers set up at either ends of the house.  The primary router (Netgear DGN2000) is connected to an Access Point (Edimax EW-7416APN) via a D-link Powerline ethernet connection.  Both are configured with identical SSID names/passwords

  • Problems with my power adapter!!!!

    I just got a new adapter for my Powerbook G4 the other day because the wiring at the plug on my old one wore out. My problem is that the new adapter, when plugged into my computer, sometimes just stops working like it has been unplugged or something.

  • Static IP do not work on iPad 3G Personal Hotspot

    Hi! I have an iPad 3G 3rd generation with a 3G internet subscription and a static IP. I need the static IP on my Mac when I'm connecting it at the Personal Hotspot on the iPad. I need it to access particular services where the access is based on IP.

  • Why won't my data turn back on

    I went on a trip out of the country for a week and kept my phone in airplane mode the entire time. Now that I am back in the country it only says searching andy cellular won't connect. Please help

  • Update photoshop elements 13 and premiere elements 13

    I bought and paid regularly photoshop and premiere (version 13 elements). I installed on a Windows PC 8.1. When I try to update the Adobe tells me that the product is not genuine and stops updating. Keep in mind that I am dumb. So every conversation