Re: HttpServletResponse.sendRedirect() not working?

2009-02-16 Thread Qiao Jin
I don't know much about these frameworks either. But from a logical point of view, if you are seeing the error page by TC, that would indicate to me that TC has been triggered to handle the exception. Was the exception rethrown or somehow propagated upward after Spring's exception processing? The e

Re: HttpServletResponse.sendRedirect() not working?

2009-02-16 Thread Qiao Jin
What's after the sendRedirect() call in your code? And what's in the final? Can you post a simple code sample that would demonstrate the problem? On Mon, Feb 16, 2009 at 5:55 PM, Brad Whitaker wrote: > > I'm having a problem with Tomcat 6.0.18 that I don't understand. I'm > invoking > HttpServle

RE: Apache Tomcat 6.0 loads blank page

2009-02-01 Thread Qiao Jin
I am new to Tomcat as well... But, does mms_test contain WEB-INF with web.xml, like other directories under webapps do? Try copy it from "docs" and see what happens. Also, if you pull mms_test out of webapps and restart tomcat, does the problem go away? Did you change server.xml from the default?

RE: jsvc problem with PID

2009-02-01 Thread Qiao Jin
Could it be that you are running the start-up script (the one using jsvc) as a normal user and thus does not have the permission to write to /var/run? In my system, CentOS 5, /var/run can only be written by root. I run my jsvc script as root and use the "-user" option to switch to a normal user

RE: application.getRealPath() in JSP from a subdirectory

2009-01-31 Thread Qiao Jin
, 2009 11:09 PM To: Tomcat Users List Subject: Re: application.getRealPath() in JSP from a subdirectory Qiao Jin wrote: > Serving mydomain.com, what I have is one application in an unpacked > directory, 'app-root', with jsp files located in the root dir or its > subdirs. The Host f

RE: application.getRealPath() in JSP from a subdirectory

2009-01-30 Thread Qiao Jin
ers List Subject: Re: application.getRealPath() in JSP from a subdirectory Qiao Jin wrote: > Chuck, thanks for your response. It turns out that the auto-deploy switch > does affect the situation. New subdirs created after the auto-deploy is > turned off are no longer being treated as sep

RE: application.getRealPath() in JSP from a subdirectory

2009-01-30 Thread Qiao Jin
January 30, 2009 7:14 PM To: Tomcat Users List Subject: RE: application.getRealPath() in JSP from a subdirectory > From: Qiao Jin [mailto:bra...@gmail.com] > Subject: RE: application.getRealPath() in JSP from a subdirectory > > In my case, I need to list all the files under an image d

RE: application.getRealPath() in JSP from a subdirectory

2009-01-30 Thread Qiao Jin
om: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Friday, January 30, 2009 12:09 PM To: Tomcat Users List Subject: RE: application.getRealPath() in JSP from a subdirectory > From: Qiao Jin [mailto:bra...@gmail.com] > Subject: application.getRealPath() in JSP from a subdirectory >

application.getRealPath() in JSP from a subdirectory

2009-01-30 Thread Qiao Jin
I am using Tomcat 6.0.18, JDK 1.5 on CentOS 5. From within a JSP page, applicaton.getRealPath() is returning results that I wasn't expecting. Say, my application root directory in CentOS is "app-root". From within app-root/dir-a/test.jsp, I am using application.getRealPath(). Here are the resul

RE: Inner class trouble in JSP

2009-01-27 Thread Qiao Jin
6:17 PM To: Tomcat Users List Subject: Re: Inner class trouble in JSP -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jin, Qiao Jin wrote: > Here is an example, a menu header JSP included in various pages: > > <%! > class MenuItem { > String pageURL;

RE: Inner class trouble in JSP

2009-01-24 Thread Qiao Jin
: Inner class trouble in JSP 2009/1/24 Qiao Jin : > I am using Tomcat 6.0.18 with JDK 1.5.0_17 on CentOS 5. I am getting a > compiling error on the following code in a jsp page that uses an inner > class. I remember I used to be able to do this with a different container > (implemen

RE: Inner class trouble in JSP

2009-01-24 Thread Qiao Jin
in JSP I can't help with the inner class issue other than to say that perhaps you should move away from using inner classes in JSP totally. I don't understand how you are using these inner classes, could you please explain? On Sat, Jan 24, 2009 at 1:32 PM, Qiao Jin wrote: > I

Inner class trouble in JSP

2009-01-24 Thread Qiao Jin
I am using Tomcat 6.0.18 with JDK 1.5.0_17 on CentOS 5. I am getting a compiling error on the following code in a jsp page that uses an inner class. I remember I used to be able to do this with a different container (implementing JSP 1.2 and JDK 1.4). <%! private class Test { String