Please help me to test my first taglib

Hi evry body, i am new in jsp, i try to test my first custom tag. I make a file named HelloTag.java that i compile it and put it in \MyWebApp\WEB-INF\lib. Then i make a taglib.tld file that a put it in MyWebApp\WEB-INF. And finally i add these lines to web.xml:
<taglib>
<taglib-uri>/tlt</taglib-uri>
<taglib-location>/WEB-INF/taglib.tld</taglib-location>
</taglib>
I forget to tell you that i make a file named jsp1.jsp that i put it in /MyWebApp.
When i startup tomcat and try to call jsp1.jsp from a web browser i get the folowwing exception :
An error occurred at line: 9 in the jsp file: /jsp1.jsp
Generated servlet error:
D:\Projet_DE_Test\Tomcat\work\MyWebApp\jsp1$jsp.java:59: Class org.apache.jsp.HelloTag not found.
HelloTag jspxth_tlt_message_0 = new HelloTag();
^
I don't know why.
Here is my code:
/*****************************************The tag handler********************************************/
import javax.servlet.jsp.tagext.TagSupport;
import java.io.*;
public class HelloTag extends TagSupport {
private String message = "Assalamo Alaykom";
public HelloTag() {
public void setMessage(String message)
this.message = message;
public int doStartTag(){
try
pageContext.getOut().println(message);
catch(IOException e)
return SKIP_BODY;
/**************************************************the tld*************************************/
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!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></shortname>
<tag>
<name>message</name>
<tagclass>HelloTag</tagclass>
<bodycontent>empty</bodycontent>
</tag>
</taglib>
/***************************************jsp1*********************************************/
<%@ taglib uri="/tlt" prefix="tlt" %>
<html>
<head>
<title>
jsp1
</title>
</head>
<body bgcolor="#ffffff">
<tlt:message />
</body>
</html>
/****************************************web.xml***************************************************/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<taglib>
<taglib-uri>/tlt</taglib-uri>
<taglib-location>/WEB-INF/taglib.tld</taglib-location>
</taglib>
</web-app>

Try putting your tagclass into a package:
The tag handler would become...
package tags
import javax.servlet.jsp.tagext.TagSupport;
import java.io.*;
public class HelloTag extends TagSupport {
// and in your tld you would make it this:
<tag>
<name>message</name>
<tagclass>tags.HelloTag</tagclass>
<bodycontent>empty</bodycontent>
</tag>When working with Java/Tomcat you should always have your java classes in a package.
Hope this helps,
evnafets

Similar Messages

  • SOMEONE PLEASE HELP ME THIS IS MY FIRST TIME DOING THIS MY IPOD IS DISABLED AND IT SAID CONNECT TO I TUNES I DID THAT AND ITS NOT WORKING HELP ME PLEASE AND THANK U

    SOMEONE PLEASE HELP ME THIS IS MY FIRST TIME DOING THIS MY IPOD IS DISABLED AND IT SAID CONNECT TO I TUNES I DID THAT AND ITS NOT WORKING HELP ME PLEASE AND THANK U

    Please turn off your caps lock.
    See http://support.apple.com/kb/HT1212.

  • HT4623 PLEASE HELP! I have the first generation ipod touch and cannot update the software.

    I have the first generation ipod touch with the ios 3.01. I cannot find a way to update the software because I can no longer download apps or really do anything with it. Please help.

    The 1G iPod can only go as high as 3.1.3

  • Someone please help me regarding synching for first time but with lots of apps on the iPad

    Hi, when I bought my iPad2 it was booted in the store, and since then I never connected to a computer, how do I now sync to my PC without losing all the apps I paid for? Please help, thanks.

    Authorize your computer for iTunes content - launch iTunes and go to Store>Authorize this computer. Make sure that you are signed into your iTunes account on the computer as well. If you are already authorized and have been using iTunes on your PC you are good to go.
    I copied this from another discussion. If you follow these steps you should be fine - for all of your purchased content.
    https://discussions.apple.com/message/11527071#11527071
    1) Without connecting your iPad to your laptop, start iTunes. Click on Edit. Click on Preferences. Click on Devices. Check the box next to "Prevent your iPod etc. from automatically syncing." Click OK.
    2) Now connect your iPad to your laptop and start iTunes.
    3) When iTunes starts, right click on your iPad under Devices in the left column. Select Transfer purchases etc.
    4) After it finishes transferring all your apps to your new laptop, right click on your iPad and select Backup your iPad.
    5) After it finishes backing up your iPad, right click on your iPad and select Restore etc.
    6) After it finishes restoring, left click on your iPad , then click on the Apps tab on top, and check the box next to Sync Apps, then click on Apply below.
    If everything on your iPad looks good after the sync, go back and click on Edit / Preferences / Devices and UN-check the box next to Prevent your iPod etc. The only other thing you may want to check is if your contacts, bookmarks, etc. are syncing correctly now. If not, go to the Info tab after connecting and make sure you indicate which features you want to sync with what sources.
    That should do it.

  • Some body please help about the Inventory FIFO (FIRST IN FISRT OUT ) query is very slow

    I have table ''tran_stock''  to store a transaction (IN-OUT) of the stock. 
    The problem is when the  transaction rows are more than 50000 the query to get the balance
    stock (Total 'IN' - Total'Out' by FIFO) is very slow . Somebody please suggest me to do this.
    This is my query
    ;WITH OrderedIn as (
        select *,ROW_NUMBER() OVER (PARTITION BY Stock_ID ORDER BY TranDate) as rn
        from Tran_Stock
        where TxnType = 'IN'  
    ), RunningTotals as (
        select  Stock_ID ,Qty,Price,Qty as Total,Cast(0 as decimal(10,2)) as PrevTotal ,  trandate , rn  from OrderedIn where rn = 1
        union all
        select  rt.Stock_ID,oi.Qty,oi.Price,Cast(rt.Total + oi.Qty as decimal(10,2)),Cast(rt.Total as decimal(10,2)) , oi.TranDate ,oi.rn 
        from
            RunningTotals rt
                inner join
            OrderedIn oi
                on
                    rt.Stock_ID = oi.Stock_ID and
                    rt.rn = oi.rn - 1
    , TotalOut as (
    select Stock_ID ,SUM(Qty) as Qty from Tran_Stock where TxnType='OUT'   group by Stock_ID
    ) ,  GrandTotal as 
    select
         rt.Stock_ID , rt.QTY AS original ,SUM(CASE WHEN PrevTotal > isNULL(out.Qty, 0) THEN rt.Qty ELSE rt.Total - isNULL(out.Qty, 0) END) AS QTY , Price , SUM(CASE WHEN PrevTotal > isNULL(out.Qty, 0) THEN rt.Qty ELSE rt.Total - isNULL(out.Qty,
    0) END * Price) AS Ending , rt.TranDate
    from
        RunningTotals rt
            LEFT join
        TotalOut out
            on
                rt.Stock_ID = out.Stock_ID
    where rt.Total > isNull(out.Qty , 0)
    group by rt.Stock_ID , Price , rt.TranDate  , rt.QTY
    ) SELECT * FROM  GrandTotal  order by TranDate  option (maxrecursion 0)
    AND  this is my Table with some example data
    USE [TestInventory]
    GO
    /****** Object:  Table [dbo].[Tran_Stock]    Script Date: 12/15/2014 3:55:56 AM ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[Tran_Stock](
    [TranID] [int] IDENTITY(1,1) NOT NULL,
    [Stock_ID] [int] NULL,
    [TranDate] [date] NULL,
    [TxnType] [nvarchar](3) NULL,
    [Qty] [decimal](10, 2) NULL,
    [Price] [decimal](10, 2) NULL
    ) ON [PRIMARY]
    GO
    SET IDENTITY_INSERT [dbo].[Tran_Stock] ON 
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (1, 1, CAST(0x81350B00 AS Date), N'IN', CAST(200.00 AS Decimal(10, 2)), CAST(750.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (2, 1, CAST(0x85350B00 AS Date), N'OUT', CAST(100.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (3, 1, CAST(0x8A350B00 AS Date), N'IN', CAST(50.00 AS Decimal(10, 2)), CAST(700.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (4, 1, CAST(0x90350B00 AS Date), N'IN', CAST(75.00 AS Decimal(10, 2)), CAST(800.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (5, 1, CAST(0x99350B00 AS Date), N'OUT', CAST(175.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (6, 2, CAST(0x82350B00 AS Date), N'IN', CAST(150.00 AS Decimal(10, 2)), CAST(350.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (7, 2, CAST(0x88350B00 AS Date), N'OUT', CAST(40.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (8, 2, CAST(0x8C350B00 AS Date), N'OUT', CAST(10.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (9, 2, CAST(0x98350B00 AS Date), N'IN', CAST(90.00 AS Decimal(10, 2)), CAST(340.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (12, 2, CAST(0x98350B00 AS Date), N'IN', CAST(10.00 AS Decimal(10, 2)), CAST(341.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (13, 2, CAST(0x99350B00 AS Date), N'OUT', CAST(30.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (14, 2, CAST(0x81350B00 AS Date), N'IN', CAST(120.00 AS Decimal(10, 2)), CAST(350.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (15, 2, CAST(0x89350B00 AS Date), N'OUT', CAST(90.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (17, 3, CAST(0x89350B00 AS Date), N'IN', CAST(90.00 AS Decimal(10, 2)), CAST(350.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (18, 3, CAST(0x8A350B00 AS Date), N'OUT', CAST(60.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (19, 3, CAST(0x5D390B00 AS Date), N'OUT', CAST(20.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (20, 1, CAST(0x81350B00 AS Date), N'IN', CAST(200.00 AS Decimal(10, 2)), CAST(750.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (21, 1, CAST(0x85350B00 AS Date), N'OUT', CAST(100.00 AS Decimal(10, 2)), NULL)

    Hi,
    You dont have any Index on the table, so the filters (where part in the queries) and the sorting (order by, group by) make your query slow. it take time to sort or filter data without Index. It is like reading a book with 3k pages and trying to find a specific
    subject. You have to read the all books, but if you have "table of contents" which is the book index, then this can be done fast.
    * check the Execution plan (the image here show part of your query's execution plan). the query scan the all table 3 times...
    there is one sort that use 81% of the query resources... I will go sleep soon (it is
    23:58 In Israel now), and I don't know if I will have time to read the query itself and improved it, so lets start with indexes :-) 
    ** as a first step after or before you create the right Indexes you should remove the recursive all together. there is no reason for lopping the data when you can use it as a SET. This is where the relational database's power come to life :-)
    for example check this code. I only use your first part of the code using the first 2 CTE tables. compare result.
    ;WITH
    OrderedIn as (
    select *,ROW_NUMBER() OVER (PARTITION BY Stock_ID ORDER BY TranDate) as rn
    from Tran_Stock
    where TxnType = 'IN'
    , RunningTotals as (
    select Stock_ID ,Qty, Price, Qty as Total, Cast(0 as decimal(10,2)) as PrevTotal, trandate , rn
    from OrderedIn where rn = 1
    union all
    select
    rt.Stock_ID, oi.Qty, oi.Price, Cast(rt.Total + oi.Qty as decimal(10,2))
    ,Cast(rt.Total as decimal(10,2))
    , oi.TranDate ,oi.rn
    from RunningTotals rt
    inner join OrderedIn oi on rt.Stock_ID = oi.Stock_ID and rt.rn = oi.rn - 1
    select * from RunningTotals
    -- This will do the same as the above query
    select
    Stock_ID, Qty, Price
    , SUM(Qty) over (PARTITION BY Stock_ID order by TranDate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) as Total
    ,TranDate--,TranID, TxnType
    from Tran_Stock
    where TxnType = 'IN'
    order by Stock_ID
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Please help on online test application

    Hi all, i'm developing an online test application. I'm done with the login page and uploading the question and i choose to display all the questions to the user but i dont know how to insert in the database cos i used a while loop to display the questions and options so i'm confused.please help

    Thanks for your response.the thing's dat i've already retrieved the questions and options from my sql table. I just want to submit to the database and its not that i dont know how to do that, i just dont know how to submit multiple entries at once cos i have sumthin like:
    while(rs.next())
    id=rs.getString(1);
    opta=rs.getString(2);
    optb=rs.getString(3);
    optc=rs.getString(4);
    optd=rs.getString(5);
    <input type=radio name=<%id%> value=<%opta%> />
    <input type=radio name=<%id%> value=<%optb%> />
    <input type=radio name=<%id%> value=<%optc%> />
    <input type=radio name=<%id%> value=<%optd%> />

  • Please help with "corrupt" message when first plugging in iPod Video

    When I first plug in my iPod video, iTunes launches fine, I see my device and all its contents fine, then receive a message "The iPod "JALF" cannot be updated. The file or directory is corrupted and unreadable." It does not seem to affect any functionality, but I was curious what it meant. Thanks.

    There's a very comprehensive post by forum member Da Gopha on the iTunes corrupt file message now in the user tips section that you may find useful: kipod: If Windows displays an iTunes.exe corrupt file/chkdsk message

  • Please help test a gif program in Lion and Snow Leopard

    Can anyone please help me by testing a Gif creation app on a Lion and Snow Leopard machine?
    The app is called "GIFfun" and is free. It can be downloaded here:  http://www.stone.com/GIFfun/
    I have used this app for years on a Leopard machine, but needed to upgrade this week to Lion.
    Since upgrading to Lion all white areas in Gifs i create are turned to grey and its causing me problems in my workflow.
    I've purchased other Gif creation software to see if the problem was only with that app, but the grey areas are on all Gifs from all Gif creators, which makes me sure the problem lies with Lion.
    It would be a real help for me to know that other Lion users had the same problem, and to know that Snow Leopard users didn't have the problem. (as i would downgrade my OS to Snow Leopard)
    I've attached 3 images to test the app, these images need to be put into a folder and the folder dragged and dropped into the app.
    I need to know if the white areas turn grey on your OS?
    I will be really grateful if anyone can help me with this.
    Thanks
    Dave

    Yes I see your problem.
    Nothing you or I can do about third party software not preforming well in Lion.
    Contact their support:http://www.stone.com/Form.html
    or
    Stone Contact Info
    Tele: 505 345 4800
    Fax: 505 345 3424
    www.stone.com
    [email protected]
    Stone Design Corp
    PO Box 6799
    Albuquerque, NM 87197-6799

  • Please help after updating my iphone 4 to ios 5.01 I cannot make phone calls or receive phone calls anymore. I am so annoyed first battery and now can't make calls!

    Please help after updating my iphone 4 to ios 5.01 I cannot make phone calls or receive phone calls anymore, please help, I am so annoyed first battery and now can't make calls!

    The same thing is happening with my wife's iPhone 4 and we can't figure it out. When placing a call, the screen freezes and she needs to restart the entire phone.
    She upgraded to 5.01 this morning over the air while it was plugged in. Immediately afterwards, this problem started happening. We've tried restarting the phone several times and plugged in to iTunes but there's nothing she can do do to fix it.
    Any help is greatly appreciated!

  • My iPhone 4 will not let me play my music I bought on iTunes or pandora or YouTube with out my headphones or speakers plugged in. I can play my ringtone without them plugged in but that's all. Also my iPhone will not turn off. Please help

    I tried resisting my phone it didnt work. Please help? This is the first time it has ever happens and has been doing it for a week. The sound will only play without headphones or speakers is when I'm listening to my ringtone. And my phone won't turn off. It turns off then just turns back on.

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • How can i bypass my icloud account i forgot the password and email? please help me

    Please help me I forgot the first account that I used to my ipod touch 5th gen. After I reset it they are finding the first account that I used but I forget it both email and password because I'm using other account what I am going to do now to activate my ipod pleade some one help me

    Yo need to recover the account and password
    Is there a way to find my Apple ID Name if I can't remember it?
    Yes. Visit My Apple ID and click Find your Apple ID. See Finding your Apple ID if you'd like more information.
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.
    However, if you are the original purchaser of the iPod and you purchased it directly from Apple they may be able to help
    Contact iTunes
    Contact iTunes

  • Please help, iPod Nano and iTunes issues

    1. I can't update my iPod Product Red. I've downloaded the update, and when I click "update" in iTunes, it just sits there for hours saying its updating
    2. The first time I start windows, connect my iPod Nano and then start iTunes (or even the other way around, start itunes then connect ipod), my nano doesn't show up in itunes. I need to restart the service after plugging in the nano every single time!
    3. I cant restore my iPod Nano either, the same problem with the updating my ipod, the progress screen just goes back and forth for hours without doing anything, infact my nano just seems like it looses synch during both an update and a restore, because the do not disconnect message on the screen goes away once either update or restore process is started.
    Please help! This is my first ipod purchase and so far it is really disappointing me and frustrating, thanks
    -Alex

    1. I can't update my iPod Product Red. I've downloaded the update, and when I click "update" in iTunes, it just sits there for hours saying its updating
    2. The first time I start windows, connect my iPod Nano and then start iTunes (or even the other way around, start itunes then connect ipod), my nano doesn't show up in itunes. I need to restart the service after plugging in the nano every single time!
    3. I cant restore my iPod Nano either, the same problem with the updating my ipod, the progress screen just goes back and forth for hours without doing anything, infact my nano just seems like it looses synch during both an update and a restore, because the do not disconnect message on the screen goes away once either update or restore process is started.
    with that particular set of symptoms, first check on the possibility described in the following document:
    iTunes for Windows: iTunes 7 doesn't recognize iPod

  • "Update Unavailable with This Apple ID"...please help!

    I am running OS X Yosemite (10.10.2) on a Mac Book Pro. For over 1 year I have had updates to Iphoto and IMovie in my list of apps to update. When I try to update either one of them, I get the following error message:
    I do have 2 different apple IDs (1 in USA and 1 in Sweden), but the update will not work for either. I do not use either program and would like to perform the updates or just delete them.
    Please help!
    Thanks

    Please test after each of the following steps that you haven't already tried. Stop when the problem is resolved. Back up all data before making any changes. Keep in mind that no one here represents Apple or can help with customer-service issues.
    Step 1
    A purchased app can only be updated by signing in to the App Store with the same Apple ID that was originally used to buy it. There's no way around that limitation, which also applies to free apps. If you can't sign in with the buyer's ID, delete the app and reinstall it. You'll have to pay for it again, if applicable.
    Step 2
    If you get the alert when trying to update a bundled iLife app, select the Purchases page in the App Store and locate the app in your purchase history. If there's a button marked ACCEPT on the right, click it.
    If you have a used Mac, the bundled apps were linked to the original owner's Apple ID and can't be transferred to you. Reportedly, customer service has issued redemption codes to some second owners who asked, but it's not guaranteed.
    Step 3
    If you're trying to update iLife or iWork apps that were installed from a purchased DVD, or if you have a refurbished Mac bought directly from Apple, contact App Store customer service for a redemption code. You may be asked for the part number of the DVD.
    Step 4
    From the App Store menu bar, select
              Store ▹ View My Account
    Enter your Apple ID password at the prompt. At the lower right corner of the window that opens, click the Reset button. Close the window.
    Step 5
    According to a report, the error can result from changing the language setting of your Apple ID account. I can't confirm.

  • I cant connect my new wimax usb stick bm328 on my macbook pro. please help me

    i cant connect my new wimax usb stick bm328 on my macbook pro. please help me

    The Hardware Test detected a RAM problem.  Take out the chips and make certain that the connections are clean and reinstall them.  Make certain that they are well seated. 
    If the problem occurs again, test with one chip at a time.  Also swap bays if necessary.
    Please indicate if you have installed new RAM and if so what brand and the specifications.
    Ciao.
    Message was edited by: OGELTHORPE

  • Please help in query performance

    select bg.billing_group_id,r.rating_result, count(*),rc.source,rc.description
    from rejected_record r,
    result_code@RD rc,
    terminal_device@cust td,
    personal_account_td@cust patd,
    personal_account@cust pa,
    billing_group@cust bg,
    -- tariff_plan@rd tp,
    (select pcs.primary_session_id, pcs.charging_date
    from pcs@umr_interface
    where pcs.range_cdr_file_source not like 'HOT%'
    --and lower(pcs.RANGE_CDR_FILE_SOURCE) not like 'rec%'
    -- and lower(pcs.RANGE_CDR_FILE_SOURCE) not like 'sms%'
    -- and lower(pcs.RANGE_CDR_FILE_SOURCE) not like 'data%'
    -- and pcs.CHARGING_TYPE_ID = 1
    and pcs.charging_date between '20/Aug/2010' and '21/Sep/2010') t
    where r.primary_session_id = t.primary_session_id
    and rc.code (+)= r.rating_result
    and td.terminal_device_id = patd.terminal_device_id
    and patd.personal_account_id = pa.personal_account_id
    and r.calling_party_number_rid = td.msisdn
    and pa.billing_group_id = bg.billing_group_id
    and r.is_precharged=0
    --and td.tariff_plan_id=tp.tariff_plan_id
    and (nvl(td.date_to,'01.01.2000')='01.01.2000')
    and (nvl(pa.date_to,'01.01.2000')='01.01.2000')
    and (nvl(patd.date_to,'01.01.2000')='01.01.2000')
    group by r.rating_result, rc.source, rc.description,bg.billing_group_id
    order by r.rating_result
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE     9.2.0.8.0     Production
    TNS for Solaris: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production
    SQL>
    Above select query took only 10 mins when those nvl functions where not there..
    but when these nvl fuctions are added this takes lot of time....
    please help to optimce it..
    first i tried with is null.. it took lot of time.. ten i replaced it with nvl function...
    please somebody help to optimize this query

    Check out these links:
    {message:id=1812597}
    {thread:id=863295}

Maybe you are looking for

  • Why are the first items to be played opening at the end?

    This problem occurs on podcasts, videos, and songs: when an item is played, it opens at the end rather than the beginning, so the next item in the list plays instead. Sometimes if I click on the item again, it starts from the beginning, but equally a

  • Really Undecided

    So i really want to buy a macbook pro with retina display, but i have heard of all of the issues....the issue that totally makes me sad is the ghosting problems with the LG screens. I went to my local apple store and checked out the 15" models with r

  • Time Machine Restore vs Restoring disk image to Macbook Pro

    Hi guys, Is it best to restore my new Macbook pro Retina from a 2011 Macbook pro via a time machine backup or is it best and easyer to restore my Disk Image from my old Macbook Pro 'Macintosh HD' to my new SSD in a 2013 Macbook pro Reitna via Disk ut

  • I want to convison the mail body 's Content-Transfer-Encoding to base64

    Return-Path: <[email protected]> Received: from tobacco ([130.130.160.76]) by webapp.tobacco (Netscape Messaging Server 3.6) with ESMTP id AAA70AC; Tue, 6 Nov 2001 18:26:28 +0800 type: ���� intra@ius_center 1670 subject: ������gggggg�� Content-Type:

  • Add New Characteristic to Info Cube

    Matez,    Relating to Standard <b>Info Cube </b><i>0PCA_C01 - PCA: Transaction Data</i>    I added 2 Info Object[0COSTELMNT,0COSTGRP] to this Info Cube    I modified the <b>Info Source</b> 0EC_PCA_1, to include this 2 Info Object[0COSTELMNT,0COSTGRP]