RE: RequestDispatcher.forward() to doc located on HTTP Server

2005-04-12 Thread Raghupathy,Gurumoorthy
Forward only works within a context -Original Message- From: Ron Crayton [mailto:[EMAIL PROTECTED] Sent: 11 April 2005 19:36 To: tomcat-user@jakarta.apache.org Subject: RequestDispatcher.forward() to doc located on HTTP Server Is it possible to use Request.forward() to forward

RequestDispatcher.forward() to doc located on HTTP Server

2005-04-11 Thread Ron Crayton
= getServletConfig().getServletContext(); String uri = request.getQueryString(); ServletContext foreignContext = context.getContext(/); RequestDispatcher requestDispatcher = foreignContext.getRequestDispatcher(uri); requestDispatcher.forward(request, response); The uri comes from the query string

Re: RequestDispatcher.forward() to doc located on HTTP Server

2005-04-11 Thread Mark Thomas
(/); RequestDispatcher requestDispatcher = foreignContext.getRequestDispatcher(uri); requestDispatcher.forward(request, response); The uri comes from the query string of the original request. When the code runs it says that the requested resource is not available - Error 404. Am I trying to do something

Re: RequestDispatcher.forward: SOLVED

2005-03-03 Thread Lionel Farbos
Thanks to Tim and Remy for the answers; For more explanations for those who have the same problem like me : - see bugs 23211 and 33831 on http://issues.apache.org/bugzilla/ - In my example, after ctx = ctx.getContext(/myNewContext); but before dispatcher =

RequestDispatcher.forward: a bug?

2005-03-02 Thread Lionel Farbos
Hi, (I work on Tomcat 5.0.30). When my servlet (http://myVhost/proxy/testProxy) forward to another servlet : try { ServletContext ctx = getServletContext(); ctx = ctx.getContext(/myNewContext); RequestDispatcher dispatcher = ctx.getRequestDispatcher(/myNewServlet);

Re: RequestDispatcher.forward: a bug?

2005-03-02 Thread Tim Funk
getRequestDispatcher() will always return a servlet. (The default servlet) -Tim Lionel Farbos wrote: Hi, (I work on Tomcat 5.0.30). When my servlet (http://myVhost/proxy/testProxy) forward to another servlet : try { ServletContext ctx = getServletContext(); ctx = ctx.getContext(/myNewContext);

Re: RequestDispatcher.forward: a bug?

2005-03-02 Thread Lionel Farbos
Yes : it's my problem. ctx.getContext(/myNewContext) always return a Context (even if myNewContext is not deployed :-( and ctx.getRequestDispatcher(/myNewServlet) always return a dispatcher (even if myNewServlet is not here :-( So How can I avoid a 404 ? On Wed, 02 Mar 2005 10:24:37 -0500 Tim

RequestDispatcher.forward() forgets requestUri

2004-05-25 Thread Nitschke Michael
I use RequestDispatcher.forward(path) and the original requestUri get lost. If it is suppoused to do so, is there a way to get the original requestUri after the forward? Mit freundlichen Grüßen Michael Nitschke MBI Institut für Marketingberatung AG Hietzinger

RE: RequestDispatcher.forward() forgets requestUri

2004-05-25 Thread Shapira, Yoav
Message- From: Nitschke Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 25, 2004 4:37 AM To: [EMAIL PROTECTED] Subject: RequestDispatcher.forward() forgets requestUri I use RequestDispatcher.forward(path) and the original requestUri get lost. If it is suppoused to do so, is there a way

RE: RequestDispatcher.forward() forgets requestUri

2004-05-25 Thread Nitschke Michael
as it was the initial request from the client? mfg Michael Nitschke -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 25, 2004 2:57 PM To: Tomcat Users List Subject: RE: RequestDispatcher.forward() forgets requestUri Hi, I strongly suggest (to anyone

RE: RequestDispatcher.forward() forgets requestUri

2004-05-25 Thread Shapira, Yoav
Hi, Isn't it supposed that the RequestDispatcher forwards the Request as it was the initial request from the client? No: that's one key distinction between the RequestDispatcher and HttpServletResponse#sendRedirect. Yoav This e-mail, including any attachments, is a confidential business

RE: RequestDispatcher.forward() forgets requestUri

2004-05-25 Thread Nitschke Michael
Im using the Invokerservlet. mfg Michael Nitschke -Original Message- From: Nitschke Michael Sent: Tuesday, May 25, 2004 3:54 PM To: Tomcat Users List Subject: RE: RequestDispatcher.forward() forgets requestUri But in the API is written that this Abbributes are reset between requests

RE: RequestDispatcher.forward to cgi?

2003-12-05 Thread Januski, Ken
hate to spend the time on it if I'm just trying to do the impossible or the dumb. Ken -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 9:21 PM To: Tomcat Users List Subject: Re: RequestDispatcher.forward to cgi? Just curious ... what

Re: RequestDispatcher.forward to cgi?

2003-12-05 Thread Tim Funk
- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 9:21 PM To: Tomcat Users List Subject: Re: RequestDispatcher.forward to cgi? Just curious ... what are the errors? -Tim Januski, Ken wrote: I've finally managed to get cgi working in Tomcat. Now I need to forward from

RE: RequestDispatcher.forward to cgi?

2003-12-05 Thread Januski, Ken
Thanks Tim, I'll keep working on it then and see where it gets me. Ken -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 12:54 PM To: Tomcat Users List Subject: Re: RequestDispatcher.forward to cgi? I would think that the CGI servlet would

RequestDispatcher.forward to cgi?

2003-12-04 Thread Januski, Ken
I've finally managed to get cgi working in Tomcat. Now I need to forward from a servlet to a cgi page. But both RequestDispatcher.forward and RequestDispatcher.include are failing. I'm not surprised that include does but I thought it might be possible with forward. Since this is part of a large

Re: RequestDispatcher.forward to cgi?

2003-12-04 Thread Tim Funk
Just curious ... what are the errors? -Tim Januski, Ken wrote: I've finally managed to get cgi working in Tomcat. Now I need to forward from a servlet to a cgi page. But both RequestDispatcher.forward and RequestDispatcher.include are failing. I'm not surprised that include does but I thought

please explain behavior of Requestdispatcher.forward()

2003-11-15 Thread Antony Paul
Hi all, I have problem in using RequestDispatcher.forward() from servlets. My knowledge is that even after calling this method servlet continues processing the request and thus executes rest of the service method. But I have seen that if a servlet is forwarding to same servlet it stops

Re: please explain behavior of Requestdispatcher.forward()

2003-11-15 Thread Antony Paul
Actually I have to remove a textbox element from a form. Antony Paul - Original Message - From: Antony Paul [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, November 15, 2003 5:33 PM Subject: please explain behavior of Requestdispatcher.forward() Hi all, I

Re: please explain behavior of Requestdispatcher.forward()

2003-11-15 Thread Christopher Schultz
Antony, I have problem in using RequestDispatcher.forward() from servlets. My knowledge is that even after calling this method servlet continues processing the request and thus executes rest of the service method. Your understanding is correct -- it's just a method call that returns. But I

Re: Filter and RequestDispatcher.forward()

2003-01-30 Thread Tomasz Stanczak
I have noticed that, too, while preparing a WebLogic web application to run on Tomcat. The code of ApplicationDispatcher says: strongIMPLEMENTATION NOTE/strong: This implementation assumes that no filters are applied to a forwarded or included resource, because they were already done for the

Filter and RequestDispatcher.forward()

2003-01-29 Thread Karl Kraft
I've written a Filter to get applied to all page requests so that I can perform some access control and logging. However, when a servlet redirects using the forward() method of RequestDispatcher, it doesn't seem to go through the filter. If needed, I can call the Filter manually before I do

Re: Filter and RequestDispatcher.forward()

2003-01-29 Thread Tim Funk
Filters are only run once for the incoming request. See the archives for more information. -Tim Karl Kraft wrote: I've written a Filter to get applied to all page requests so that I can perform some access control and logging. However, when a servlet redirects using the forward() method of

Newbie question - NullPointerException when doing RequestDispatcher.forward(..)

2002-07-18 Thread Maya Vayner
Hi, I have the NullPointerException thrown by forward method of RequestDispatcher object. Code line that does that: // value of page parameter is /view/errors/paramErrors.jsp getServletContext().getRequestDispatcher(page).forward(request, response); Basically, it is inside

RequestDispatcher.forward to CGI

2002-06-30 Thread C F
Hello, I've been trying to use the following procedure to forward a request from my servlet to a CGI program within the same application space getServletContext().getRequestDispatcher(/cgi-bin/my_cgi_prog).forward(request,response); ... which results in the following error Servlet

Fwd: Unable to use RequestDispatcher.forward() for HTML pages when in Tomcat 4

2002-02-26 Thread Sriram Narayanan
PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Unable to use RequestDispatcher.forward() for HTML pages when in Tomcat 4 Date: 2/21/02 8:06:31 PM Hello all, I am able to use the RequestDispatcher forward control from one JSP page to another. However I am unable to forward to HTML pages

Re: Unable to use RequestDispatcher.forward() for HTML pages when in Tomcat 4

2002-02-22 Thread Dmitry Nikelshpur
Hi Sriram, Try changing the .html extension to .jsp extensionThis should work if your JSP pages work :-) Dmitry Sriram Narayanan wrote: Hello all, I am able to use the RequestDispatcher forward control from one JSP page to another. However I am unable to forward to HTML pages. From

Unable to use RequestDispatcher.forward() for HTML pages when in Tomcat 4

2002-02-21 Thread Sriram Narayanan
Hello all, I am able to use the RequestDispatcher forward control from one JSP page to another. However I am unable to forward to HTML pages. From what I read in the Servlet API spec (there's an example for /garden/ etc) and the docs for RequestDispatcher(), one should indeed be able to

RE: Unable to use RequestDispatcher.forward() for HTML pages when in Tomcat 4

2002-02-21 Thread Greg Trasuk
Narayanan [mailto:[EMAIL PROTECTED]] Sent: February 21, 2002 09:37 To: Tomcat Users List Subject: Unable to use RequestDispatcher.forward() for HTML pages when in Tomcat 4 Hello all, I am able to use the RequestDispatcher forward control from one JSP page to another. However I am unable

Re: RequestDispatcher.forward() and filters

2001-11-12 Thread Jim Cheesman
At 06:46 AM 12/11/01, you wrote: On Sat, 10 Nov 2001, Matt Egyhazy wrote: i have seen very, very, very bad code written for applications that use jsp. You should see some of the horrible servlet-based code I've also had to look at. People that are bound and determined to shoot

Re: RequestDispatcher.forward() ?

2001-11-12 Thread Dr. Evil
Could somebody tell me if this behavior by design and if so why: The following fragment forwards a request to main application page: //--- String main = /index.jsp; //String main = /; RequestDispatcher dispatcher =

Re: RequestDispatcher.forward() ?

2001-11-11 Thread Craig R. McClanahan
On Sun, 11 Nov 2001, Vladimir Grishchenko wrote: Date: Sun, 11 Nov 2001 18:30:37 -0800 From: Vladimir Grishchenko [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RequestDispatcher.forward() ? Hi there, Could somebody tell me

RequestDispatcher.forward

2001-11-02 Thread Brian Kreitzer
For the life of me I can't get this to work or the .include function. Here is my code: public class HelloWorldExample extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {

RE: RequestDispatcher.forward()?

2001-08-26 Thread Jann VanOver
Or, more specifically: http://java.sun.com/j2ee/tutorial/api/index.html You'll find RequestDispatcher in the All Classes frame. -Original Message- From: Rob S. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 7:55 AM To: [EMAIL PROTECTED] Subject: Re: RequestDispatcher.forward

RequestDispatcher.forward()?

2001-08-24 Thread yuval
Can you please explain to me how to use RequestDispatcher.forward()? Regards, Yuval Domain The Net Technologies Ltd. 6 Weitzman Blvd. Ramat-Hasharon Israel 47211 Tel: 972-3-5474443 Fax: 972-3-5474446 www.DomainTheNet.com “This email message and any attachments hereto are intended only for use

Re: RequestDispatcher.forward()?

2001-08-24 Thread Rob S.
Can you please explain to me how to use RequestDispatcher.forward()? Yikes... you're better off searching Google or picking up a book on servlets. Or heck, you could read the servlet api javadoc comments =) - r

Using RequestDispatcher.forward() and changing browser URL

2001-06-12 Thread Kevin Regan
I'm using RequestDispatcher.forward() in one servlet to forward a request to another servlet (or JSP page). I would like the URL for the forwarded servlet or JSP page to show up in the client's browser rather than the original request URL. Is this possible and how can it be accomplished

RE: Using RequestDispatcher.forward() and changing browser URL

2001-06-12 Thread Filip Hanik
] Subject: Using RequestDispatcher.forward() and changing browser URL I'm using RequestDispatcher.forward() in one servlet to forward a request to another servlet (or JSP page). I would like the URL for the forwarded servlet or JSP page to show up in the client's browser rather than

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-31 Thread Brandon Cruz
30, 2001 6:38 PM To: [EMAIL PROTECTED] Subject: RE: response.sendRedirect vs. requestDispatcher.forward If you webserver is serving in /usr/local/apache/htdocs, you are redirecting to /usr/local/apache/htdocs/login.jsp, which is handled in this example by apache, who doesn't know anything about

Re: response.sendRedirect vs. requestDispatcher.forward

2001-05-31 Thread Alex Fernández
Hi Andy! Just a fine point here. A Yang wrote: RequestDispatch.forward takes a URL that is a RELATIVE path but also requires a leading slash. From the javadoc of ServletRequest.getRequestDispatcher(String): 'The pathname specified may be relative, although it cannot extend outside the

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-31 Thread Martin van den Bemt
:[EMAIL PROTECTED]] Sent: Thursday, May 31, 2001 3:26 PM To: [EMAIL PROTECTED] Subject: RE: response.sendRedirect vs. requestDispatcher.forward So what is the correct way to redirect? I have started using relative links to redirect and it seems to fix the problem. Is this just coincidence

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-30 Thread A Yang
Message- From: Alex Fernandez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 29, 2001 4:57 PM To: [EMAIL PROTECTED] Subject: Re: response.sendRedirect vs. requestDispatcher.forward Conceptually, requestDispatcher.forward() is different from response.sendRedirect(). In forward

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-30 Thread Brandon Cruz
Message- From: A Yang [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 30, 2001 1:13 PM To: [EMAIL PROTECTED] Subject: RE: response.sendRedirect vs. requestDispatcher.forward Hi, Thanks for the help. As it turns out, switching between requestDispath.forward and response.redirect will trip you

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-30 Thread Martin van den Bemt
- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 31, 2001 1:31 AM To: [EMAIL PROTECTED] Subject: RE: response.sendRedirect vs. requestDispatcher.forward Has anyone figured out why response.sendRedirect(/login.jsp) will not work when using apache-tomcat with mod_jk? It gets

response.sendRedirect vs. requestDispatcher.forward

2001-05-29 Thread A Yang
of a sequence of pages/servlets, but I wanted to replace it with response.sendRedirect(/Result.jsp); instead. The result page prints out the contents of several javabeans which are stored in the session. This worked fine when all I used were requestDispatcher.forward but with response.sendRedirect

Re: response.sendRedirect vs. requestDispatcher.forward

2001-05-29 Thread Alex Fernández
Conceptually, requestDispatcher.forward() is different from response.sendRedirect(). In forward(), you are moving inside the same webapp, and as such it doesn't even reach the client browser. The session is maintained. In sendRedirect(), you're instead moving across webapps, and it's

AW: response.sendRedirect vs. requestDispatcher.forward

2001-05-29 Thread Ralph Einfeldt
Try this one: response.sendRedirect(response.encodeRedirectUrl(/Result.jsp)); -Ursprüngliche Nachricht- Von: A Yang [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 29. Mai 2001 16:21 An: [EMAIL PROTECTED] Betreff: response.sendRedirect vs. requestDispatcher.forward snip

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-29 Thread Martin van den Bemt
: Tuesday, May 29, 2001 4:57 PM To: [EMAIL PROTECTED] Subject: Re: response.sendRedirect vs. requestDispatcher.forward Conceptually, requestDispatcher.forward() is different from response.sendRedirect(). In forward(), you are moving inside the same webapp, and as such it doesn't even reach

RequestDispatcher.include(String)/RequestDispatcher.forward(String)

2001-05-25 Thread Marco Baringer
Let's say I have a site where I map every URL to the same servlet, there's something like this in my web.xml servlet-mapping servlet-namebob/servlet-name url-pattern*/url-pattern /servlet-mapping This precludes me from having anything else on my site, which is ok with me, almost. My

Re: RequestDispatcher.forward()

2001-05-21 Thread Sebastian Schulz
- From: Eric Lubin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 18, 2001 8:58 AM Subject: Re: RequestDispatcher.forward() package com.ibm.servconn; import java.net.*; import java.io.*; import java.util.*; import com.ibm.aurora.*; public class URLForward

RequestDispatcher.forward()

2001-05-18 Thread Sebastian Schulz
hi! my problem is, that i have a 'virtual' url that is a servlet, and a mapping from that virtual url to a 'real' url outside of the servletcontext. i want the user never to use or bookmark the 'real' url but allways the 'virtual'. the .forward()-method would be a cool solution to manage this,

RE: RequestDispatcher.forward()

2001-05-18 Thread Raj Agrawal
are you shobhit sati from india? sorry if I am wrong Raj -Original Message- From: Sebastian Schulz [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 2:24 PM To: [EMAIL PROTECTED] Subject: RequestDispatcher.forward() hi! my problem is, that i have a 'virtual' url that is a servlet

Re: RequestDispatcher.forward()

2001-05-18 Thread Sebastian Schulz
??? are you shobhit sati from india? sorry if I am wrong no ;-) basti

RequestDispatcher.forward()

2001-05-18 Thread Sebastian Schulz
hi, has somebody a work-around to produce the same behavior as if RequestDispatcher.forward() would work with absolute URL's? tanks in advance! basti

RE: RequestDispatcher.forward()

2001-05-18 Thread Grewal, Gary
Title: RE: RequestDispatcher.forward() ServletContext.getRequestDispatcher(java.lang.String path) takes absolute path beginign with / though the path must be relative to the current context. You will have to use getContext(java.lang.String uripath) to get a foreign Context and then use

Re: RequestDispatcher.forward()

2001-05-18 Thread Eric Lubin
to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: RequestDispatcher.forward() hi, has somebody a work-around to produce the same behavior as if RequestDispatcher.forward() would work with absolute URL's? tanks in advance! basti

Re: RequestDispatcher.forward()

2001-05-18 Thread Jeff Kilbride
secure ssl (https) connections also with the JSSE jar files -- and it's very easy to setup and use. Thanks, --jeff - Original Message - From: Eric Lubin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 18, 2001 8:58 AM Subject: Re: RequestDispatcher.forward() package

URL rewriting + RequestDispatcher.forward(...)

2001-05-07 Thread Zimmerer, Ralf
for a session id in the path parameter, if a RequestDispatcher.forward(...) should be processed, and cuts it (;jsessionid=xyz24356). But this isn't a nice solution !!! QUESTION: Why doesn't work a forward with an URL with a jsessionid ? Thanks in advance, Ralf Zimmerer. (temporary at Dresdner

calling RequestDispatcher.forward() after RequestDispatcher.include()

2001-03-21 Thread William Au
I am running Tomcat 3.2.1. I am getting the following error. javax.servlet.ServletException: Cannot forward as OutputStream or Writer has already been obtained My code is quite simple. The jsp that I am including, example1.jsp, does not write anything to the output buffer. %

Re: RequestDispatcher.forward()-Problem with anchors

2001-03-06 Thread Sebastian Schulz
think this was my error in reasoning, that i have to use a forward when using sessions) thank you again, bAs T. Rob Tanner schrieb: When you do a RequestDispatcher.forward(), that's an internal operation, and not a redirect send back to the browser. In the latter case, the browser initiates

Re: RequestDispatcher.forward()-Problem with anchors

2001-03-06 Thread Alex Fernández
Hi Sebastian, Sebastian Schulz wrote: is there a trick to anyhow get some related behavior with forward to work? or is this not necessary, because i can access the original session object at the second page in the case of a redirect as well? I think so. If you want to send an error,

RequestDispatcher.forward()-Problem with anchors

2001-03-05 Thread Sebastian Schulz
hi, i have a problem with RequestDispatcher.forward(): if the url contains an anchor like "example.jsp#position1" then forwarding seams to be be all right (no error, exception ...), but the 'new' page has no content. i tried to forward to a url with parameters like "example

RE: RequestDispatcher.forward()-Problem with anchors

2001-03-05 Thread Filip Hanik
PROTECTED] Subject: RequestDispatcher.forward()-Problem with anchors hi, i have a problem with RequestDispatcher.forward(): if the url contains an anchor like "example.jsp#position1" then forwarding seams to be be all right (no error, exception ...), but the 'new' page has no co

RE: RequestDispatcher.forward()-Problem with anchors

2001-03-05 Thread Rob Tanner
When you do a RequestDispatcher.forward(), that's an internal operation, and not a redirect send back to the browser. In the latter case, the browser initiates a new GET request to the new URL. In the former case, the page at the RequestDispatcher.forward() address is simply sent

Problem with RequestDispatcher.forward() and mutlipart/form-data request

2001-03-01 Thread Matthew Sinclair
Title: Problem with RequestDispatcher.forward() and mutlipart/form-data request I have a very strange problem with the RequestDispatcher.forward() command. I am trying to forward to a very simple JSP from within a servlet after handling a request of type=multipart/form-data. I am using

Re: RequestDispatcher.forward() problem

2001-02-21 Thread paul marshal
Andrew Kerr wrote: Hello, I've been having a bit of trouble with the RequestDispatcher.forward() method. If I try to forward to a URL with a query string on it, and then have some code that processes the forwarded request, the getQueryString() method does not return the query string

RequestDispatcher.forward() problem

2001-02-21 Thread Andrew Kerr
Hello, I've been having a bit of trouble with the RequestDispatcher.forward() method. If I try to forward to a URL with a query string on it, and then have some code that processes the forwarded request, the getQueryString() method does not return the query string. However, the parameters

Re: RequestDispatcher.forward() problem

2001-02-21 Thread Dmitry Rogatkin
--Original Message- From:paul marshal [EMAIL PROTECTED] Sent:Wed, 21 Feb 2001 16:48:26 +0100 To: [EMAIL PROTECTED] Subject: Re: RequestDispatcher.forward() problem Andrew Kerr wrote: Hello, I've been having a bit of trouble with the RequestDispatcher.forward() method.

Re: RequestDispatcher.forward() in Tomcat 3.2.1

2001-02-16 Thread William Au
that was forwarded to did not change the response. Is multiple forward within a servlet not supported/allowed? Bill "Craig R. McClanahan" wrote: William Au wrote: Is there any way in Tomcat 3.2.1 for the control to return to a servlet after its call to RequestDispatcher.forward() is completed?

RE: RequestDispatcher.forward() in Tomcat 3.2.1

2001-02-16 Thread CPC Livelink Admin
To: [EMAIL PROTECTED] Subject: Re: RequestDispatcher.forward() in Tomcat 3.2.1 You are right. Control does return to the calling servlet. It just couldn't write to the response. It would be nice if an exception was thrown. After control returns to the calling servlet, I try forwarding to a seco

RequestDispatcher.forward() in Tomcat 3.2.1

2001-02-15 Thread William Au
Is there any way in Tomcat 3.2.1 for the control to return to a servlet after its call to RequestDispatcher.forward() is completed? That is the behavior of WebLogic 5.1.0. I want my code to work on the same way running under both. I am aware of the RequestDispatcher.include() method. Bill

Re: RequestDispatcher.forward() in Tomcat 3.2.1

2001-02-15 Thread Craig R. McClanahan
William Au wrote: Is there any way in Tomcat 3.2.1 for the control to return to a servlet after its call to RequestDispatcher.forward() is completed? Control *does* return -- RequestDispatcher.forward() is a normal Java method call. However, the servlet spec prohibits you from modifying

RE: RequestDispatcher.forward() in Tomcat 3.2.1

2001-02-15 Thread Casey Lucas
] Subject: RequestDispatcher.forward() in Tomcat 3.2.1 Is there any way in Tomcat 3.2.1 for the control to return to a servlet after its call to RequestDispatcher.forward() is completed? That is the behavior of WebLogic 5.1.0. I want my code to work on the same way running under both. I am aware

RequestDispatcher.include vs RequestDispatcher.forward(am I doing this the correct way???)

2001-01-22 Thread Randy Paries
I will try to be brief, but this will need to explanation. 1) I was going to search the archives , but the search engine is down, so please don't flame to bad. I have jsps, that refer to database objects that have been populated by a servlet and then forwarded to the jsp. Looking at the code

RE: Is their a bug in Tomcat with the RequestDispatcher.forward(url) method?

2000-12-07 Thread MacLaren, Donald
That's how it works -Original Message- From: David Rees [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 06, 2000 5:13 PM To: [EMAIL PROTECTED] Subject: RE: Is their a bug in Tomcat with the RequestDispatcher.forward(url) method? A forward is an internal redirect, the client never

RE: Is their a bug in Tomcat with the RequestDispatcher.forward(u rl) method?

2000-12-07 Thread Quenten Van Egeren
in Tomcat with the RequestDispatcher.forward(url) method? A forward is an internal redirect, the client never sees it (and therefore never updates the URL in the status bar of the browser). Tomcat is working properly, and it sounds like Weblogic is doing a redirect and is broken. -Dave -Original Message--

Re: Is their a bug in Tomcat with the RequestDispatcher.forward(u rl) method?

2000-12-07 Thread Kurt Bernhard Pruenner
Quenten Van Egeren wrote: Thanks for the replies, I knew that the forward did an internal redirect, I was just confused as to why Weblogic was doing it one way and Tomcat another. So the next question is : what is the easiest way to do something like a response.sendRedirect() and still

RE: question about RequestDispatcher.forward() in tomcat

2000-11-14 Thread Kedar Choudary
]' Subject: RE: question about RequestDispatcher.forward() in tomcat I wrote a small MVC framework and I have my controller mapped to a common name like "dispatch.htm" and I send all requests directly to it, with a parameter specifying the action. So, all the requests are always like:

RE: question about RequestDispatcher.forward() in tomcat

2000-11-13 Thread Lacerda, Wellington (AFIS)
It's working fairly well. Wellington Silva UN/FAO -Original Message- From: Chen, Kevin [mailto:[EMAIL PROTECTED]] Sent: 09 November 2000 00:32 To: '[EMAIL PROTECTED]' Subject: question about RequestDispatcher.forward() in tomcat I am trying to implement a MVC system. the controlle

RE: question about RequestDispatcher.forward() in tomcat

2000-11-09 Thread Chen, Kevin
page developer to include template.jsp. I want it be enforced by the controller. So that jsp page developer can concentrate on their task only. The implementation of RequestDispatcher.forward()/include() does not looks right to me. I mean if the jsp page comes from my controller, it should not go back

RE: question about RequestDispatcher.forward() in tomcat

2000-11-09 Thread Byung Jin Chun
there wasn't any bypassing. Jin -Original Message- From: Chen, Kevin [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 09, 2000 10:20 AM To: '[EMAIL PROTECTED]' Subject: RE: question about RequestDispatcher.forward() in tomcat I want to centralized security check for each jsp page

RE: question about RequestDispatcher.forward() in tomcat

2000-11-09 Thread Chen, Kevin
PROTECTED]] Sent: Thursday, November 09, 2000 9:32 AM To: '[EMAIL PROTECTED]' Subject: RE: question about RequestDispatcher.forward() in tomcat Kevin, many moons ago and before struts, we implemented something that looks similar to what you are seeking. We mapped a uri(no extensions) that went

Re: question about RequestDispatcher.forward() in tomcat

2000-11-08 Thread Craig R. McClanahan
What I do in the Struts framework http://jakarta.apache.org/struts, which implements the MVC pattern you are talking about, is map a different extension for the logical actions (normally, these will be the values you use for hyperlinks and form submits). I like to use "*.do" because it implies