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 {

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, b

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

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-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

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 > = getServletContext().getRequestD

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

Re: RequestDispatcher.forward()

2001-05-18 Thread Sebastian Schulz
??? > are you shobhit sati from india? > sorry if I am wrong no ;-) 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 this

Re: RequestDispatcher.forward()

2001-05-18 Thread Eric Lubin
/18/2001 10:58:33 AM Please respond 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: RequestDispa

Re: RequestDispatcher.forward()

2001-05-21 Thread Sebastian Schulz
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 com.ibm.servconn; > >

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

RE: RequestDispatcher.forward()?

2001-08-26 Thread Jann VanOver
ED] Subject: Re: RequestDispatcher.forward()? > 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

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 param

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 the

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 in

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

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

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"); dispatcher.forward(r

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 = ctx.getRequestDispatc

URL rewriting + RequestDispatcher.forward(...)

2001-05-07 Thread Zimmerer, Ralf
s workaround a method, that looks 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 a

response.sendRedirect vs. requestDispatcher.forward

2001-05-29 Thread A Yang
at the end 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 requestDispatc

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

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.forwa

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 Re

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: "IMPLEMENTATION NOTE: This implementation assumes that no filters are applied to a forwarded or included resource, because they were already done for the original reques

RE: RequestDispatcher.forward() forgets requestUri

2004-05-25 Thread Shapira, Yoav
Original 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 i

RE: RequestDispatcher.forward() forgets requestUri

2004-05-25 Thread Nitschke Michael
quest 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 a

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 co

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-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

RE: RequestDispatcher.forward to cgi?

2003-12-05 Thread Januski, Ken
chance of success. But I 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?

Re: RequestDispatcher.forward to cgi?

2003-12-05 Thread Tim Funk
mb. 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 are the errors? -Tim Januski, Ken wrote: I've finally managed to get cgi working in T

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

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

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 shoo

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 bob * This precludes me from having anything else on my site, which is ok with me, almost. My servlets usually do their work and then use a forward or an include to get a jsp page t

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, an

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.

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-29 Thread Martin van den Bemt
ED]] > 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(), you are moving inside the same

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-30 Thread A Yang
/etc.. > > Mvgr, > Martin > > > -Original 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 &g

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-30 Thread Brandon Cruz
andon Cruz -Original 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

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-30 Thread Martin van den Bemt
ginal Message- > 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") >

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

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 cur

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-31 Thread Martin van den Bemt
ilto:[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 th

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

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 &qu

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 &qu

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. <% RequestDispatche

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: 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

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

Re: RequestDispatcher.forward() in Tomcat 3.2.1

2001-02-16 Thread William Au
t 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

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 sec

RE: RequestDispatcher.forward()-Problem with anchors

2001-03-05 Thread Filip Hanik
M > To: [EMAIL 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

RE: RequestDispatcher.forward()-Problem with anchors

2001-03-05 Thread Michael Wentzel
> I thought the anchor tag was something that was interpreted > by the browser, > not the server. > doesn't the server just ignore those? > > correct me if I am wrong! > > Filip Yes, this is correct. The server just streams HTML to the client and the client interprets that stream and renders

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 t

Re: RequestDispatcher.forward()-Problem with anchors

2001-03-06 Thread Sebastian Schulz
l? (i 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 >

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

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

2001-03-23 Thread William Au
This seems to be caused by a bug in Tomcat 3.2.1. I looked at the java code generated for my JSP. It call out.flush() at the end. I think that's why the forward() failed. I then converted example1.jsp from JSPs to servlets but I am still getting the same Exception. Moving my code below from a

question about RequestDispatcher.forward() in tomcat

2000-11-08 Thread Chen, Kevin
I am trying to implement a MVC system. the controller will intercept all request for .jsp page, then forward it to the jsp page after some checking. I am using TOMCAT to run the servlet. and using extension rul mapping, i.e.:(in web.xml) controller *.jsp My test controller j

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

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 Re

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.

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 ac

Re: question about RequestDispatcher.forward() in tomcat

2000-11-08 Thread Craig R. McClanahan
What I do in the Struts framework , 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

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 ea

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) th

RE: question about RequestDispatcher.forward() in tomcat

2000-11-13 Thread Lacerda, Wellington (AFIS)
-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 controller will intercept all request for .jsp page, t

RE: question about RequestDispatcher.forward() in tomcat

2000-11-14 Thread Kedar Choudary
ECTED]' 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 al

RequestDispatcher.forward() to doc located on HTTP Server

2005-04-11 Thread Ron Crayton
er 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 that's

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

2001-06-12 Thread Filip Hanik
t;To: [EMAIL PROTECTED] >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

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

2005-04-11 Thread Mark Thomas
letContext(); String uri = request.getQueryString(); ServletContext foreignContext = context.getContext("/"); RequestDispatcher requestDispatcher = foreignContext.getRequestDispatcher(uri); requestDispatcher.forward(request, response); The uri comes from the query string of the or

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 a

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".

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

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

2001-01-23 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

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 forw

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

2000-12-06 Thread Quenten Van Egeren
I am using the following code snippet in one of my servlets : RequestDispatcher dispatcher = request.getRequestDispatcher(url); dispatcher.forward(request, response); When I do this type of thing under Weblogic 5.1, the url page is displayed and the url in the "Location" box on the b

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

2002-02-21 Thread Greg Trasuk
p://stratuscom.ca > -Original Message- > From: Sriram 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 ab

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. >>Fro

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

2002-02-26 Thread Sriram Narayanan
warded message --- From: Sriram Narayanan <[EMAIL 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 contr

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

2000-12-06 Thread David Rees
mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 06, 2000 1:18 PM > To: [EMAIL PROTECTED] > Subject: Is their a bug in Tomcat with the > RequestDispatcher.forward(url) method? > > > I am using the following code snippet in one of my > servlets : > >

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

2000-12-06 Thread Shireesh Thanneru
requested, and it has absolutely no knowledge of what you are doing on the server-side in this case, do not confuse RequestDispatcher.forward() with response.sendRedirect(). Shireesh Thanneru On Wed, 6 Dec 2000, Quenten Van Egeren wrote: >I am using the following code snippet in one of my >se

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

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

2000-12-07 Thread Quenten Van Egeren
ubject: RE: Is their a bug 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 i

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 s