Basic Servlet Error...Help Needed Urgently...Losing my patience

Hi everybody,
I am very new to servlets and have no idea of JSP. I was reading the book Head First Servlets and JSP and came across a simple servlet in the first chapter...which I am unable to execute for the past 3-4 days after putting more than 5hrs per day..just trying to rectify this issue. My program name is Ch1Servlet.java. My Errors on compiling the code from command prompt is as below.
I run the following command.
C:\Sun_Java\Head First Servlet and JSP Examples\Project1\src>javac -classpath C:\Sun_java\Tomcat\Tomcat\lib\servlet-api.jar Ch1Servlet.java
On execution, the above gives
Ch1Servlet.java:5: cannot find symbol
symbol: class HTTPServlet
public class Ch1Servlet extends HTTPServlet
^
Ch1Servlet.java:7: cannot find symbol
symbol : class HTTPServletRequest
location: class Ch1Servlet
public void doGet(HTTPServletRequest request, HTTPServletResponse response) throws IOException
^
Ch1Servlet.java:7: cannot find symbol
symbol : class HTTPServletResponse
location: class Ch1Servlet
public void doGet(HTTPServletRequest request, HTTPServletResponse response) throws IOException
^
3 errors
My Program code for Ch1Servlet.java is below:
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class Ch1Servlet extends HTTPServlet
     public void doGet(HTTPServletRequest request, HTTPServletResponse response) throws IOException
          PrintWriter out = response.getWriter();
          java.util.Date today = new java.util.Date();
          out.println("<html>"+"<body>"+"<h1 align=center>HF\'s Chapter 1 Servlet</h1>"+"<br>"+"</body>"+"</html>");
My classpath setting inside User Variables(My Computer Right Clicked and Advanced tab selected. This has Environment variables button...which on clicking gives User variables and System variables window. I created the user variable "CLASSPATH")
Variable Name: CLASSPATH
Variable Value: .;C:\Sun_Java\SDK\lib;C:\Sun_Java\SDK\jdk\bin;C:\Sun_Java\Tomcat\Tomcat\lib\servlet-api.jar
I feel the class path is set correctly....and there are no issues with the code either...It is just that I am unable to import the http package in javax.servlet.http
My Tomcat version is 6.0
My J2EE version is Java EE 5 SDK.
I am not using any editors for the time being. Tomcat server seems to be working perfectly as I could run local host web page which says "Welcome to Tomcat".
Any help shall be appreciated.
Thanks,
Rahul

You need to pay more attention while reading: it's Http not HTTP, in all places :)
In almost all Java names ( unfortunately, not all ), you'll find that the name case follows this pattern.

Similar Messages

  • Basic Java Program help needed urgently.

    I have posted the instructions to my project assignment on here that is due tomorrow. I have spent an extremely large amount of time trying to get the basics of programming and am having some difficulty off of the bat. Someone who has more experience with this and could walk me through the steps is what I am hoping for. Any Help however will be greatly appreciated. I am putting in a lot of effort, but I am not getting the results I need. Thank you for the consideration of assisting me with my issues. If you have any questions please feel free to ask. I would love to open up a dialogue.
    CIS 120
    Mathematical Operators
    Project-1
    Max possible pts 100
    Write a program “MathOperators” that reads two integers, displays user’s name, sum, product,
    difference, quotients and modulus of the two numbers.
    1. Create a header for your project as follows:
    * Prgrammer: Your Name (1 pt) *
    * Class: CIS 120 (1 pt) *
    * Section: (1 pt) *
    * Instructor: (1 pt) *
    * Program Name: Mathematical Operators (1 pt) *
    * Description: This java program will ask the user to enter two integers and *
    display sum, product, difference, quotients and modulus of the two numbers
    * (5 pts) *
    2. Display a friendly message e.g. Good Morning!! (2 pts)
    3. Explain your program to the user e.g. This java program can add, subtract, multiply,
    divide and calculate remainder of any two integer numbers entered by you. Let’s get
    started…. (5 pts)
    4. Prompt the user- Please enter your first name, store the value entered by user in a
    string variable name. Use input.next() instead of input.nextLine(). (8 pts)
    5. Prompt the user- name, enter first integer number , store the value entered by user in
    an integer variable num1.(5 pts)
    6. Prompt the user- name, enter second integer number , store the value entered by user in
    an integer variable num2.(5 pts)
    7. Display the numbers entered by the user as: name has entered the numbers num1and
    num2.(5 pts)
    8. Calculate sum, product, difference, quotients and modulus of the two numbers. ( 30 pts)
    9. Display sum, product, difference, quotients and modulus of the two numbers. ( 10 pts)
    10. Terminate your program with a friendly message like- Thanks for using my program,
    have a nice day!!(2 pts)

    Nice try. You have not demonstrated that you've at least TRIED to do something. No one is going to do your homework for you. Your "urgency" is yours alone.

  • Error: ORA-12560 TNS : Protocol Error help need urgently

    HI
    i m working on win 2k adv server
    i installed orcale 8i
    and then i started sql plus
    and entered us id and pass : scott / tiger
    and also tried :system / manager
    but i m having this error
    plz tellme how can i solve it
    Error: ORA-12560 TNS : Protocol Error
    plz do it soon
    Nurali
    03002199037

    You're attempting to go across SQL*Net. I'm a unix guy so I can't help very much except to point this out.
    On Unix I'd either undefine the TWO_TASK environmental variable. Probably a reg entry on 2k.
    Or configure Sql*Net.
    Ken

  • ParseDTDBuffer error-Help Needed urgently.

    Hi all,
    I wanted to parse a one line dtd and so i used the xmlparser.parseDTDBuffer() function.In this usage i got a strange error.The program reported no error at compile time but an error was reported at run time and error was stating the non-availability of the method.But when i used a 'desc sys.xmlparser' method i found the function with the same syntax.Please help me with the reason for this error.I enclose the error message and usage statement of the function:-(creatememoryclob is my function and root is also a varchar element.
    dtd varchar2(100);-- declaration
    dtd:='<!ELEMENT family (member*)>';-initialization
    sys.xmlparser.parseDTDBuffer(p,dtd,root);-usage
    error:-
    ERROR at line 1:
    ORA-29531: no method parseDTDBuffer in class
    oracle/xml/parser/plsql/XMLParserCover
    ORA-06512: at "SYS.XMLPARSERCOVER", line 0
    ORA-06512: at "SYS.XMLPARSER", line 115
    ORA-06512: at "IWADM.CREATEDOCMEMORYCLOB", line 14
    ORA-06512: at line 10
    Any help will be really helpful
    regards
    Gopal

    What are the DB version and XDK version?

  • HT201210 i have an error of no 11. kindly help, needed urgently

    i have an error of no 11. kindly help, needed urgently
    when i try to upgrage my
    iphone 3gs wit 4.1 to new latest 5.1
    it gives the erorr of 11. what that mean? Reply as soon as you can !
    thnx

    Error -1 may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.

  • Some J2ME midlets doubts!! help needed urgently!!!

    Hi,
    I am currently working in a company where it does wireless technology like WAP and I am assigned a task of creating a screensaver midlet. I have some doubts on the midlets.
    1) How do i use a midlet suites? From what I heard from my colleagues & friends, a servlet is needed for midlets to interact with one another. is it true?
    2) How do I get the startin midlet to take note the phone is idling so that the screen saver midlet can be called?
    Help needed urgently... if there is any source codes for me to refer to would be better... Thanks...
    Leonard

    indicates that MIDlet suites are isolated (on purpose) from each other, so you can't write over another one's address space.
    Also, I believe (at least on cell phones) that you have to specifically enter the Java Apps mode; unless you do the app won't execute. If you are in Java apps mode and a call comes in, the cell's OS puts the Java app currently executing on "Pause" mode and switches back to phone mode.
    Not sure if you will be able to have a Java app do that automatically.
    BTW why do you need a screensaver on an LCD display? Is it really intended to show an advertisement?
    Download and real all the docs you can from Sun, once you get over the generic Java deficiencies MIDlet's aren't that hard.

  • Load bar at start up, then shut down. HELP NEEDED URGENTLY!!! plss....

    Load bar at start up, then shut down. HELP NEEDED URGENTLY!!! plss..

    The startup disk may need repairing.
    Startup your Mac while holding down the Command + R keys so you can access the built in utiliites to repair the startup disk if necessary or restore OS X using OS X Recovery

  • BW error. Need urgent Help( I will give out full points).

    We have BW version 3.1 and content 3.3.
    We are doing loads to ODS and getting oracle partition error. It gives Oracle partition error ORA-14400. inserted partition key doesn't map to any parititon.
    The exception must either be prevented, caught within the procedure               
    "INSERT_ODS"                                                                     
    (FORM)", or declared in the procedure's RAISING clause.                          
    o prevent the exception, note the following:                                     
    atabase error text........: "ORA-14400: inserted partition key does not map to   
    any partition"                                                                   
    nternal call code.........: "[RSQL/INSR//BIC/B0000401000 ]"                      
    lease check the entries in the system log (Transaction SM21).                                                                               
    ou may able to find an interim solution to the problem                           
    n the SAP note system. If you have access to the note system yourself,           
    se the following search criteria:                                                
    The termination occurred in the ABAP program "GP3WRFMGVS1D8IW16LLGSL4QQKH " in       
    "INSERT_ODS".                                                                       
    he main program was "SAPMSSY1 ".                                                                               
    he termination occurred in line 41 of the source code of the (Include)              
    program "GP3WRFMGVS1D8IW16LLGSL4QQKH "                                              
    f the source code of program "GP3WRFMGVS1D8IW16LLGSL4QQKH " (when calling the       
    editor 410).                                                                        
    rocessing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in      
    the                                                                               
    rocedure "INSERT_ODS" "(FORM)" but was not handled locally, not declared in         
    the                                                                               
    AISING clause of the procedure.                                                     
    he procedure is in the program "GP3WRFMGVS1D8IW16LLGSL4QQKH ". Its source code      
    starts in line 21                                                                   
    f the (Include) program "GP3WRFMGVS1D8IW16LLGSL4QQKH ".                                                                               
    Please help me guys. I will award points for good answers.

    Dear Sir,
    Now I have got the problem like yours (load to ODS and ORACLE partition error ORA-14400 with INSERT_ODS). Tell me, please - did you solve this problem?
    Can you recommend me something? What did you do with partitions?
    Help me, please - I need urgent help too.
    GLEB ([email protected])
    P.S. Sorry for my English, I haven’t got any language practice for a long time.

  • Help needed urgently related to tomcat

    hi all ,
    When i start my tomcat i get an error message cannot find file '-Xsm512m' (or one of its components). Make sure the path and filename are correct and that all required libraries are available
    I cannot make anything out of this message
    Please someone tell me hoe to tackle this error i need it urgently
    thanking in advance
    waiting in anticipation of replies

    no
    noone has done it explicitly
    actually ny tomcat was runing fine
    but i started getting this error after my PC in office was configured with my ID
    can u suggest what must be wrong with catlina.bat?
    anyways that i can rectify it?

  • Help needed urgently on a problem..plzzz

    hi..this is a linear congruential generator. I have to implement it and i need the execution time for the program.
    for your understanding i'm providing an example below.
    Xn=(( a* xn-1 )+b) mod m
    If X0=7 ; a = 7 ; b =7 ; m=10
    Then
    X0 = 7
    X1 =((7 * 7) + 7))mod 10 = 6
    X2 = ((6*7)+7))mod 10 = 9
    X3 = ((9*7)+7) mod 10 = 0
    X4 = ((0*7)+7) mod 10 = 7
    Now since the cycle is being repeated i.e 7 appears again�so the period is 4 coz there are 4 diff nos. i.e 7,6,9,0�..
    help required urgently....your help will be appreciated...thankyou..

    Hi,
    I wrote the code so that it catches any cycle (not only the "big" one).
    Otherwise it will enter infinite loop...
    The time complexity is O(N*logN): it can do at most N iterations (here N is your 'm'), and in each iteration there can be O(log N) comparisons (since I maintain TreeSet).
    Interesting issue: is it possible to supply such (x0, a, b, m) tuple such that all possible values from 0 to m-1 will be output? I think no :)
    Here is the program:
    package recurr;
    import java.util.TreeSet;
    import java.util.Comparator;
    public class Recurrences {
         private static long x0, a, b, m;
         private static TreeSet theSet;
         public static void main(String[] args)
              long l0, l1, l2, l3;
              try {
                   x0 = Long.parseLong(args[0]);
                   a = Long.parseLong(args[1]);
                   b = Long.parseLong(args[2]);
                   m = Long.parseLong(args[3]);
              } catch(NumberFormatException nfe) {
                   nfe.printStackTrace();
              System.out.println("X[0]: " + x0 + "\n");
              long curr = x0;
              boolean cut = false;
              int i;
              // initialize the set
              theSet = new TreeSet(new LongComparator());
              // we can get at most m distinct values (from 0 to m-1) through recurrences
              for(i=1; i <= m; ++i) {
                   // iterate until we find duplicate
                   theSet.add(new Long(curr));
                   curr = recurrence(curr);
                   if(theSet.contains(new Long(curr))) {
                        cut = true;
                        break;
                   System.out.println("X[" + i + "]: " + curr + "\n");
              if(cut) {
                   System.out.println("Cycle found: the next will come " + curr + "\n");
              } else {
                   System.out.println("No cycle found!");
              System.out.println("----------------------------------");
              System.out.println("Totally " + (i-1) + " iterations");
         private static long recurrence(long previous)
              return (a*previous + b)%m;
         static class LongComparator implements Comparator
              public int compare(Object o1, Object o2)
                   if(((Long)o1).longValue() < ((Long)o2).longValue()) {
                        return -1;
                   } else if(((Long)o1).longValue() > ((Long)o2).longValue()) {
                        return 1;
                   } else return 0;
    }

  • Help needed Urgently- Rebate based on collected amount

    Dear all,
    I come across scenario while discussiion with client that they require rebate with collection. Details of the requirement are given below:
    1. SAP rebates run on billed values & set the accrual in rebate agreement on the rate what we have specified in the rebate agreement. Requirement is that, If i have billed on 1000$ & my accrual value is 100$ with the rate of 10%. If i collected 800$ instead of 1000$, then i need to pay the accrual on the basis of 800$ not on the basis of 1000$. It means i have to adjust accrual amount on the basis of 800$. Conclusion is that i have to pay not 100$ accrual instead less then 100$ on the basis of 800$ which i collected.
    2. In month 1 have billed on 5000$, my accrual amount is 500$ with rate of 10%. In the 2nd month i have to bill 1000$ and i have given an discount of 500$, it means my billed value is 500$ and my accrual amount is 50$@10%. In month 3 again i billed 500$ and my accrual amount is 50$@10%.
    Requirement is that, when i am going to pay the accrual to client, i should pay correct accrual for which he is entitled for. Means i should pay 100$ accrual not 600$ because i have already given an discount of 500$. Discount which i have given already of 500$ should need to be offest with the first month accrual of 500$. So remaning accrual is 100$.
    Great if somebody can help me out for the solutioning of the above requirements.

    Thanks Ivano,
    Somebody has started the conversation.
    Let me put my questions again.
    This requirement is nothing to do with Payment procedure in the agreement type.
    1. In any month if i billed 1000$, so my account receivable would be 1000$. My rebate for that month is 100$ at the rate of 10%. During customer receipt if i collected against my invoice 900$ instead of 1000$, my accrual needs to be corrected 90$ instead of 100$.
    I know this can not be fullfilled by standard SAP, by any thoughts on this welcomed.
    2. I know Rebate can be settled partially or full settlement by payment method( by cheque, bank transfer, or by credit memo) we have configure in rebate agreement type. But here requirement is totally different.
    Here, i need to pay the Rebate as a Discount instead of by cheque or by credit memo. While doing the partial or full settlement system will take into account collected accrual up to that day & apply as a discount to the final bill.
    Scenario is like that sometimes customer asked to give us the discount on bill for whatever they accrued so far.
    This is again cannot solved by standard SAP, but any thought by any body welcome. We have already thought that we need to enhance the solution.
    Solution needed urgently.

  • Unable to allocate 27160 bytes.........Help needed urgently

    hi
    in my production database in getting this error..
    ORA-04031: unable to allocate 27160 bytes of shared memory ("shared
    pool","unknown object","sga heap(1,0)","session param values")
    help needed urgently

    If you have a program that does not use bind variables you can get this error.
    In such cases you do not want to increase the size of the shared pool, but reduce it, and flush regularly. This is a bug in the application and should be fixed to use bind variables.
    Another possible workaround is setting cursor_sharing = force, but this can cause other problems, so should only be used as a last resort. If the apps connections can be distinguished by user account or machine, then a log on trigger could be set cursor_sharing just for that application, to limit the damage until the vendor can fix it.

  • Error while running disco report (Help needed urgent)

    Hello All,
    When i am running a disocoverer report i am getting the following error.
    ORA-01840 input value not long enough for date format
    ORA-02063 preceding line from prod
    The data retrieved by the query is incomplete because it was canclled?
    Kind Regards,
    Kumar.

    Hi Kumar
    It sounds like you could be trying to use the TO_DATE function and are either passing to it a value that is doesn't understand or you have not defined the format mask. Only if the string being converted is already in the database date format you do not need to provide a format mask. In all other cases you do.
    For example, if your database format is DD-MON-YYY then this is valid: TO_DATE('01-OCT-2009')
    However, if your format is something like 10/01/2009 you will have to tell Discoverer how the date is made up. In this particular case the answer would be: TO_DATE('10/01/99','MM/DD/YY')
    You should notice how the format mask is included in single quotes and separated from the date itself by a comma.
    Hope this helps
    Best wishes
    Michael

  • Error message - need urgent Help

    Hi,
    I need some help from you guys, because, when I run my project and try to execute some action, I always get this error message in the Embedded OC4J Server:
    forward:WEB-INF/page/S2EpisodiosTable not found on action:/S2EpisodiosTable
    Here is part of the code:
    14:03:37 DEBUG (JhsActionServlet) -Request class: com.evermind.server.http.EvermindHttpServletRequest
    14:03:37 DEBUG (JhsActionServlet) -Request URI: /App_S2-ViewController-context-root/S2EpisodiosTable.do
    14:03:37 DEBUG (JhsActionServlet) -Request Character Encoding: windows-1252
    14:03:37 DEBUG (JhsActionServlet) -Parameter value: 1
    14:03:37 DEBUG (JhsActionServlet) -Parameter event: show
    14:03:37 DEBUG (JhsActionServlet) -Parameter partial: true
    14:03:37 DEBUG (JhsActionServlet) -Parameter source: S2EpisodiosView1
    14:03:37 DEBUG (JhsActionServlet) -Parameter partialTargets: S2EpisodiosView1 messageBox _uixState S2AltaSociais2Header S2CaracSocioDemog4Header S2EntidadeFinaceiras3Header S2HistoriaSociais2Header S2Procedimentos2Header S2ServicoExternos3Header S2SitHabitacionais3Header S2SitSocioProfissionais2Header
    14:03:37 DEBUG (JhsDataAction) -Executing action /S2EpisodiosTable
    14:03:37 DEBUG (JhsDataAction) -Found existing searchBean for S2EpisodiosUIModel
    14:03:37 DEBUG (JhsDataAction) -Stored searchBean for S2EpisodiosUIModel on request
    06/07/20 14:03:37 forward:WEB-INF/page/S2EpisodiosTable not found on action:/S2EpisodiosTable
    14:03:37 DEBUG (JhsDataAction) -No commit event in request and multiRowUpdateEvent request param not set, multi-row update NOT executed
    14:03:37 DEBUG (JhsDataAction) -Storing table binding factory under key jhsTableBindings on request
    14:03:37 DEBUG (JhsDataAction) -Forward set by parameter property returned: /WEB-INF/page/S2EpisodiosTable.uix
    14:03:39 DEBUG (JhsActionServlet) -Request class: com.evermind.server.http.EvermindHttpServletRequest
    14:03:39 DEBUG (JhsActionServlet) -Request URI: /App_S2-ViewController-context-root/S2EpisodiosTable.do
    14:03:39 DEBUG (JhsActionServlet) -Request Character Encoding: windows-1252
    14:03:39 DEBUG (JhsActionServlet) -Parameter value: 1
    14:03:39 DEBUG (JhsActionServlet) -Parameter event: hide
    14:03:39 DEBUG (JhsActionServlet) -Parameter partial: true
    14:03:39 DEBUG (JhsActionServlet) -Parameter source: S2EpisodiosView1
    14:03:39 DEBUG (JhsActionServlet) -Parameter partialTargets: S2EpisodiosView1 messageBox _uixState S2AltaSociais2Header S2CaracSocioDemog4Header S2EntidadeFinaceiras3Header S2HistoriaSociais2Header S2Procedimentos2Header S2ServicoExternos3Header S2SitHabitacionais3Header S2SitSocioProfissionais2Header
    06/07/20 14:03:39 forward:WEB-INF/page/S2EpisodiosTable not found on action:/S2EpisodiosTable
    14:03:39 DEBUG (JhsDataAction) -Executing action /S2EpisodiosTable
    14:03:39 DEBUG (JhsDataAction) -Found existing searchBean for S2EpisodiosUIModel
    14:03:39 DEBUG (JhsDataAction) -Stored searchBean for S2EpisodiosUIModel on request
    14:03:39 DEBUG (JhsDataAction) -No commit event in request and multiRowUpdateEvent request param not set, multi-row update NOT executed
    14:03:39 DEBUG (JhsDataAction) -Storing table binding factory under key jhsTableBindings on request
    14:03:39 DEBUG (JhsDataAction) -Forward set by parameter property returned: /WEB-INF/page/S2EpisodiosTable.uix
    Can anyone explain me why this is happening?? What can cause this?
    Thanks,
    Atena
    Message was edited by:
    Atena

    Atena,
    We have seen the same error appearing, but it doesn't do any harm. Your application should behave correctly, despite this error message raised by UIX runtime.
    Steven Davelaar,
    JHeadstart Team.

  • Error in xml to html transform function in 11g(Help needed urgent)

    We are migrating from 9g to 11g.Code given below is working fine with 9g but giving following error while converting xml to html.
    Error:Exception occurred in XML_TO_HTML :ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00609: Function call with invalid number of arguments in 'position (//USER)'.
    Code :<?xml version='1.0'?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="/">
    <HTML>
    <BODY>
    <!--begin header-->
    <xsl:for-each select="AMAP_REMMIT_EMP/HEADERS/HEADER">
    <TABLE border="0" cellpadding="0" cellspacing="0" style="padding:1px" width="100%" height="95" bgcolor="#EAEAEA"><font size="6" face="Arial">amdocs </font>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> <xsl:value-of select="VENDOR_NAME"/></TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" />Date: <xsl:value-of select="RUN_DATE"/>
    </TD>
    </TR>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> <xsl:value-of select="ADDRESS"/></TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" /> <xsl:value-of select="TAX_ID"/>
    </TD>
    </TR>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> <xsl:value-of select="CITY"/> <xsl:value-of select="ZIP"/></TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" />Vendor Number: <xsl:value-of select="OSEK_MURSHE"/>
    </TD>
    </TR>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> </TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" />Fax Number: <xsl:value-of select="FAX"/>
    </TD>
    </TR>
    </TABLE>
    </xsl:for-each>
    <!--end header-->
    <!--begin lines-->
    <p dir="ltr" align="center">
    <span style="font-family: Arial; text-decoration: underline; font-weight: 700">
    Subject: Remittance Advice</span></p>
    <table border="1" cellspacing="1" width="100%" bgcolor="#C0C0C0">
    <tr>
    <th width="20%"><font face="Arial"><b>Invoice Date</b></font></th>
    <th width="20%"><font face="Arial"><b>Invoice Number</b></font></th>
    <th width="40%"><font face="Arial"><b>Description</b></font></th>
    <th width="20%"><font face="Arial"><b><xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/CURRENCY"/> Amount</b></font></th>
    </tr>
    <xsl:for-each select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE">
    <tr>
    <td width="20%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="INVOICE_DATE"/></td>
    <td width="20%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="INVOICE_NUM"/></td>
    <td width="40%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="DESCRIPTION"/></td>
    <td width="20%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="AMOUNT"/></td>
    </tr>
    </xsl:for-each>
    <tr>
    <td width="80%" bgcolor="#FFFFFF" colspan="3" align="right">
    <b>Total Payment:</b></td>
    <td width="20%" bgcolor="#FFFFFF"><xsl:value-of select="//TOTAL"/></td>
    </tr>
    </table>
    <p dir="ltr" align="left"><span style="font-family: Arial"><font size="2">In accordance with your instructions, this amount will be transferred to your <xsl:if test="AMAP_REMMIT_EMP/MERGE_LINE/SITES/SITE/INCLUDE_BANK_DETAILES='Y'">
    account number <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/ACCOUNT"/> in bank
    <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/BANK"/> , branch <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/BRANCH"/>
    on the date of <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/CHECK_DATE"/>.
    </xsl:if>
    <xsl:if test="AMAP_REMMIT_EMP/MERGE_LINE/SITES/SITE/INCLUDE_BANK_DETAILES!='Y'">
    account on the date of <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/CHECK_DATE"/>.
    </xsl:if>
    <xsl:if test="AMAP_REMMIT_EMP/MERGE_LINE/CREDITNOTES/CREDITNOTE/CREDITNOTE>'0'">
    <p>The payment will be credited in two days from the payment date in your account.</p>
    </xsl:if>
    <p>In case this date is not a valid value date in the bank system, the money will be transferred in the next valid value date.</p>
    <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/NOTES/NOTE/DESCRIPTION"/>
    </font></span></p>
    <TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="50">
    <TR >
    <TD width="60%" ></TD>
    <TD width="40%" align="left"><b/><font size="2" face="Verdana" />Yours sincerely,</TD>
    </TR>
    <TR >
    <TD width="60%" ></TD>
    <TD width="40%" align="left"><b/><font size="2" face="Verdana" /> <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/COMPANY_NAME"/></TD>
    </TR>
    <!--end lines-->
    <!--end trailer-->
    </TABLE>
    <table cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-left-width: 1; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1; padding: 0" bordercolor="#111111" width="100%">
    <tr>
    <td width="34%">Alert No:<xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/ALERT_ID"/></td>
    <td width="33%">Environment: <xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/DB_NAME"/></td>
    <td width="33%">Date:<xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/MAIL_DATE"/></td>
    </tr>
    </table>
    <!--end trailer-->
    </BODY>
    </HTML>
    </xsl:template>
    </xsl:stylesheet>
    Thanks in advance.

    #1. We need to see the code that is being used to invoke the stylesheet.
    #2. We need to see the document that is being transformed...
    It's most likely a bug in 9g which has been fixed in 11g...

Maybe you are looking for