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

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

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 >

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,

Re: Traversing up a directory using RequestDispatcher

2004-09-17 Thread Xeth Waxman
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

RE: Traversing up a directory using RequestDispatcher

2004-09-17 Thread Shapira, Yoav
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

Re: Traversing up a directory using RequestDispatcher

2004-09-17 Thread Xeth Waxman
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

Re: Traversing up a directory using RequestDispatcher

2004-09-17 Thread John Villar
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

Re: Traversing up a directory using RequestDispatcher

2004-09-17 Thread Xeth Waxman
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

[OFF-TOPIC] Re: Traversing up a directory using RequestDispatcher

2004-09-17 Thread John Villar
) 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

RE: Traversing up a directory using RequestDispatcher

2004-09-17 Thread Allistair Crossley
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 > >

RE: Traversing up a directory using RequestDispatcher

2004-09-17 Thread Shapira, Yoav
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

Re: Traversing up a directory using RequestDispatcher

2004-09-17 Thread John Villar
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

Traversing up a directory using RequestDispatcher

2004-09-16 Thread Xeth Waxman
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

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

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

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

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

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

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

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

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

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

RE: [NEWBIE] Setting up a JDBC Realm and using RequestDispatcher

2004-04-06 Thread Daniel Huang
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

[NEWBIE] Setting up a JDBC Realm and using RequestDispatcher

2004-04-06 Thread Eric Vogue
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

RE : URL redirect problem, even with 'RequestDispatcher' servlet !

2004-03-25 Thread Hertenstein Alain
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

Re: URL redirect problem, even with 'RequestDispatcher' servlet !

2004-03-24 Thread Bill Barker
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

Re: RE : URL redirect problem, even with 'RequestDispatcher' servlet !

2004-03-24 Thread Tim Funk
À : 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

RE : URL redirect problem, even with 'RequestDispatcher' servlet !

2004-03-24 Thread Hertenstein Alain
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:

Re: URL redirect problem, even with 'RequestDispatcher' servlet !

2004-03-24 Thread Tim Funk
equestedPage.equals("/")) { System.out.println("DEFAULT Forwarding request to index.html !"); RequestDispatcher reqDispatcher = request.getRequestDispatcher(response.encodeURL("index.html")); reqDispatcher.forward(reque

URL redirect problem, even with 'RequestDispatcher' servlet !

2004-03-24 Thread Hertenstein Alain
;); // 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 !"

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

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

Possible Bug in 4.1.27 - RequestDispatcher fails after cross context include

2004-01-08 Thread Scott Goldstein
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

RE: Further details - RequestDispatcher in servlet is not working

2003-12-19 Thread Shapira, Yoav
>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

Re: Further details - RequestDispatcher in servlet is not working

2003-12-19 Thread Basavaraju P. Banakar
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

RE: Further details - RequestDispatcher in servlet is not working

2003-12-18 Thread Teja Jo
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

RE: Further details - RequestDispatcher in servlet is not working

2003-12-18 Thread Shapira, Yoav
Howdy, > > //uptil this point it gets executed properly >strAddress = "/WEB-INF/internalJsp/ReceiveJsp.jsp"; >RequestDispatcher objReqDispatcher = >request.getRequestDispatcher(strAddress); >objReqDispatcher.forward(request,response); > > Here

Re: RequestDispatcher in servlet is not working

2003-12-17 Thread Antony Paul
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

Re: RequestDispatcher in servlet is not working

2003-12-17 Thread Teja Jo
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

Re: RequestDispatcher in servlet is not working

2003-12-17 Thread Antony Paul
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

Further details - RequestDispatcher in servlet is not working

2003-12-17 Thread Teja Jo
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.

Re: RequestDispatcher in servlet is not working

2003-12-17 Thread Ben Souther
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. > > > > > ---

RequestDispatcher in servlet is not working

2003-12-17 Thread Teja Jo
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

Re: RequestDispatcher and getServletContext() don't work when using init()

2003-10-15 Thread Tim Funk
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

RequestDispatcher and getServletContext() don't work when using init()

2003-10-15 Thread Luke Vanderfluit
etParameter("descr"); try { // Declare statement Statement statement = dbcon.createStatement(); String query = "insert into bookmark values('" + title + "', '" + url + "', '" + descr + "'

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

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

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

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

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

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

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

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

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

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.

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

RE: RequestDispatcher scenarios ( was RE: static url routing)

2002-12-14 Thread Craig R. McClanahan
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

Re: RequestDispatcher scenarios ( was RE: static url routing)

2002-12-14 Thread Craig R. McClanahan
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

RE: RequestDispatcher scenarios ( was RE: static url routing)

2002-12-13 Thread Cox, Charlie
> -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

RE: RequestDispatcher scenarios ( was RE: static url routing)

2002-12-13 Thread RXZ JLo
--- "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

RE: RequestDispatcher scenarios ( was RE: static url routing)

2002-12-13 Thread Cox, Charlie
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

Re: RequestDispatcher scenarios ( was RE: static url routing)

2002-12-12 Thread RXZ JLo
; > > 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

Re: RequestDispatcher scenarios ( was RE: static url routing)

2002-12-10 Thread Craig R. McClanahan
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

RE: RequestDispatcher scenarios ( was RE: static url routing)

2002-12-09 Thread Cox, Charlie
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   2   >