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
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
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
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
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
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
>
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,
Worked perfectly - tomcat users get soup :)
On Fri, 17 Sep 2004 11:52:48 -0400, Shapira, Yoav <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> >login.jsp in /webapps/ChargeCard (let's call it
> >). I have moved my servlets from
> >/webapps/ROOT/WEB-INF/classes to
> >/WEB-INF/classes. So my question is
Hi,
>login.jsp in /webapps/ChargeCard (let's call it
>). I have moved my servlets from
>/webapps/ROOT/WEB-INF/classes to
>/WEB-INF/classes. So my question is twofold:
>
>1) from my jsp, how do I invoke the servlet in it's new location?
>Prior I was using:
>action="servlet/com.gcc.creditcard/CCL
bles)? I think Yoav answered
this for me though - now that the servlets are in same context, I
should be able to use
RequestDispatcher rd =
getServletContext().getRequestDispatcher("/CCEntry.jsp");
But I can't test this theory until first issue is resolved. I than
n application in
the directory C:\jakarta-tomcat-5.0.12\webapps called ChargeCard.
After loggin in, I am trying to forward a request to jsp page in that
directory. However, RequestDispatcher apparently uses the directory
C:\jakarta-tomcat-5.0.12\webapps\ROOT as the Document root, so I need
t
arre issue. Using Tomcat 5.0.12, I have an application in
> >the directory C:\jakarta-tomcat-5.0.12\webapps called ChargeCard.
> >After loggin in, I am trying to forward a request to jsp page in that
> >directory. However, RequestDispatcher apparently uses the directory
> >C:\jaka
)
ADC
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 17 September 2004 13:17
To: Tomcat Users List; Xeth Waxman
Subject: RE: Traversing up a directory using RequestDispatcher
Hi,
First of all, Xeth is the best name I've seen in a long time -- cool!
I have
shame about the surname lol (sorry xeth just kidding)
ADC
> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: 17 September 2004 13:17
> To: Tomcat Users List; Xeth Waxman
> Subject: RE: Traversing up a directory using RequestDispatcher
>
>
hat
>directory. However, RequestDispatcher apparently uses the directory
>C:\jakarta-tomcat-5.0.12\webapps\ROOT as the Document root, so I need
>to go up a directory in my forward request (something like url =
>"../ChargeCard/index.jsp";) However, RequestDispatcher requires a
quest to jsp page in that
directory. However, RequestDispatcher apparently uses the directory
C:\jakarta-tomcat-5.0.12\webapps\ROOT as the Document root, so I need
to go up a directory in my forward request (something like url =
"../ChargeCard/index.jsp";) However, RequestDispatche
I have a bizarre issue. Using Tomcat 5.0.12, I have an application in
the directory C:\jakarta-tomcat-5.0.12\webapps called ChargeCard.
After loggin in, I am trying to forward a request to jsp page in that
directory. However, RequestDispatcher apparently uses the directory
C:\jakarta-tomcat
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
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
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
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,
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
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
: 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
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
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
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
>>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
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
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
>-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
: 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
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
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
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
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
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
-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
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
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
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
You may want to use response.sendRedirect() at step 3.
-Original Message-
From: Eric Vogue [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 8:33 AM
To: [EMAIL PROTECTED]
Subject: [NEWBIE] Setting up a JDBC Realm and using RequestDispatcher
Hello,
I'm novice with Tomcat
Hello,
I'm novice with Tomcat. I'm currently developing an application with access control
based on forms (FORM in the web.xml) and on declarative
security with a JDBC realm.
I use the MVC model with servlets redirecting to jsp pages with (forward method of a
RequestDisp
Ok thanks for the info. I finally did it with a filter and it worked.
Regards
Alain
-Message d'origine-
De : news [mailto:[EMAIL PROTECTED] De la part de Bill Barker
Envoyé : jeudi, 25. mars 2004 04:29
À : [EMAIL PROTECTED]
Objet : Re: URL redirect problem, even with 'Request
This is specific to Tomcat, but something like:
URL resource = getServletContext().getResource(request.getPathInfo());
if(resource != null) { // static resource
RequestDispatcher rd =
getServletContext().getNamedDispatcher("default");
rd.forward(request
À : Tomcat Users List
Objet : Re: URL redirect problem, even with 'RequestDispatcher' servlet !
/ is also known as the default servlet. So your servlet will also need tos
erver all static content too.
-Tim
Hertenstein Alain wrote:
Hi all,
This question has already been asked befor
PROTECTED]
Envoyé : mercredi, 24. mars 2004 14:15
À : Tomcat Users List
Objet : Re: URL redirect problem, even with 'RequestDispatcher' servlet !
/ is also known as the default servlet. So your servlet will also need tos
erver all static content too.
-Tim
Hertenstein Alain wrote:
equestedPage.equals("/")) {
System.out.println("DEFAULT Forwarding request to index.html
!");
RequestDispatcher reqDispatcher =
request.getRequestDispatcher(response.encodeURL("index.html"));
reqDispatcher.forward(reque
;); //
request.getServletPath() seems to do it too, but doesn't always work ?
System.out.println("requestedPage : "+requestedPage);
if (requestedPage.equals("/")) {
System.out.println("DEFAULT Forwarding request to index.html
!"
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
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
serverServletContext =
getServletContext().getContext(SERVER_CONTEXT_ROOT);
RequestDispatcher requestDispatcher =
serverServletContext.getRequestDispatcher(SERVER_SERVLET_PATH);
requestDispatcher.include(httpServletRequest, httpServletResponse);
This portion of the test case works as expected.
The ServerServlet
>Subject: RE: Further details - RequestDispatcher in servlet is not
working
>
>Hello,
>
>It is the doGet method of servlet - what will it return after the
forward
>call- its return type is void.Here after the forward call when I had
given
>a log message - that message got logged (the
Correct me if I am wrong
Try Using...
RequestDispatcher objReqDispatcher = getServletContext().getRequestDispatcher(strURL);
instead of what u r using ...
RequestDispatcher objReqDispatcher = request.getRequestDispatcher(strAddress);
( in this case all the paths are relative to the calling
Hello,
It is the doGet method of servlet - what will it return after the forward call- its
return type is void.Here after the forward call when I had given a log message - that
message got logged (the RequestDispatcher object got is not null was proved since I
printed that object address
Howdy,
>
> //uptil this point it gets executed properly
>strAddress = "/WEB-INF/internalJsp/ReceiveJsp.jsp";
>RequestDispatcher objReqDispatcher =
>request.getRequestDispatcher(strAddress);
>objReqDispatcher.forward(request,response);
>
> Here
out if not forwading. Another way is increasing the buffer size of out.
Antony Paul.
- Original Message -
From: "Teja Jo" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, December 18, 2003 9:57 AM
Subject: Re: RequestDisp
y Paul
- Original Message -
From: "Teja Jo"
To:
Sent: Thursday, December 18, 2003 9:27 AM
Subject: RequestDispatcher in servlet is not working
> Hello everyone,
>
> My servlet after processing something from the HttpServletRequest received
by it - is supposed to
You can call forward() before the response is committed. I seems that it is
throwing IllegalStateException.
Antony Paul
- Original Message -
From: "Teja Jo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 18, 2003 9:27 AM
Subject: RequestDispat
ts executed properly
strAddress = "/WEB-INF/internalJsp/ReceiveJsp.jsp";
RequestDispatcher objReqDispatcher = request.getRequestDispatcher(strAddress);
objReqDispatcher.forward(request,response);
Here request dispatcher is not working - it doesn't forward the request.
forward the request using RequestDispatcher - but it
> is not doing so.(Only when directly forwarded without doing any initial
> processing with the request - it gets forwarded).Please give a solution
> for this.
>
> Thanks and regards,
> Tejashri.
>
>
>
>
> ---
Hello everyone,
My servlet after processing something from the HttpServletRequest received by it - is
supposed to forward the request using RequestDispatcher - but it is not doing so.(Only
when directly forwarded without doing any initial processing with the request - it
gets forwarded
You must call super.init(...) in your init method.
-Tim
Luke Vanderfluit wrote:
Hi,
I found that using the init() method to set up a database connection
then trying to instantiate a ServletContext object and forward to a jsp
page didn't work.
If placed the database connection code in the doPo
etParameter("descr");
try
{
// Declare statement
Statement statement = dbcon.createStatement();
String query = "insert into bookmark values('"
+ title + "', '" + url + "', '" + descr + "'
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,
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
>
/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
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
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
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
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
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
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
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
-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
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.
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
On Fri, 13 Dec 2002, RXZ JLo wrote:
> Date: Fri, 13 Dec 2002 05:31:12 -0800 (PST)
> From: RXZ JLo <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: RequestDispatcher scena
ations.
>
>
> It seems I am confused about how RequestDispatcher
> works. From what I understand I think using a
> RequestDispatcher from within a Servlet or a Filter,
> is same - the request is viewed as a fresh request
> appropriately handled by Tomcat. This means, when I
> use Re
> -Original Message-
> From: RXZ JLo [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 13, 2002 8:31 AM
> To: Tomcat Users List
> Subject: RE: RequestDispatcher scenarios ( was RE: static url routing)
>
>
>
> --- "Cox, Charlie" <[EMAIL PROTEC
--- "Cox, Charlie" <[EMAIL PROTECTED]> wrote:
> RequestDisatcher is for dispatching (parts of)the
> current request to other
> resources in the same context without involving the
> browser. This means that
> it is not a new request(filters/valves/etc do not
> get invoked), but it is
> processed by
see below
> -Original Message-
> From: RXZ JLo [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 13, 2002 12:58 AM
> To: Tomcat Users List
> Subject: Re: RequestDispatcher scenarios ( was RE: static url routing)
>
>
>
> --- "Craig R. McCla
;
> > To: Tomcat Users List
> <[EMAIL PROTECTED]>
> > Subject: RequestDispatcher scenarios ( was RE:
> static url routing)
> >
> >
> > --- "Craig R. McClanahan" <[EMAIL PROTECTED]>
> wrote:
> > > To do a redirect filter, then, you
On Mon, 9 Dec 2002, RXZ JLo wrote:
> Date: Mon, 9 Dec 2002 03:21:25 -0800 (PST)
> From: RXZ JLo <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RequestDispatcher scenarios ( was RE: sta
RequestDispatcher works the same in a servlet or a filter. You can use
forward() in a filter and not call doFilter() just like you call forward()
in your servlet followed by a return;
The diffference is that your request will get mapped to one servlet, but it
can also be mapped to multiple
1 - 100 of 172 matches
Mail list logo