Further details
I got the feeling that has something to do with the JspWriter implementation of Tomcat 5.x, rather then with ServletOutputStream and PrintWriter: filtering a servlet invoking getWriter() to do its output works. It doesn't with jsp(s), which instead rely on JspWriter. In my JspWriter API doc, I read the following: The initial JspWriter object is associated with the PrintWriter object of the ServletResponse... which will be created if necessary by invoking the getWriter() method on the response object. So it seems that a JspWriter implementation shall rely on the getWriter() call to obtain a PrintWriter (and, in fact, my overriding version of getWriter() gets called...). Putting a [EMAIL PROTECTED] autoFlush=true/false% doesn't help either. Any idea? Regards everybody, Giampaolo Tomassoni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Further details - RequestDispatcher in servlet is not working
Correct me if I am wrong Try Using... RequestDispatcher objReqDispatcher = getServletContext().getRequestDispatcher(strURL); instead of what u r using ... RequestDispatcher objReqDispatcher = request.getRequestDispatcher(strAddress); ( in this case all the paths are relative to the calling servlets path.. look into this ..u may find something helpful..) Regards, Basu. - Original Message - From: Teja Jo [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 19, 2003 9:47 AM Subject: RE: Further details - RequestDispatcher in servlet is not working Hello, It is the doGet method of servlet - what will it return after the forward call- its return type is void.Here after the forward call when I had given a log message - that message got logged (the RequestDispatcher object got is not null was proved since I printed that object address) - but the result of forwarded url page did not reach the browser.The browser remained at the first page - which had begun the request procedure to the servlet. Regards and thanks, Teja. Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, //uptil this point it gets executed properly strAddress = /WEB-INF/internalJsp/ReceiveJsp.jsp; RequestDispatcher objReqDispatcher = request.getRequestDispatcher(strAddress); objReqDispatcher.forward(request,response); Here request dispatcher is not working - it doesn't forward the request. What happens, then? Don't forget to return from your method above after the .forward call. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Free Pop-Up Blocker - Get it now
RE: Further details - RequestDispatcher in servlet is not working
Howdy, Just return; to exit the doGet method. Believe me, I know the doGet method returns void ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Teja Jo [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 11:17 PM To: Tomcat Users List Subject: RE: Further details - RequestDispatcher in servlet is not working Hello, It is the doGet method of servlet - what will it return after the forward call- its return type is void.Here after the forward call when I had given a log message - that message got logged (the RequestDispatcher object got is not null was proved since I printed that object address) - but the result of forwarded url page did not reach the browser.The browser remained at the first page - which had begun the request procedure to the servlet. Regards and thanks, Teja. Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, //uptil this point it gets executed properly strAddress = /WEB-INF/internalJsp/ReceiveJsp.jsp; RequestDispatcher objReqDispatcher = request.getRequestDispatcher(strAddress); objReqDispatcher.forward(request,response); Here request dispatcher is not working - it doesn't forward the request. What happens, then? Don't forget to return from your method above after the .forward call. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Free Pop-Up Blocker - Get it now This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Further details - RequestDispatcher in servlet is not working
Howdy, //uptil this point it gets executed properly strAddress = /WEB-INF/internalJsp/ReceiveJsp.jsp; RequestDispatcher objReqDispatcher = request.getRequestDispatcher(strAddress); objReqDispatcher.forward(request,response); Here request dispatcher is not working - it doesn't forward the request. What happens, then? Don't forget to return from your method above after the .forward call. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Further details - RequestDispatcher in servlet is not working
Hello, It is the doGet method of servlet - what will it return after the forward call- its return type is void.Here after the forward call when I had given a log message - that message got logged (the RequestDispatcher object got is not null was proved since I printed that object address) - but the result of forwarded url page did not reach the browser.The browser remained at the first page - which had begun the request procedure to the servlet. Regards and thanks, Teja. Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, //uptil this point it gets executed properly strAddress = /WEB-INF/internalJsp/ReceiveJsp.jsp; RequestDispatcher objReqDispatcher = request.getRequestDispatcher(strAddress); objReqDispatcher.forward(request,response); Here request dispatcher is not working - it doesn't forward the request. What happens, then? Don't forget to return from your method above after the .forward call. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Free Pop-Up Blocker - Get it now
Further details - RequestDispatcher in servlet is not working
Hello everyone, wrt the need for actual code - I am sending this code which is executed by doGet method of my servlet : String temp = request.getParameter(abc); if( temp.equals(xyz)) { //do some processing ... } //uptil this point it gets executed properly strAddress = /WEB-INF/internalJsp/ReceiveJsp.jsp; RequestDispatcher objReqDispatcher = request.getRequestDispatcher(strAddress); objReqDispatcher.forward(request,response); Here request dispatcher is not working - it doesn't forward the request. Thanks and regards, Tejashri. Ben Souther [EMAIL PROTECTED] wrote: Request dispatcher is working fine for me. Can you send some code and a description of your environment? On Wednesday 17 December 2003 10:57 pm, you wrote: Hello everyone, My servlet after processing something from the HttpServletRequest received by it - is supposed to forward the request using RequestDispatcher - but it is not doing so.(Only when directly forwarded without doing any initial processing with the request - it gets forwarded).Please give a solution for this. Thanks and regards, Tejashri. - Do you Yahoo!? Free Pop-Up Blocker - Get it now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Free Pop-Up Blocker - Get it now