RequestDispatcher

2002-10-14 Thread Roland Carlsson
Hi! I got a problem with the RequestDispatcher. I'm trying to make a simple framwork to include jsp-pages as components into a template-jsp. But I doesn't get the pages nested the way I'd like it. Could anyone please explain why the RequestDispatcher puts page2 before page1 in

requestdispatcher

2003-01-24 Thread Felipe Schnack
Hey guys... i'm doing something wrong or if when you set an request attribute and then do a RequestDispatcher.forward() you lost your new attribute? -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Centro Universitário Ritter dos Reis http://w

RequestDispatcher

2003-07-11 Thread Abid Ali Teepo
Hi When i use the RequestDispatcher within a first.jsp and forward to someother.jsp that produces the output, why doesn't the url-address in the browser show someother.jsp instead of first.jsp ? Any suggestions to how i can make it show the actual jsp-file in the url-address field o

Re: RequestDispatcher

2002-10-14 Thread Roland Carlsson
Regards Roland Carlsson - Original Message - From: "Roland Carlsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 14, 2002 9:48 AM Subject: RequestDispatcher Hi! I got a problem with the RequestDispatcher. I'm trying to make a simple framwo

RequestDispatcher question

2002-08-09 Thread Scott Purcell
} private void gotoPage(String address, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(address); d

RequestDispatcher failure

2001-05-04 Thread Mark Mynsted
Has anybody seen this behavior? If I use the following code I get no errors. RequestDispatcher dispatcher = request.getRequestDispatcher(url); dispatcher.forward(request, response); If I use the following code I get a null pointer exception because dispatcher is null. RequestDispatcher

RequestDispatcher problem

2003-01-15 Thread Daren R. Sefcik
I am using RequestDispatcher with an app in Jetty that seems to work fine but I am moving over to Tomcat and find it does not work. With Tomcat the page will forward its request and the browser will display the source html instead of the rendered html page..the only exception to this is IE, it

RE: requestdispatcher

2003-01-24 Thread Mike Jackson
I'll assume that you're doing something like this: response.setAttribute( "ATTR", new Object() ); RequestDispatcher d = response.getRequestDispatcher( "/test.jsp" ); d.forward( request, response ); If it's something like that the attrib

RE: requestdispatcher

2003-01-24 Thread Felipe Schnack
Sorry you all, I was doing something very very stupid, it's working now :-(( On Fri, 2003-01-24 at 15:55, Mike Jackson wrote: > I'll assume that you're doing something like this: > > response.setAttribute( "ATTR", new Objec

RequestDispatcher problem

2003-02-15 Thread Sergio Ocio Barriales
t;1" and there is no template stored in the database, it stores the new one and then it does this: RequestDispatcher rd = req.getRequestDispatcher("iowa?event=TEMPLATES&state=2"); rd.forward(req, resp); It DOES work. However, when it recieves state="1" and there is alre

RE: RequestDispatcher

2003-07-11 Thread Mike Curwen
uly 11, 2003 9:23 AM > To: Tomcat Users List > Subject: RequestDispatcher > > > Hi > > When i use the RequestDispatcher within a first.jsp and > forward to someother.jsp that produces the output, why > doesn't the url-address in the browser show someother.jsp &g

requestdispatcher question

2003-09-29 Thread Josh G
I have a quick question, how do I set up my system so that I can return some pages through a requestdispatcher that can't be requested by the user direct from the browser? Cheers, -Josh -- [ Josh 'G' McDonald ][ 0415 784 825 ][ http://w

RequestDispatcher include

2004-08-17 Thread Chris Cherrett
I am having a problem with Tomcat 5.0.27. RequestDispatcher include function returns java.lang.StringIndexOutOfBoundsException: String index out of range: - This problem does not appear in Tomcat 4.1.30 any ideas? - To

RequestDispatcher include()

2000-11-11 Thread Wyn Easton
Hello, I'm having trouble using the include() method of RequestDispatcher. I have a servlet that is accessed via a URL (servlet_A). servlet_A gets an input stream from the request and reads some data (all being sent). Then based on what was read, servlet_A will create a RequestDispatche

Charsets and RequestDispatcher

2002-10-29 Thread Holger Brozio
OException, ServletException { // Acquire request parameters we need String incPage = request.getParameter("incpage"); if (incPage != null) { RequestDispatcher rd = getServletContext().getRequestDispatcher(incPage);

RequestDispatcher, include, flush

2002-06-25 Thread Apu Shah
i am using tomcat 4.0.3, apache 2.0.34 over ssl with the warp connector. i have set the connector allowChunking to false. the problem that i see is that after i use getRequestDispatcher(page).include(req,resp) and flush the resp.out, the page does not get flushed to the browser. here is sample

RE: RequestDispatcher question

2002-08-12 Thread Shapira, Yoav
day, August 09, 2002 1:57 PM >To: [EMAIL PROTECTED] >Subject: RequestDispatcher question > >Hello, > >I am trying to send a (request, response) object to a server that lives at >another IP (or URL). I have the need to pass parameters that are in the >request object, but I can

RE: RequestDispatcher failure

2001-05-04 Thread Grewal, Gary
Title: RE: RequestDispatcher failure Using request the URL given can be relative and using the application it has to be absolute begining with a '/'. Check to see if this may be the cause of the error. Thanks and Regards, === Gary Grewal -Original Message- From: Ma

Re: RequestDispatcher failure

2001-05-04 Thread Grewal, Gary
Title: Re: RequestDispatcher failure Using request the URL given can be relative and using the application it has to be absolute begining with a '/'. Check to see if this may be the cause of the error. Thanks and Regards, === Gary Grewal -Original Message- From: Ma

Re: RequestDispatcher failure

2001-05-04 Thread Mark Howell
er(url) method cannot find the url, it returns null. This is discussed in the servlet and/or jsp spec. -Mark Howell [EMAIL PROTECTED] Mark Mynsted wrote: > > Has anybody seen this behavior? > > If I use the following code I get no errors. > > RequestDispatch

RE: RequestDispatcher failure

2001-05-04 Thread Mark Mynsted
application it has to be absolute begining with a '/'. Check to see if this may be the cause of the error. Thanks and Regards, === Gary Grewal -Original Message- From: Mark Mynsted [mailto:[EMAIL PROTECTED]] Sent: Friday, May 04, 2001 10:41 AM To: [EMAIL PROTECTED] Subjec

RequestDispatcher/Session problems

2001-06-08 Thread Boyle, William (CAP, TIP)
) throws ServletException, IOException { RequestDispatcher rd = req.getRequestDispatcher("/servlet/TestSession2"); rd.include(req, res); HttpSession session = req.getSession(true); session.setAttribute("msg", "The session is functioning prope

requestdispatcher with tags

2002-01-10 Thread Scott Walter
I am trying to use Tomcat 4 to equestDispatcher.include() with a servlet that I have written which returns a gif image. However when I have the following code in the doStartTag() I get nothing: RequestDispatcher rd = pageContext.getRequest().getRequestDispatcher("/path/to/my/se

HttpServletRequest and RequestDispatcher

2001-03-29 Thread Wyn Easton
Hello, Could someone help me understand the following situation? I have two servlets (s1 and s2) and one jsp (j1). If I do this in s1: request.setAttribute("str1", "Hello"); then forward to s2: ...forward(request,response); In s2 I do this: request.setAttribute("str1", "So Long"); then forward b

RequestDispatcher and forward

2003-01-05 Thread jejonas
OS: Windows XP - for development TC: 4.1.18 JA: 1.4.1_01 I was under the impression that after calling RequestDispatcher.forward the method would return and all subsequent processing would cease. However, this apparently isn't the case. For instance, when a user logs on successfully, we attach

Redirect vs RequestDispatcher

2003-07-10 Thread Abid Ali Teepo
Hi I need some input on pro & con with using redirect instead of requestdispatcher. I heard someone mention something about firewall issues or other security concerns The reason i'm asking is that i have a problem making my requestdipatcher work, while the redirection works just

Re: requestdispatcher question

2003-09-30 Thread Tim Funk
Put the pages in any subdirectory under WEB-INF. -Tim Josh G wrote: I have a quick question, how do I set up my system so that I can return some pages through a requestdispatcher that can't be requested by the user direct from the browser? Cheers,

RequestDispatcher in jspInit() ?

2004-06-01 Thread Jerry Miernik
Is it possible to use RequestDispatcher's include method inside a jspInit(), to execute another JSP script while this JSP script is in its jspInit() method? Thanks, Jerry. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Off Topic - RequestDispatcher

2004-01-27 Thread N.B.Bopanna
Hi all , i want to forward the control from a servlet to a jsp file using RequestDispatcher. the following code works:- RequestDispatcher rd=request.getRequestDispatcher("finyear.jsp"); rd.forward(request,response); and this does not work:- RequestDispatcher rd=getSer

Re: RequestDispatcher include()

2000-11-11 Thread Wyn Easton
Forgot to mention I'm using 3.2 beta 6 --- Wyn Easton <[EMAIL PROTECTED]> wrote: > Hello, > > I'm having trouble using the include() method of RequestDispatcher. > I have a servlet that is accessed via a URL (servlet_A). > servlet_A gets an input stream from

RequestDispatcher - use of

2000-12-18 Thread Graeme Wallace
Lets say I wanted to implement a MVC type architecture where all the URLs are handled by a common controller servlet. By all URLs I mean everything not just .jsp. If I did this in Tomcat 3.1 the request dispatcher would let me forward to a file (jsp, html or image) without further interpretation

Re: Charsets and RequestDispatcher

2002-10-29 Thread Bill Barker
; { > // Acquire request parameters we need > String incPage = request.getParameter("incpage"); > if (incPage != null) > { > RequestDispatcher rd = > getServletContext().getRequestDispatcher(incPage); >

RequestDispatcher forward versus response.sendRedirect

2002-07-24 Thread Jason Stortz
Anyone have any hard and fast rules, good links, general info, do and don't lists, or anything about these two? We moved from iPlanet 4.1 where we did all redirection with response.sendRedirect. That didn't work with tomcat so I started using the forward method of RequestDispatcher.

RequestDispatcher & HttpServletRequest wrapper issue.

2001-10-27 Thread Nicolas Romanetti
y invoking their counterpart on the original HttpServletRequest. Later on, during the request processing, I need to do 2 things: a 'forward' and some 'include. To do so I need to pass to the RequestDispatcher the HttpServletRequest (i.e. my FormDataRequest), for example: req

Problem: Servlet Mappings & RequestDispatcher

2001-07-10 Thread Philip Weaver
le this, please help. I'm about to scream at the walls. The entire goal that I'm pursuing is to provide login security for my web app. I know how to create servlet mappings in web.xml and I basically know how to use RequestDispatcher. However, I'm running into either of these two

Problem: Servlet Mappings & RequestDispatcher

2001-07-11 Thread Frank Lawlor
Re problem B. I found that after some re-directions Tomat ContextManager seemed to be messing up the context path (see "Please explain this Context"). You can tell if this is happening by having the ContextManager log its mappings: in Server.xml. It is either a bug or some strange semantics

Re: requestdispatcher with tags

2002-01-10 Thread Craig R. McClanahan
On Thu, 10 Jan 2002, Scott Walter wrote: > Date: Thu, 10 Jan 2002 19:38:58 -0800 (PST) > From: Scott Walter <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: requestdispatcher with tags > &g

Re: HttpServletRequest and RequestDispatcher

2001-03-29 Thread Bo Xu
Wyn Easton wrote: > Hello, > > Could someone help me understand the following > situation? > > I have two servlets (s1 and s2) and one jsp (j1). > If I do this in s1: > request.setAttribute("str1", "Hello"); > then forward to s2: > ...forward(request,response); > In s2 I do this: > request.setAtt

Re: RequestDispatcher and forward

2003-01-05 Thread jejonas
Well, forget it. :) I looked at some of my old code from a couple of years ago and found my answer. Baaad assumption on my part. Thanks for the bandwidth. Jason > OS: Windows XP - for development > TC: 4.1.18 > JA: 1.4.1_01 > > I was under the impression that after calling RequestDispatcher.

Re: RequestDispatcher and forward

2003-01-05 Thread Reto Gmuer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The behavior we're seeing is that the 'forward to login page' fails with an IllegalStateException (Cannot forward after response has been committed). I got this exception when I invoked the getWriter() or when I set the content-type before doing th

RequestDispatcher and WEB-INF

2003-02-20 Thread rf
I want to give out an exe after an authorization. So I put the exe in WEB-INF to avoid direct access, and tried to do: RequestDispatcher rd = req.getRequestDispatcher("/WEB-INF/my.exe"); rd.forward (req, res); Tomcat 4.0.6 says /WEb-INF/my.exe cannot be found. I dont kno

RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Timothy Stone
List, I'm having some trouble with using a RequestDispatcher, it works and doesn't work. #doPost( req, res ) ... 50 Customer customer = 51 Customer.findCustomer( emailAddress, custData); 52 53 if(( customer == null ) || 54( password == null ) || 55( !passw

RequestDispatcher and pageEncoding question...

2004-04-15 Thread Timothy Stone
the finger there at the moment. Can someone outline what is going on behind the scenes of the requestDispatcher call that would be reseting the response's contentType? Many thanks in advance, Tim - To unsubscribe, e-ma

RequestDispatcher resource not available

2004-05-19 Thread Nitschke Michael
We are now using just on servlet which gets all the request and map's them to other classes bei Classinvocation. But we would now benefit from the servlet abillitys and are now reworking the system to switch to RequestDispatcher. The problem is now that I could not find the right pa

Re: RequestDispatcher in jspInit() ?

2004-06-01 Thread Tim Funk
No -Tim Jerry Miernik wrote: Is it possible to use RequestDispatcher's include method inside a jspInit(), to execute another JSP script while this JSP script is in its jspInit() method? Thanks, Jerry. - To unsubscribe,

RE: RequestDispatcher in jspInit() ?

2004-06-01 Thread Jerry Miernik
of a JavaBean inside jspInit()? Thanks, Jerry. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 7:08 AM To: Tomcat Users List Subject: Re: RequestDispatcher in jspInit() ? No -Tim Jerry Miernik wrote: > Is it possible to

Re: RequestDispatcher in jspInit() ?

2004-06-01 Thread Tim Funk
x, I am missing, that enables usage of a JavaBean inside jspInit()? Thanks, Jerry. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 7:08 AM To: Tomcat Users List Subject: Re: RequestDispatcher in jspInit() ? No -Tim Jerry Miernik wrote: Is it

RE: Off Topic - RequestDispatcher

2004-01-28 Thread Shapira, Yoav
ilto:[EMAIL PROTECTED] >Sent: Monday, January 26, 2004 7:36 AM >To: [EMAIL PROTECTED] >Subject: Off Topic - RequestDispatcher > >Hi all , >i want to forward the control from a servlet to a jsp file using >RequestDispatcher. > >the following code works:- > >Reque

RequestDispatcher and Context Path

2001-01-04 Thread Steve Haines
lhost:8080/myapp/myfolder/mypage.jsp Forwarding it via a RequestDispatcher works fine: // Forward the request to the proper Url RequestDispatcher dispatcher = req.getRequestDispatcher( "/myfolder/mypage.jsp" ); dispatcher.forward( req, res ); But the page itself references other page

Thread safety for RequestDispatcher

2004-12-08 Thread Phil Shaw
I'm looking at design options for a servlet that uses forwarding. If I were to get a RequestDispatcher in the init method (from ServletContext) and store it as a static field, it would save getting a RequestDispatcher for every request object. That may minimise unnecessary repetition,

jsp include/RequestDispatcher incompatible?

2005-06-28 Thread George Finklang
have the following code in my jsp, which is called by a forward from my Controller servlet. The various Dispatchers are either servlets or jsps declared in my web.xml. All the servlets and jsps get run correctly. The problem is the output. The output of the root jsp and the 3-4 included jsps are a

Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError

2002-11-26 Thread Stephen Riek
"/fr/", set the lang to "fr". if (servletPath.indexOf("/fr/") == 0) { request.setAttribute("lang", "fr"); String targetURL = servletPath.substring(3); System.out.println("targetURL = " + targetURL); RequestDispatcher rd = null;

RE: j_security_check question: RequestDispatcher .forward!!

2002-07-03 Thread Kevin Andryc
OK, So I found that I can access my servlet if I don't use the RequestDispatcher .forward method. In other words, when I try and access my page (e.g.: http://localhost:8080/dev/servlet/ProtectedPage) I get a login JSP form that I specified. When I login successfully,the login page reap

RE: RequestDispatcher forward versus response.sendRedirect

2002-07-24 Thread Sullivan, Mark E
when you say response.sendRedirect doesn't work, what kind of error/unexpected behavior are you getting? -Original Message- From: Jason Stortz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 11:12 AM To: Tomcat Users List Subject: RequestDispatcher forward v

RE: RequestDispatcher forward versus response.sendRedirect

2002-07-24 Thread Jason Stortz
302 temporarily moved error. -Original Message- From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 11:13 AM To: 'Tomcat Users List' Subject: RE: RequestDispatcher forward versus response.sendRedirect when you say response.sendRedirect doesn&#x

RE: RequestDispatcher forward versus response.sendRedirect

2002-07-24 Thread jeff . guttadauro
relative paths are obviously best. Good to hear that you're using the RequestDispatcher for this purpose now. HTH, -Jeff "Sulliv

RE: RequestDispatcher forward versus response.sendRedirect

2002-07-24 Thread Jason Stortz
Jeff, Thanks for reply. So, probably always use response.sendRedirect with absolute url to something out of my webapp, but RequestDispatcher for moving to other sources inside my webapp? Does that sound right? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

RE: RequestDispatcher forward versus response.sendRedirect

2002-07-24 Thread jeff . guttadauro
tortz" smith.com>cc: Subject: RE: RequestDispatcher forward versus response.sendRedirect 0

RequestDispatcher --> jsp page compile problems

2001-04-19 Thread Mark Howell
Hello, I'm new to this list, and please tell me if my question is misdirected. I'm using Tomcat 4.0 beta 3. I have a servlet that creates some session-scoped objects, then forwards control to a jsp page to display them using a RequestDispatcher. Regardless of whether I use incl

Re: RequestDispatcher & HttpServletRequest wrapper issue.

2001-10-27 Thread Craig R. McClanahan
12:31:35 -0700 > From: Nicolas Romanetti <[EMAIL PROTECTED]> > Reply-To: Tomcat Users Mailing List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: RequestDispatcher & HttpServletRequest wrapper issue. > > Hello, > > I am developing an internationalized

RE: Problem: Servlet Mappings & RequestDispatcher

2001-07-11 Thread Saritha Pula
[mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 10:47 AM To: Tomcat (E-mail) Subject: Problem: Servlet Mappings & RequestDispatcher Re problem B. I found that after some re-directions Tomat ContextManager seemed to be messing up the context path (see "Please explain this Conte

RE: RequestDispatcher and WEB-INF

2003-02-20 Thread Mike Jackson
3 3:51 AM > To: [EMAIL PROTECTED] > Subject: RequestDispatcher and WEB-INF > > > I want to give out an exe after an authorization. So I > put the exe in WEB-INF to avoid direct access, and > tried to do: > RequestDispatcher rd = > req.getRequestDispatcher("/W

Re: RequestDispatcher and WEB-INF

2003-02-20 Thread Erik Price
/RequestDispatcher.html#forward(javax.servlet.ServletRequest,%20javax.servlet.ServletResponse) Erik -Original Message- From: rf [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 3:51 AM To: [EMAIL PROTECTED] Subject: RequestDispatcher and WEB-INF I want to give out an exe after an

RE: RequestDispatcher and WEB-INF

2003-02-20 Thread Edson Alves Pereira
Tomcat Users List > Assunto: Re: RequestDispatcher and WEB-INF > > I do not think you can forward to a .exe file, not sure of what the spec > says but the Javadoc says only JSP or HTML files. > > This link will probably get broken in your mail client, but if you >

RE: RequestDispatcher and WEB-INF

2003-02-20 Thread rf
It is strange that RequestDispatcher considers only jsp and html, why not other extns like jpg/gif or why not just any other resource - is this because of any security concern? Also, I have not understood your workaround Mr Edson, can you please tell me in more detail how to get around my problem

Re: RequestDispatcher and WEB-INF

2003-02-21 Thread Erik Price
rf wrote: It is strange that RequestDispatcher considers only jsp and html, why not other extns like jpg/gif or why not just any other resource - is this because of any security concern? I don't think it's security, but I looked at the Servlet spec (page 55) and couldn't

Re: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Tim Funk
It should blow up at line 61. customer is null. Add a line 57.5: return; -Tim Timothy Stone wrote: List, I'm having some trouble with using a RequestDispatcher, it works and doesn't work. #doPost( req, res ) ... 50 Customer customer = 51 Customer.findCustomer( emailAddress, cus

Re: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Timothy Stone
Tim Funk wrote: It should blow up at line 61. customer is null. Add a line 57.5: return; -Tim I know it's null :) That's the idea of checking to see if the customer or the password on the request is null, or if the password is incorrect. Forward the user to the "/move/accounts.jsp". The forward i

RE: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Shapira, Yoav
Howdy, The return; that Tim added is just as important as the null check... Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Timothy Stone [mailto:[EMAIL PROTECTED] >Sent: Monday, June 16, 2003 3:09 PM >To: Tomcat Users List >Subject: Re: RequestDispa

Re: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Timothy Stone
Shapira, Yoav wrote: Howdy, The return; that Tim added is just as important as the null check... Yoav Shapira Millennium ChemInformatics Tim Funk wrote: It should blow up at line 61. customer is null. Add a line 57.5: return; -Tim I guess that the way I understood forward( req, res) was that con

RE: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Shapira, Yoav
n control after RequestDispatcher#forward calls. That's why pages like this: http://www.wdvl.com/Authoring/Java/Servlets/request.html that say "Any code written in our DispatcherTest servlet after "rd.forward(request, response);" will not execute as the request is already forwarded&q

Re: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Timothy Stone
d should return control after RequestDispatcher#forward calls. That's why pages like this: http://www.wdvl.com/Authoring/Java/Servlets/request.html that say "Any code written in our DispatcherTest servlet after "rd.forward(request, response);" will not execute as the request is a

Re: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-17 Thread Timothy Stone
This issue is archived at: http://marc.theaimsgroup.com/?l=tomcat-user&m=105578975520239&w=2 Timothy Stone wrote: I have to say, the behavior seems almost identical to the described behavior of RequestDispatcher#include since control is given back to the forwarding servlet. Th

RE: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-17 Thread Shapira, Yoav
d this may become even worse with Servlet 2.4 ResponseListeners. So that's why I like the first approach better. Seeing as how your book was well-written enough to note control is returned after calling RequestDispatcher#forward, I must assume the book was written before Servlet 2.3 came out,

Re: RequestDispatcher and pageEncoding question...

2004-04-15 Thread Timothy Stone
rective, so I'm pointing the finger there at the moment. Can someone outline what is going on behind the scenes of the requestDispatcher call that would be reseting the response's contentType? From the documentation: "...Uncommitted output in the response buffer is automatically cleared

Re: RequestDispatcher and pageEncoding question...

2004-04-15 Thread Timothy Stone
te in the page directive, so I'm pointing the finger there at the moment. Can someone outline what is going on behind the scenes of the requestDispatcher call that would be reseting the response's contentType? From the documentation: "...Uncommitted output in the response buffer is

RE: RequestDispatcher and pageEncoding question...

2004-04-16 Thread Yansheng Lin
-Yan -Original Message- From: Timothy Stone [mailto:[EMAIL PROTECTED] Sent: April 15, 2004 14:45 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: RequestDispatcher and pageEncoding question... Timothy Stone wrote: > Timothy Stone wrote: > >> List, >> >> A servlet

Re: RequestDispatcher and [contentType] question...

2004-04-16 Thread Timothy Stone
any work done prior to the forwarding of the request. Thank you, Yansheng. Tim -Original Message- From: Timothy Stone [mailto:[EMAIL PROTECTED] Sent: April 15, 2004 14:45 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: RequestDispatcher and pageEncoding question... Timothy St

RE: RequestDispatcher resource not available

2004-05-19 Thread Shapira, Yoav
9, 2004 6:37 AM >To: Tomcat Users List >Subject: RequestDispatcher resource not available > >We are now using just on servlet which gets all the request and map's them >to other classes bei Classinvocation. > >But we would now benefit from the servlet abillitys and are now

AW: RequestDispatcher resource not available

2004-05-19 Thread Nitschke Michael
of urls to servlets. I think web.xml would be pretty confusing if I register all my 200 Servlets in it. mfg Michael Nitschke -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 19. Mai 2004 14:55 An: Tomcat Users List Betreff: RE: RequestDispatcher re

RE: RequestDispatcher resource not available

2004-05-19 Thread Shapira, Yoav
oser, please? If you map a servlet to url-pattern /x, you would use "/x" as the parameter to the call to get a RequestDispatcher object. >We are using a database to store the mapping of urls to servlets. That's not a standard practice, and it's also a lower performance design than

Re: RequestDispatcher resource not available

2004-05-19 Thread QM
: There lies the problem i don't know which servlets i would get, and i don't : want to reconfigure the web.xml and restart the server every time something : changes or get added. If you want changes to be picked up w/o restarting the server, you'll have to set "reloadable=true" for the context, w

AW: RequestDispatcher resource not available

2004-05-19 Thread Nitschke Michael
>-Ursprüngliche Nachricht- >Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 19. Mai 2004 15:41 >An: Tomcat Users List >Betreff: RE: RequestDispatcher resource not available >Hi, >>There lies the problem i don't know which servlets i woul

RE: RequestDispatcher resource not available

2004-05-19 Thread Shapira, Yoav
Hola, >We want to add servlets in the running system, just by saying "now you can" OK. That certainly narrows down your possibilities. >The mappings are stored in the database but would be cached in the >servletContext and could be dynamically reloaded. Cool. >I also thought about the invoke

AW: RequestDispatcher resource not available

2004-05-19 Thread Nitschke Michael
mfg Michael Nitschke >-Ursprüngliche Nachricht- >Von: QM [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 19. Mai 2004 15:59 >An: Tomcat Users List >Betreff: Re: RequestDispatcher resource not available >: There lies the problem i don't know which servlets i

RE: RequestDispatcher resource not available

2004-05-19 Thread Nitschke Michael
>>We want to add servlets in the running system, just by saying "now you >>can" >OK. That certainly narrows down your possibilities. Drastically >>The mappings are stored in the database but would be cached in the >>servletContext and could be dynamically reloaded. >Cool. The application now c

RE: RequestDispatcher resource not available

2004-05-19 Thread Shapira, Yoav
Hi, >We are now for public pages that are cached as a whole down at 0.25 >seconds included the delivery. And really heavy generated pages (200 db >queries) at >1.5-2 seconds( I know there I have to do heavy optimisation) Really? You do: - Apache to Tomcat forwarding via mod_jk - Tomcat WelcomeS

RE: RequestDispatcher resource not available

2004-05-19 Thread Nitschke Michael
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 4:39 PM To: Tomcat Users List Subject: RE: RequestDispatcher resource not available Hi, >We are now for public pages that are cached as a whole down at 0.25 >seconds included the delivery. And really heavy gene

RE: RequestDispatcher resource not available

2004-05-19 Thread Shapira, Yoav
4 10:55 AM >To: Tomcat Users List >Subject: RE: RequestDispatcher resource not available > >Standard sun 1.4 jvm and a dualprocessor 1.5GHz, 1.5GB Ram Raid5 I think >Database is running on a sun dualprocessor speed and Ram I don't know. > >But we are considering a Su

Re: RequestDispatcher resource not available

2004-05-19 Thread QM
: The point is I won't be able to start the server frequently to add new : servlets, because our company needs the service 24/7. Understood; please report your final solution, if possible. Whenever an app steps out of the standard, there's an opportunity for innovation. =) One other idea: Tomcat

RE: RequestDispatcher resource not available

2004-05-21 Thread Nitschke Michael
I do a combination now. I enabled the Invoker and put a mapping in the web.xml for it. I use the RequestDispatcher to forward to the other servlets via the invoker. I enabled the reloading feature of the context. And everything works as I need it. mfg Michael Nitschke -Original Message

RE: Thread safety for RequestDispatcher

2004-12-08 Thread Shapira, Yoav
7:59 AM >To: [EMAIL PROTECTED] >Subject: Thread safety for RequestDispatcher > >I'm looking at design options for a servlet that uses forwarding. If >I were to get a RequestDispatcher in the init method (from >ServletContext) and store it as a static field, it would save getting >

Re: jsp include/RequestDispatcher incompatible?

2005-06-28 Thread Tim Funk
The out from the jspwriter is NOT the same out as receieved by response.getWriter(); The out in the JspPage is buffered. -Tim George Finklang wrote: have the following code in my jsp, which is called by a forward from my Controller servlet. The various Dispatchers are either servlets or jsp

Re: jsp include/RequestDispatcher incompatible?

2005-06-29 Thread George Finklang
So before each request dispatcher call I need to call a flush on the out in the JspPage? How do I get access to it? Do I also need to call flush at the end of each request dispatcher call? --George On 6/28/05, Tim Funk <[EMAIL PROTECTED]> wrote: > The out from the jspwriter is NOT the same out

Re: jsp include/RequestDispatcher incompatible?

2005-06-29 Thread Tim Funk
Try flush first, otherwise you might need to pass a HttpServletResponseWrapper() to include() where the wrapper oversrides getOutputStream() (or getWriter() -Tim George Finklang wrote: So before each request dispatcher call I need to call a flush on the out in the JspPage? How do I get acces

Re: jsp include/RequestDispatcher incompatible?

2005-06-29 Thread George Finklang
Feh. Easier to just translate the whole jsp into a servlet by hand which is what I already did. --George On 6/29/05, Tim Funk <[EMAIL PROTECTED]> wrote: > Try flush first, otherwise you might need to pass a > HttpServletResponseWrapper() to include() where the wrapper oversrides > getOutputStrea

Re: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError

2002-11-26 Thread Craig R. McClanahan
See below. On Wed, 27 Nov 2002, Stephen Riek wrote: > Date: Wed, 27 Nov 2002 05:55:11 + (GMT) > From: Stephen Riek <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: Tom

Re: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError

2002-11-26 Thread Stephen Riek
ted the entire contents of the "/work" directory and restarted Tomcat again to ensure that it is not an old class being cached in memory. Interestingly, the very first time that I make a request to the Filter, I get the following error message: java.lang.LinkageError: Class ja

Re: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError

2002-11-27 Thread Stephen Riek
- the LanguageFilter.java) I have even deleted the entire contents of the "/work" directory and restarted Tomcat again to ensure that it is not an old class being cached in memory. Interestingly, the very first time that I make a request to the Filter, I get the foll

Re: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError

2002-11-27 Thread karthikeyan.balasubramanian
- From: "Stephen Riek" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 2:54 PM Subject: Re: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError > > Ok, after further investigating, I re

  1   2   >