Trouble with forward() method in a Servlet

I am new to Servlets and am having trouble with one that queries a database and forwards the data to a JSP. A portion of the code is below (The <i> are really , but are being displayed wrong).
               for(int i = 0; i < numberOfRows; i++)
                    data2[0] = rs.getString("REIMBUR_DATE");
                    data2[i][1] = occupancyPCT;
                    data2[i][2] = rs.getString("RMBR_RATE_REVENUE");
                    data2[i][3] = rs.getString("RMBR_ROOM_TAX");
                    data2[i][4] = "reimbur total";
                    data2[i][5] = rs.getString("BOOK_RATE_REVENUE");
                    data2[i][6] = rs.getString("BOOK_ROOM_TAX");
                    data2[i][7] = "rebate";
                    data2[i][8] = "tax rebate";
                    rs.next();
               request.setAttribute("CERT_INFO", data);
               request.setAttribute("OTHER_INFO", data2);
               request.setAttribute("NUMBER_ROWS", new Integer(numberOfRows));
               ServletContext context = getServletContext();
               RequestDispatcher dispatcher = context.getRequestDispatcher("/certdetails.jsp");
               dispatcher.forward(request, response);
          catch(Exception ee)
               PrintWriter out = null;
               response.setContentType("text/html");
               out = response.getWriter();
               out.println("<html>");
               out.println("<body>");
               out.println("Exception !!<br>");
               out.println(ee.getMessage());
               out.println("</body>");
               out.println("</html>");
When I include the line with the forward() method, I get an exception and the message is "1998-08-20", the contents of data2[numberOfRows - 1][0]. I don't know why an exception is being generated or how it is getting this database value as its message. What's going on?

Nevermind, I found the problem. There was an error in my JSP. I don't know how it affected the Servlet as it did, but...who cares!!

Similar Messages

  • TROUBLE WITH PAYMENT METHOD USED DIFFRENT VISA PAYMENTS STILL WONT WORK

    TROUBLE WITH PAYMENT METHOD USED DIFFRENT VISA PAYMENTS STILL WONT WORK

    This is a case for the iTunes Store Support:
    1. Go to expresslane.apple.com
    2. select 'itunes' and then 'itunes store' on the right
    3. select a topic and a subject
    4. click 'continue' and then 'email'
    5. fill out the form and explain your situation
    6. they will respond within 24 hours usually
    Good luck
    Stijn

  • Problem with forward method of jsp

    am having problem with the requestDispatcher.forward method in my jsp + wml , the forward method gets executed but the new page is not displayed in the wap browser,
    code snippet
    small.jsp
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
    <%@ page language="java" %>
    <%@ page contentType="text/vnd.wap.wml; charset=UTF-8" %>
    <%@ page import="java.lang.*,java.io.*,java.util.*,java.util.Vector,java.util.Properties "%>
    <%
    System.out.println("in small");
    RequestDispatcher rd = request.getRequestDispatcher("small1.jsp");
    rd.forward(request,response);
    %>
    small1.jsp
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
    <%@ page language="java" autoFlush="false"%>
    <%@ page contentType="text/vnd.wap.wml; charset=UTF-8" %>
    <%@ page import="java.net.*,java.lang.*,java.io.*,java.util.*,java.util.Vector,java.util .Properties"%>
    <%
    String sm = "small1";
    System.out.println("in small1");
    %>
    <wml>
    <card id="two">
    <p>
    <small><%=sm%></small>
    </p>
    </card>
    </wml>
    i get the following output in the log
    in small
    in small1
    but i dont get to see the small1.jsp' content , also the response.sendRedirect method works fine ,,
    pls give me the soln
    Thnk u in advance

    thank u very for the repl this is the message which i get in the nokia wap browser...
    cannot load small1.jsp(HTTP Error 500 Server Error)
    and i use IBM WebSphere as the web server....
    and i have found that using response.reset in the small2.jsp overcomes this problem but the card title and the anchor tag is not displayed !!!!
    what could be this problem?

  • Help trouble with forwarded message

    Hello,
    I realized that many people have this issues as I had recently, but I still need some help about this.
    I found that original sender was actually receiving my forwarded message to other people.  I had an important correspondence to make with my Attorney since February, I forwarded several messages from my opponent to my attorney.  We have been resolving issues very well, but one day, the opponents suddenly changed their attitude and giving me a hard time.  I was checking my older correspondence with the person who was actually mediating the situation and found out that my conversation with my attorney was leaked to the opponents because I hit "forward" to including the original message from the sender(opponent).  The mediator actually saw what I was talking with my attorney.  it was bad enough, the mediator was not telling me she was recovering my e-mail to my attorney.  Now I have a trust issue to my mediator.  It is not professional that mediator leaked my conversation with my attorney to the opponents, but Apple mail set up caused this situation.  Am I wrong?  I want to know if I could avoid this by myself, if it was my problem, I want Apple to teach me how to use e-mail setting correctly ASAP.  In my understanding, it should be my choice if I including the original sender or not when I forward the message to others, correct? 
    Why Apple automatically include the original sender when I forward my comments to others???
    is anyone know to fix this problem?  We act civil to each other and the mediator was taking her position fairly, but once they knew my attorney has more to say to opponents, the mediator revealed her position toward executives in the company (opponent)  My legal issue to justify my position should not be jeopardized by something like this that I cannot control.  Bad thing is I didn't know the opponent are reading my conversation to my attorney until now.  I didn't say anything wrong on the e-mail to my attorney to offend the opponent, but the opponent has been over reacting to the issue with me.  Original issue was mediated by the mediator, but now I need my attorney longer to resolve the issue.  Because of the forwarding message setting with Apple, I had extra problem.  I recently send a message to the mediator and asked if she received any e-mail that should be going only to my attorney, she has no answer.  I don't like any e-mail setting I cannot fix causes this trouble in the future.  I will never forward the message to my attorney and ask a question again, but I want Apple to make better setting to avoid this kind of situation. 

    seems like you tried to invoke the method parseXml of the class com.bt.ma.utils.xmlPolicyReader but used a wrong (illegal & incompatible) parameter attribute...

  • Having trouble with "main" method

    I have just installed j2re1.4.1 and I am having trouble running my applications. Every time I try to run even the smallest of apps I get an error message about the "Main" method.
    In textpad i get this message:
    "Exception in thread "main" java.lang.NoClassDefFoundError:"
    and in Jcreator I get this message:
    "The system couldnt find a suitable main method"
    what is going wrong?How can I fix this?

    It could be something as simple as Case :-/
    If you have a file Foo.java with a class Foo with a main()
    you can compile it with javac foo.javawhich will create Foo.classbut you cannot run it with java fooyou will get Exception in thread "main" java.lang.NoClassDefFoundError: roids (wrong name: Foo)whereas java Foowill work just fine.

  • Some trouble with getElementById method

    Hi
    I have an XML file just like that:
    <?xml version="1.0" encoding="UTF-8"?>
    <persons id="root">
        <firstname1 id="firstname1">John</firstname1>
        <lastname1 id="lastname1">Brown</lastname1>
        <firstname2 id="firstname2">Andrew</firstname2>
        <lastname2 id="lastname2">Clark</lastname2>
        <firstname3 id="firstname3">Sylvie</firstname3>
        <lastname3 id="lastname3">Steevens</lastname3>
        <firstname4 id="lastname3"></firstname4>
        <lastname4 id="lastname4"></lastname4>
    </persons>I enter this one into the Document by using the standard way, problem is with calling gsome etElementById method. When I put there any one id value, firstname1, or root for instance, then I get null.
    What do I do wrong?
    Regards
    Krzysztof Malinowski

    http://javaalmanac.com/egs/org.w3c.dom/GetById.html

  • Trouble with isDigit method

    Hi guys,
    I am currently in the middle of my first Assignment for an intro to java. I seem to have done alright so far, except just for a couple of minor details. Firstly, I am developing an EXTREMELY basic atm prototype. I am passing the staring balance as a HTML parameter. I wan't to check that is is all numeric. If not then I want the label that displays the updated balance to say something like "must enter valid dollar amount". I know I have to use the isDigit method, 'cause I have successfully done that for my textfield, but I have absolutely no idea how to do it for this. I shall paste the relevant sections of code (that apear in order) and hope someone can help :)
    public void init()
         {//start of init method - initialisation of the applet
              //assigning inital balance to current balance variable
              StartBalStr = this.getParameter("InitialBalParameter");
              if ((StartBalStr == null) || (StartBalStr.equals("")))
                   StartBalStr = "No Starting Balance Provided";
    public static boolean isStringAllNumeric(String aString)
         {//looping structure to check from the first character to the last of the value entered
              int stringSize = aString.length();
              for (int i = 0; i < stringSize; i++)
                   boolean check = Character.isDigit(aString.charAt(i));
                   if (!check)
                   return false;//if any characters at each position of the string's length is not a digit
                        return true;//if any characters at each position of the string's length is a digit
         }//end of isStringAllNumeric function     
    public void keyTyped(KeyEvent ke)
                   char c = ke.getKeyChar();
                   if (!((Character.isDigit(c)) || (c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE) || (c == '.')))
                        getToolkit().beep();
                        ke.consume();

    How about this....
    if (isStringAllNumeric(StartBalStr)) {
    System.out.println("The param is numeric");
    } else {
    System.out.println("The param is non-numeric");
    Hope that was what you were after.
    Alan

  • Trouble with forwarding emails. Can't seem to find a way to get rid of previous senders' email addresses before myself forwarding on the email. I used to be able to do this before I upgraded. Any ideas?

    Can't seem to find a way to get rid of previous senders' email addresses before myself forwarding on the email. I used to be able to do this before I upgraded. Any ideas?

    Current Firefox versions have enabled a new build-in PDF Viewer and that viewer doesn't have all the features that the Adobe Reader has.
    You can change the action for Portable Document Format (PDF) from Preview in Firefox to use the Adobe Reader or set to Always Ask.
    *https://support.mozilla.org/kb/change-firefox-behavior-when-open-file
    You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to completely disable the build-in PDF viewer and use the Adobe Reader instead.
    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them

  • Beetle game..trouble with a method?

    I finally got the game to work (somewhat). The player keeps collecting body parts until it switches turns, then computer collects parts. However when one of the players (comp or player) gets a full beetle it still rolls...is my logic in these two methods correct?
    public static void playBeetle(String playerName, boolean hasBody, boolean hasHead,
                int legCount, int eyeCount, int feelerCount, boolean hasTail)
            boolean playerBody = false, computerBody = false, body=false,
                    playerHead = false, computerHead = false, head=false,
                    playerTail = false, computerTail = false, tail=false;
            int     playerLegs = 0,     computerLegs = 0,     legs=0,
                    playerEyes = 0,     computerEyes = 0,     eyes=0,
                    playerFeelers = 0,  computerFeelers = 0,  feelers=0;
            boolean winner = false;
            boolean rollAgain = true;
            boolean playerTurn = true;
            String message = "";
            int roll=0;
            String bodyPart = "";
            while(!winner)
                //Sets thr generic parts into the players parts depending on who's turn it is.
                if(playerTurn)
                    body=playerBody;
                    head=playerHead;
                    tail=playerTail;
                    legs=playerLegs;
                    eyes=playerEyes;
                    feelers=playerFeelers;      
                else
                    body=computerBody;
                    head=computerHead;
                    tail=computerTail;
                    eyes=computerEyes;
                    feelers=computerFeelers;
                    legs=computerLegs; 
                while(rollAgain)
                     if(playerTurn)
                            message+="\n"+playerName+":\n";
                        else
                            message+="\nCOMPUTER: \n";
                    message+=beetleString(body, head, legs, eyes, feelers, tail)+"\n";          
                    roll=randomGenerator.nextInt(6)+1;
                    message+="\nDie roll:"+roll+"...>";
                    switch(roll)
                        case BODY:
                             bodyPart="body";
                             if(body)
                                rollAgain=false;
                             else
                                body=true;
                        break;
                        case HEAD:
                            bodyPart="head";
                            if(body)
                                if(head)
                                    rollAgain=false;
                                else
                                    head=true;
                            else
                                rollAgain=false;
                        break;
                        case LEG:
                            bodyPart="two legs";
                            if(body)
                                if(legs==6)
                                    rollAgain=false;
                                else
                                    legs=legs+2;
                            else
                                rollAgain=false;
                        break;
                        case EYE:
                            bodyPart="eye";
                            if(head)
                                if(eyes==2)
                                    rollAgain=false;
                                else
                                    eyes=eyes+1;
                            else
                                rollAgain=false;
                        break;
                        case FEELER:
                            bodyPart="feeler";
                            if(head)
                                if(feelers==2)
                                    rollAgain=false;
                                else
                                    feelers=feelers+1;
                            else
                                rollAgain=false;
                        break;
                        case TAIL:
                            bodyPart="tail";
                            if(body)
                                if(tail)
                                    rollAgain=false;
                                else
                                    tail=true;
                            else
                                rollAgain=false;
                    message+=bodyPart;
                    if(rollAgain)
                         message+=beetleString(body, head, legs, eyes, feelers, tail);
                         if(completeBeetle(body, head, tail, legs, eyes, feelers))
                           if(playerTurn)
                               message+="\n Congratulations! You won!";
                           else
                               message+="\n Computer Won! Better luck next time!";
                           rollAgain=false;
                           winner=true;
                        else
                            message+="\n Click O.K. to roll again.";
                    else
                        message+="\nSorry, you cannot use the "+bodyPart;
                    JOptionPane.showMessageDialog(null, message);
                    message="";
               rollAgain=true;
               //Assigns players parts back to generic parts.
               if(playerTurn)
                   playerBody=body;
                   playerHead=head;
                   playerTail=tail;
                   playerLegs=legs;
                   playerEyes=eyes;
                   playerFeelers=feelers;
               else
                   computerBody=body;
                   computerHead=head;
                   computerTail=tail;
                   computerLegs=legs;
                   computerEyes=eyes;
                   computerFeelers=feelers;
               playerTurn=!playerTurn;
        }  // end method playBeetle
    public static boolean completeBeetle(boolean body, boolean head, boolean tail, int legs,
                            int eyes, int feelers)
            boolean fullBeetle=false;
            if(body)
                if(head)
                    if(tail)
                        if(legs==6)
                            if(eyes==2)
                                if(feelers==2)
                                    fullBeetle=true;
            return false;
        } // end method completeBeetle

    Your original code was fine, you only needed to change one thing...
    public static boolean completeBeetle(boolean body, boolean head, boolean tail, int legs,
                            int eyes, int feelers)
            boolean fullBeetle=false; //<-- this way you would need this
            if(body)
                if(head)
                    if(tail)
                        if(legs==6)
                            if(eyes==2)
                                if(feelers==2)
                                    fullBeetle=true; // <-- here should be...
                                    return true;
            return false;
        } // end method completeBeetleLogically...
    You only need to return true or false, so...
    if all your ifs prove true (the case you want) just return true...
    if not all if are met the method will hit the return false...
    this is because the compiler "kicks out of the method" when it sees a return statement, but...
    this way you also must capture the result of the method call! Hope that helps!

  • Trouble with a If conditional using string methods.

    Hello Everyone,
    I am having trouble with an If statement. I want to compare a string variable to two values using the or operator. I have found the || may not be applied to string.equals. Would neone happen to have a different method? Code below:
    check = ("C".equals(option)) || ("F".Equals(option));

    jverd wrote:
    Please paste in the exact, complete error message.
    One thing that's definitely wrong is the capital E in your second Equals. I don't know if that's causing the problem though.Also note that, once you get it to compile, if you don't remove the semicolon after the if statement, you won't get the behavior you want.

  • Trouble with bridge mode and port forwarding

    I have a Westell Model 6100F DSL modem in bridge mode into my network and I'm having trouble forwarding ports. Is there any general guidance available to do this. I have set many of my friends networks up to allow port forwarding but all have been on other service providers, mainly cable. (my experience) My network is the only one I have had trouble with.
    Basically, my question is, while in bridge mode, does the modem forward all incoming traffic to my NAT router or do I need to apply special port forwarding settings in the modem to allow this?
    If bridge mode is the reason I cannot forward the ports, can someone explain how to set the WEstell 6100F back to factory defaults so I can start over. 
    Any other suggestions?
    Thanks in advance.
    Paul

    If bridge mode is set up correctly, your router should be holding the Public IP address (basically not something that is a 192.168 address) as shown at http://www.whatismyip.com/ and compared against what IP your router has.
    If your router has the public IP, all problems lie with either your router or your PC's firewall and configuration. I'd check out portforward.com for some guides on forwarding ports for your router or poarticular application if you need some additional help.
    ========
    The first to bring me 1Gbps Fiber for $30/m wins!

  • Generic forwarding methods with recursive bounds.

    Hello all,
    I'm attempting to create a forwarding class assoicated with an interface. The interface has a generic method with recursive bounds. The problem relates to ambiguous method calls as the following code segment should demonstrate:
    interface TestInterface
        //generic method with recursive bounds. (use of Comparable<T> is
        // not relevant, any generic class/interface could have been used.)
        <T extends Comparable<T>> T testMethod(T bob);
    //Concrete implementation of the TestInterface.
    class TestClass implements TestInterface
        public <T extends Comparable<T>> T testMethod(T bob)
           return bob;
        public static void main(String[] args)
            TestInterface bob = new TestClass();
            bob.testMethod("blah"); //Works fine.
    class ForwardingClass implements TestInterface
        //Forwarding class composed of a TestClass object. All methods forward calls to this object.
        private final TestClass test;
        public ForwardingClass(TestClass test)
            this.test = test;
        //forwarding method.
        public <T extends Comparable<T>> T testMethod(T bob)
            return test.testMethod(bob);   //Ambiguous testMethod call. Both testMethod (T) in TestClass
                                           //and testMethod (T) in TestInterface match. Very annoying...
        }Therefore, if you could assist with the following issues, it would be greatly appreciated.
    Firstly, I don't think I fully understand why this error is given, so any explanation would be greatly appreciated.
    Secondly, is there any way to get around the problem?
    Thanks in advance,
    Matt.

    My bad. This appears to be an issue with Intellij 8.0M1. I'll create post on the Intellij forums. It compiles absolutely fine from the command line, and using Intellij 7.04. (Probably should have checked that before my initial post...)
    Apologies for wasting your time. Cheers for the replies.
    Matt.

  • How to use RequestDispatcher.forward method  in a portlet

    I have a servlet (HelloServlet2) that acts as the controller. This is a very simplified example. This servlet calls the dispatcher.foward(req, res) method to foward to a JSP page for displaying. At this point I get a FileNotFoundException. The HelloServlet2 is in the standard location WEB-INF/classes/com/a2i/industrial/servlet/HelloServlet2.java.
    How come it's looking in Industrial/servlet/HelloServlet2 instead of Industrial/WEB-INF/classes/..? If I access the servlet by http://host:port/Industrial/HelloServlet2, it works fine. I have another portlet (servlet) that doesn't call the forward method and it works fine too. Thanks for your help.
    Here is the web.xml:
    <servlet>
    <servlet-name>HelloServlet2</servlet-name>
    <display-name>HelloServlet2</display-name>
    <servlet-class>com.a2i.industrial.servlet.HelloServlet2</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloServlet2</servlet-name>
    <url-pattern>/HelloServlet2/*</url-pattern>
    </servlet-mapping>
    Here is the calling code from HelloServlet2:
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    RequestDispatcher dispatcher= getServletContext().getRequestDispatcher("/hello.jsp");
    dispatcher.forward(req, res);
    Here is the portlet definition:
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>2</id>
    <name>HelloServlet2</name>
    <title>Hello Servlet2</title>
    <shortTitle>Hello Servlet2</shortTitle>
    <description>This is the "hello world" sample implemented using Java Servlets and the extensible renderer architecture.</description>
    <timeout>10000</timeout>
    <timeoutMessage>Hello Servlet timed out</timeoutMessage>
    <acceptContentType>text/html</acceptContentType>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <contentType>text/html</contentType>
    <autoRedirect>true</autoRedirect>
    <showPage>/servlet/HelloServlet2</showPage>
    </renderer>
    </portlet>
    Here is the stack trace:
    7/15/03 10:43 AM industrial: JspServlet: unable to dispatch to requested page: java.io.FileNotFoundException: C:\ora9iasp\j2ee\OC4J_Portal\applications\_industrial\industrial\servlet\HelloServlet2 (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:64)
         at oracle.jsp.provider.JspFilesystemResource.fromStream(JspFilesystemResource.java:153)
         at oracle.jsp.provider.JspFilesystemResource.fromReader(JspFilesystemResource.java:169)
         at oracle.jsp.runtimev2.JspPageCompiler.fromReader(JspPageCompiler.java:345)
         at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:250)
         at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:171)
         at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:338)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:481)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
         at com.a2i.industrial.servlet.HelloServlet2.doGet(HelloServlet2.java:21)
         at com.a2i.industrial.servlet.HelloServlet2.doPost(HelloServlet2.java:14)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:108)
         at oracle.portal.provider.v2.render.http.ResourceRenderer.renderBody(Unknown Source)
         at oracle.portal.provider.v2.render.RenderManager.render(Unknown Source)
         at oracle.portal.provider.v2.DefaultPortletInstance.render(Unknown Source)
         at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showPortlet(Unknown Source)
         at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    7/15/03 10:43 AM industrial: ERROR: ResourceRenderer.renderBody - Resource "/servlet/HelloServlet2" returned HTTP Status: 404. Error message: OracleJSP:
    java.io.FileNotFoundException: C:\ora9iasp\j2ee\OC4J_Portal\applications\_industrial\industrial\servlet\HelloServlet2 (The system cannot find the path specified). Content returned follows....

    Thanks for you help David. I changed my code from getServletContext().getRequestDispatcher(jspPage).forward(req, res) to getServletContext().getNamedDispatcher(jspPage).forward(req, res). It worked but I run into the same problem with jsp:include.
    I am using the July 2003 of the PDK. I followed the direction for installing version 2 but I did not redeploy with the new jpdk.ear since one was already deployed. After redeploying with the new jpdk.ear, it fixed the jsp:include problem I was having. The problem with using getServletContext().getRequestDispatcher(jspPage).forward(req, res) STILL exist. I am not sure what the deal is.
    Oh, I also tried the code below and it doesn't work.
    path = req.getContextPath() + jspPage
    getServletContext().getRequestDispatcher(path).forward(req, res)
    In any case, using getNamedDispatcher() is working fine. I am still curious about getRequestDispatcher() though.

  • Interesting Problem in VA4Java: Using POST with forward(req, res)

    I am trying to use POST Metod with forward(request, response) in VisualAge for java using webSphere test environment and getting an error page. Interesting thing is that if I set a breakpoint then I get the desired page otherwise an error page. However, if use GET Method everything works fine. What confuses me is that why POST method is not working without setting a breakpoint and running the code in debug mode? Does it has to do with WebSphere test environment or problem of using POST method with requrest forwarding in servelt API?

    Hi there,
    I am beginning in developping jsp / servlet in VAJ3.5 and Websphere Test Environment.
    i manage to run the servlet properly. unfortunetely the jsp is not working properly : in my hello.jsp (this example is coming from tomcat4.0), there is a method 'request.getContextPath()'
    WTE send me a message : 'method not found in interface javax.servet.http.HttpServletRequest'
    Any idea hox to solve this?
    VAJ3.5, WTE use JSP1.0, is it something linked to this?
    Thanks to you.
    Regards
    Hugues

  • Issue with addPartialTarget method (Pop-up window)

    Hi, I am facing an issue with addPartialTarget method (pop-up window case). Please refer the thread Re: popup dialog problem
    If we are using addPartialTarget method, should the managed bean be in session scope? I've set it is in request scope. It works fine with 1 user. But if we test with more than 1 user using HP mercury load runner, it is failing and giving the following exception related to partial target. What should be the solution for this issue? This is very urgent. Even after setting the managed bean in session scope, I am getting the same error as shown below:
    java.lang.ArrayIndexOutOfBoundsException: -1
    at java.util.ArrayList.get(Unknown Source)
    at oracle.adfinternal.view.faces.renderkit.core.ppr.PPRResponseWriter._popPartialTarget(PPRResponseWriter.java:223)
    at oracle.adfinternal.view.faces.renderkit.core.ppr.PPRResponseWriter.endElement(PPRResponseWriter.java:138)
    at oracle.adfinternal.view.faces.ui.ElementRenderer.postrender(ElementRenderer.java:81)
    at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.postrender(XhtmlLafRenderer.java:225)
    at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:83)
    at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
    at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.renderWithNode(UINodeRenderer.java:90)
    at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.render(UINodeRenderer.java:36)
    at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177)
    at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53)
    at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
    at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:54)
    at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:242)
    at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:265)
    at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)
    at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)
    at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:102)
    at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)
    at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.delegateRenderer(CoreRenderer.java:281)
    at oracle.adfinternal.view.faces.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:60)
    at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)
    at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
    at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:645)
    at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:568)
    at oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:100)
    at app.App__cusadd_jspx._jspService(_App__cusadd_jspx.java:3274)
    at com.orionserverhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:287)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
    at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.webcache.adf.filter.PageCachingFilter.doFilter(PageCachingFilter.java:274)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
    at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.3.0) .util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Unknown Source)

    duplicate
    Frank

Maybe you are looking for

  • J2EE Start Failed after upgrade

    Hello Guys ! I Have this problem since upgra SP22. #1.5 #005056AA79B8001C00000010000013CC000494B587D8095A#1289407295922#/System/Server##com.sap.engine.core.service630.container.ServiceRunner#######SAPEngine_System_Thread[impl:5]_55##0#0#Error#1#com.s

  • So my sister forgot her itouch password. what do i do?

    She changed her password and then forgot it. The ipod was disabled and it told us to connect it to itunes but it never unlocked the ipod. im not sure what else i can do other then to take it to the itunes store. is there anything i can do? please hel

  • Hi i need help in worflow in sap EDI

    i sap gurus i have  two issues in sap workflow .can u guys help me out in sorting out these issues. 1) When checking out/reserving a work flow item(TC: SBWP), there is no option to display who has it checked out.  When the workflow item is reserved,

  • Is it possible to compile on a remote server

    i have a web logic server in another state -- just as a curiousity is it possible to compile things on that server without having console access (access to the dos prompt or telnet) ? stephen

  • Speech application (system pref)

    why is speech application (system pref)  no longer working with Lion? Or at least when I down loaded Lion it stoped working