RE: Session\Security Checking

2003-07-28 Thread Mike Curwen
I think using a realm and simply setting up /downloaddir/* as a 'protected resource' is the way to go. The functionality you're looking for has already been implemented by Container-Managed Auth. Also.. if you use a container AUTH scheme, then you don't need the Session ID in the URL. The mere

RE: connection pool recreated

2003-07-28 Thread Mike Curwen
Didn't know you were going to start a new thread.. see my question under the previous one. The DataSource in your code is NOT "the pool". > -Original Message- > From: Hans Wichman [mailto:[EMAIL PROTECTED] > Sent: Monday, July 28, 2003 9:45 AM > To: [EMAIL PROTECTED] > Subject: connectio

RE: mysql connection pool

2003-07-28 Thread Mike Curwen
By 'new pool instance' do you mean that: Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/TestDB"); System.out.println("ds instance : " + ds); The result of System.out.println is always a different value ? In this case, it's not a new instance of the

RE: Servlet Caching question

2003-07-25 Thread Mike Curwen
Because I might decide that "hmm, this page's content really doesn't change very often, so why don't I cache its results for 5 minutes"? For example, one page might contain many different 'pagelets', say a little weather box with the current weather conditions. If your weather conditions are onl

RE: performance of serving static data? apache or tomcat

2003-07-25 Thread Mike Curwen
Ok there's just one tiny clarification I might offer, in case this is the problem. Because I think *both* of you are saying the same thing, but maybe not (if this is indeed the difficulty). > -Original Message- > From: John Turner [mailto:[EMAIL PROTECTED] > Sent: Friday, July 25, 2003 1

RE: iPlanet and Tomcat integration on solaris

2003-07-25 Thread Mike Curwen
That's a classic problem. Renaming the classes12.zip to classes12.jar is your first step in debugging database connection problems. > -Original Message- > From: Peter Cline [mailto:[EMAIL PROTECTED] > Sent: Friday, July 25, 2003 9:44 AM > To: [EMAIL PROTECTED] > Subject: iPlanet and Tom

RE: tomcat error

2003-07-24 Thread Mike Curwen
RH has a version of Tomcat that installs with the 'default' install of RH. Is this one already running (and so won't allow another TC to start). > -Original Message- > From: Steven Garrett [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 24, 2003 2:36 PM > To: 'Tomcat Users List' > Subje

RE: how 2 start tomcat from ms-dos command prompt without creating a new window ?

2003-07-24 Thread Mike Curwen
> -Original Message- > From: Me myself [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 24, 2003 2:32 PM > To: [EMAIL PROTECTED] > Subject: Re: how 2 start tomcat from ms-dos command prompt > without creating a new window ? > > > > Yes, but, would tomcat then start with the windows st

RE: JDBC + MySQL Datasource + Tomcat = ClassCastException

2003-07-22 Thread Mike Curwen
the resultset cursor back to before > the first row. Is there already a method to give me this > data? I looked but couldn't find any... > > Joe > > -Original Message- > From: Mike Curwen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 22, 2003 1:05 PM > To

RE: JDBC + MySQL Datasource + Tomcat = ClassCastException

2003-07-22 Thread Mike Curwen
I'd drop the non-compliant way of getting this value, and use what's provided by JDBC 3.0 (available with JDK 1.4.x and ConnectorJ 3.x) statement.getGeneratedKeys() No casting required. http://www.mysql.com/articles/autoincrement-with-connectorj.html > -Original Message- > From: Joe

RE: Error Page Status Code

2003-07-21 Thread Mike Curwen
You don't implement anything, you just retrieve them from the xxx attribute space using yyy. Since I'm not connecting ALL the dots for you, I'll leave you to figure out what xxx and yyy are. Hint: you've posted them in your last reply. <% Integer error_code = (Integer)xxx.getAttribute(yyy); %>

RE: System.load Exceptions cannot be caught

2003-07-21 Thread Mike Curwen
Did you mean UnsatisiedLinkError ? Because that's all I can find in the javadocs. In this case, your code won't catch this Error, since an Error is not an Exception. So perhaps the container will end up catching it and wrapping it in a JasperException. Is there a 'route cause' for the JasperExcep

RE: Handling auth failure

2003-07-21 Thread Mike Curwen
Check the DTD > -Original Message- > From: Christian J. Dechery - ACCENTURE > [mailto:[EMAIL PROTECTED] > Sent: Monday, July 21, 2003 8:50 AM > To: 'Tomcat Users List' > Subject: RES: Handling auth failure > > > where exactly in web.xml does this go? > > _

RE: MemoryRealm and tomcat-users.xml

2003-07-18 Thread Mike Curwen
And you restart Tomcat after changing tomcat-user.xml ? > -Original Message- > From: Roland Carlsson [mailto:[EMAIL PROTECTED] > Sent: Friday, July 18, 2003 6:21 AM > To: Tomcat Users List > Subject: Re: MemoryRealm and tomcat-users.xml > > > Yes, i'm only testing with one file, the p

Using sendRedirect puts me into an infinite loop...

2003-07-16 Thread Mike Curwen
Sorry for posting this here, but I either have a pretty big misunderstanding of something (most likely) or I've discovered a bug I have Apache Web Server set up thusly: ~~~ DocumentRoot /home/webhome/myapp/ ServerName www.myApp.com ErrorLog /v

RE: JDBCRealm - Login redirects to my image instead

2003-07-14 Thread Mike Curwen
oh DUH. Sorry, I shoulda read that more closely. So just make login.jsp and its image (or maybe even just the image) the unprotected resource. Everything else can stay where it is. But my original ?? about Tomcat using the 'last' rather than the 'causing' resource stands. Why would they imple

RE: JDBCRealm - Login redirects to my image instead

2003-07-14 Thread Mike Curwen
That seems to make sense on first read. But... 1) I make a request for a protected resource, say my_portal.jsp, which contains an image. 2) The container says: "that's a protected resource" and redirects. 3) It authenticates and remembers that my_portal.jsp was the protected resource asked for.

RE: J2EE: Sinking Deeper and Deeper

2003-07-14 Thread Mike Curwen
j2ee.jar contains classes that would conflict with Tomcat, so maybe just use mail.jar activation.jar Both of these are available from java.sun.com > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, July 11, 2003 11:13 PM > To: Tomcat Users List > S

RE: RequestDispatcher

2003-07-11 Thread Mike Curwen
Because forwards are accomplished on the server-side, with no notification to the client that it has happened. If you want the browser bar to update, you need to use sendRedirect(). But then you also need to be careful to use session (or a QueryString on the sendRedirect URL) instead of request ob

RE: JDBCRealm - Session not timing out

2003-07-10 Thread Mike Curwen
Adding objects: HttpSession session = request.getSession(); session.setAttribute("foo", "Foo"); If at some point in your code, you want to "log out" a user, session.invalidate(); Then when they request a protected resouce , the container "ought" to re-authenticate them through FORM auth, becau

RE: JDBCRealm - Session not timing out

2003-07-10 Thread Mike Curwen
> -Original Message- > From: Jacob Kjome [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 10, 2003 12:29 PM > To: Tomcat Users List > Subject: RE: JDBCRealm - Session not timing out > > Basic AUTH gets resent automatically, you'd just start > them over with a > new session. Don't make

RE: JDBCRealm - Session not timing out

2003-07-10 Thread Mike Curwen
I had thought (and replied so in a separate thread) that BASIC auth would also time out. But even if it doesn't... How could J2EE work, if the following didn't happen: 1. User gets authenticated with BASIC AUTH 2. User lets their session timeout 3. User requests a protected page. 4. container as

RE: How to make Tomcat reread user's role from database

2003-07-10 Thread Mike Curwen
That's one way of doing it, but what if you want to use container-provided auth, and methods like isUserInRole getUserPrincipal etc And Rick, this relates to your other question about FORM AUTH and session timeout. I'm fairly certain that if you expire your session, then you are no longer au

RE: Tomcat: j_security_check: Form Authentication

2003-07-10 Thread Mike Curwen
The problem is in the error message: Invalid direct reference to form login page In brief: With container-based auth, when a user attempts to access a protected resource, the container will 'remember' which resource they tried to access, and send them off to the form login page, specified in web.

RE: setting up a root servlet / getting images to appear in Tomcat 4.1.24

2003-07-09 Thread Mike Curwen
A-HAAA!!! Yes, there is... but in the next version of the spec :( (Tomcat 5) So for now, we all have to have a jsp file that does the kickmeto trick. > -Original Message- > From: Ben Souther [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 09, 2003 3:52 PM > To: Tomcat Users List >

RE: setting up a root servlet / getting images to appear in Tomcat 4.1.24

2003-07-09 Thread Mike Curwen
> -Original Message- > From: John Turner [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 09, 2003 3:31 PM > To: Tomcat Users List > Subject: Re: setting up a root servlet / getting images to > appear in Tomcat 4.1.24 > > > > OK. I still don't get it, but I don't want to prolong th

RE: Still need help with JDBCRealm

2003-07-09 Thread Mike Curwen
posted by 'svaret'. Beyond those suggestions, I'm at a loss. > -Original Message- > From: Rick Roberts [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 09, 2003 12:28 PM > To: Tomcat Users List > Subject: Re: Still need help with JDBCRealm > > &

RE: [off-topic] - Where can i find Oreilly's package for uploading files?

2003-07-09 Thread Mike Curwen
www.servlets.com/cos > -Original Message- > From: Jose Euclides da Silva Junior - DATAPREVRJ > [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 09, 2003 1:02 PM > To: '[EMAIL PROTECTED]' > Subject: [off-topic] - Where can i find Oreilly's package for > uploading files? > > > Hi, i h

RE: Still need help with JDBCRealm

2003-07-09 Thread Mike Curwen
Someone else on this list had a similar problem with NPE's being thrown by Coyote. His developers insisted it wasn't their code, and that it had to be coyote causing the trouble. I sympathize with that position, because on that stack trace, and on yours, there is only org.apache classes throwing E

RE: Still need help with JDBCRealm

2003-07-09 Thread Mike Curwen
Also, > -Original Message- > From: Rick Roberts [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 09, 2003 11:32 AM > To: Tomcat Users List > Subject: Still need help with JDBCRealm > > > Of the several applications running on this server, > I am only trying to apply a JDBCRealm to th

RE: Still need help with JDBCRealm

2003-07-09 Thread Mike Curwen
I always thought it was just a cut error (typo), but you need a < at the start of your Realm Actually, if your file is *exactly* as shown, I'm surprised it doesn't complain loudly. > -Original Message- > From: Rick Roberts [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 09, 2003 11:

RE: I can no longer start TC from W2k Start Menu

2003-07-09 Thread Mike Curwen
Is this an annoying aol thing? Or is it a (still annoying) attempt at soliciting more responses on this thread? If it's that 2nd thing, posting the exact same message 3 times in as many days is liable to get you the opposite of the response you want. > -Original Message- > From: [EMAIL

RE: JDBC Realm Warning Message?

2003-07-08 Thread Mike Curwen
> -Original Message- > From: Rick Roberts [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 08, 2003 4:22 PM > To: Tomcat Users List > Subject: Re: JDBC Realm Warning Message? > > > Mike, > > Thanks a bunch!! > > I feel like I'm well on my way to figuring this out now. > > Where can I

RE: JDBC Realm Warning Message?

2003-07-08 Thread Mike Curwen
> -Original Message- > From: Rick Roberts [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 08, 2003 3:59 PM > To: Tomcat Users List > Subject: Re: JDBC Realm Warning Message? > > > OK. The error message is gone now! Thanks. > It took me a few tries to figure out where the > "" needed

RE: JDBC Realm Warning Message?

2003-07-08 Thread Mike Curwen
quickly: no. that's the memoryrealm > -Original Message- > From: Rick Roberts [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 08, 2003 4:04 PM > To: Tomcat Users List > Subject: Re: JDBC Realm Warning Message? > > > Oh! One other question. > > Does the "tomcat-users.xml" file have anyt

RE: prompt for password at startup

2003-07-08 Thread Mike Curwen
> how would this be handled at the OS level? > > Mike Curwen wrote: > > >can that not be handled at an OS level? > > > > > > > > > >>-Original Message- > >>From: Mark W. Webb [mailto:[EMAIL PROTECTED] > >>S

RE: prompt for password at startup

2003-07-08 Thread Mike Curwen
can that not be handled at an OS level? > -Original Message- > From: Mark W. Webb [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 08, 2003 3:23 PM > To: [EMAIL PROTECTED] > Subject: prompt for password at startup > > > Is there an accepted way to prompt for a password upon > startup

RE: JDBC Realm Warning Message?

2003-07-08 Thread Mike Curwen
Reply inlined > -Original Message- > From: Rick Roberts [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 08, 2003 1:51 PM > To: Tomcat Users List > Subject: Re: JDBC Realm Warning Message? > > > Rick Roberts wrote: > > Thanks for reply Mike. > > > > After thinkin about this message

RE: JDBCRealm first try

2003-07-08 Thread Mike Curwen
Have you read my reply in your other thread ? > -Original Message- > From: Rick Roberts [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 08, 2003 1:04 PM > To: Tomcat Users List > Subject: Re: JDBCRealm first try > > > Still haven't figured it out. > Can anyone help? > > Thanks, > -- >

RE: JDBC Realm Warning Message?

2003-07-08 Thread Mike Curwen
>From the DTD for web.xml: So then.. it appears you need to define who 'tomcat' is, within a security-role element > -Original Message- > From: Rick Roberts [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 08, 2003 12:08 PM > To: Tomcat Users List > Subject: JDBC Realm Warning Messa

RE: org.apache.commons.digester.Digester error

2003-07-08 Thread Mike Curwen
That means you have an incorrect entry in web.xml. 'incorrect' in this context means a typo, or elements that are incorrectly nested, or out of order. It's most likely the order though. > -Original Message- > From: Naveen My [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 08, 2003 11

RE: problem with getQueryString

2003-07-03 Thread Mike Curwen
If you post to the servlet, getQueryString() should return null. But if your request looks like: http://localhost:8080/myapp/myservlet?foo=bar then getQueryString() should return "foo=bar" Which case is it? > -Original Message- > From: Sumit Mittal [mailto:[EMAIL PROTECTED] > Sent: T

RE: Finding exact Tomcat version

2003-07-03 Thread Mike Curwen
> -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 03, 2003 10:50 AM > To: Tomcat Users List > Subject: RE: Finding exact Tomcat version > > > > http://tomcatfaq.sourceforge.net/miscellaneous.html > That won't help, since the Installer needs to

RE: Sessions sans cookies? URL Rewriting?

2003-07-02 Thread Mike Curwen
If it wasn't from Yoav, I would have said the following: > > No, you don't need to worry about it. The server rewrites the URL > > automatically. > > was completely wrong. ;) I've seen it written that "one should ensure all URL emitted from your system should be passed through encodeRedire

RE: calling a servlet...from a .jsp (HTTP Status 404 )

2003-07-02 Thread Mike Curwen
Looks like you forgot to put /servlet > HTTP Status 404 - /careerCenter/StudentRegistrationServlet > -Original Message- > From: Naveen My [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 02, 2003 3:26 PM > To: Tomcat Users List > Subject: calling a servlet...from a .jsp (HTTP Status

RE: Starting a sevlet automatically when Tomcat starts

2003-07-02 Thread Mike Curwen
>From the DTD: The optional contents of these element must be an integer indicating the order in which the servlet should be loaded. If the value is a negative integer, or the element is not present, the container is free to load the servlet whenever it chooses. So, Tomcat developers.. what do

RE: Message Digest severe error when starting Tomcat 4.1

2003-07-02 Thread Mike Curwen
Ok, I'll take this one again ;) SEVERE: Parse Error at line 59 column 11: The content of element type "web-app" must match "... means you have an error in web.xml. Something is out of order, or a typo, or... > -Original Message- > From: Jose Euclides da Silva Junior - DATAPREVRJ >

RE: Digester error/SEVERE Parse starting point

2003-07-02 Thread Mike Curwen
It's in the stacktrace... SEVERE: Parse Error at line 14 column 12: The content of element type "servlet" must match ... SEVERE: Parse Error at line 23 column 20: The content of element type "servlet-mapping" must match ... You have two errors in web.xml possibly three... [Fatal Error] :-1:-

RE: "Persistent attributes"

2003-06-27 Thread Mike Curwen
The way I'd do this is to use Properties objects, and a few (perhaps even one?) files under WEB-INF/props On startup, on the setup page, you'd ask the user to supply the filepath to use. Then you'd write that info to WEB-INF/props/application.properties. On subsequent restarts, your app looks to

Tomcat Classloaders and loading properties files

2003-06-27 Thread Mike Curwen
ourceAsStream(), but I think to get the Tomcat-guaranteed behaviour, I need to use the classloader. And I'm thinking this will still work for non web-app uses of library.jar Does all that seem accurate? I'm just thinking out loud. ;) -----

RE: Log4j and Tomcat howto?

2003-06-26 Thread Mike Curwen
I really liked this page: http://www.vipan.com/htdocs/log4jhelp.html It helped me get started with log4j. One warning though, it is out of date, so you'll have to change some of the code examples. But otherwise, the other stuff is still pretty relevant. > >-Original Message- > >From

RE: How to protect static HTML's

2003-06-25 Thread Mike Curwen
> -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2003 12:53 PM > To: Tomcat Users List > Subject: RE: How to protect static HTML's > > > > Howdy, > > >(2) Use filters. All filters set for a particular request are run > *once* > >on an i

RE: Tomcat 4.1.24/Win2K - Servlet not found.

2003-06-25 Thread Mike Curwen
:47 AM > To: Tomcat Users List > Subject: Re: Tomcat 4.1.24/Win2K - Servlet not found. > > > > Except that using the Invoker is disabled for a reason and should be > avoided if possible. > > John > > On Wed, 25 Jun 2003 11:44:38 -0500, Mike Curwen > <[

RE: Tomcat 4.1.24/Win2K - Servlet not found.

2003-06-25 Thread Mike Curwen
Look in CATALINA_HOME/conf/web.xml. This is a large file with a large amount of comments. You should find a servlet-mapping tag that has the pattern /servlet/* and you'll find it commented out. This is the 'invoker servlet' that every beginner dreads, because there are a LOT of books / tutoria

RE: hosting services offering tomcat

2003-06-25 Thread Mike Curwen
There is a listing of servlet ISPs here: http://www.servlets.com/isps/servlet/ISPViewAll It's not Tomcat specific, but well, you can search on the page. ;) > -Original Message- > From: Joe Block [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2003 10:08 AM > To: [EMAIL PROTECTED]

RE: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000

2003-06-25 Thread Mike Curwen
To construct a sfn from an lfn, you take the first six letters of the directory name and add ~1 or ~2 or ~3. So both CATALINA_HOME and JAVA_HOME are not correct. A sfn is exactly 8 characters. If you want to know what the DOS name (sfn) is for a particular directory, use the Run menu to start 'c

RE: Tomcat 4.1.24 Security

2003-06-24 Thread Mike Curwen
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2003 4:57 PM > To: [EMAIL PROTECTED] > Subject: Tomcat 4.1.24 Security > > that the dbcp code had tried 3 times to load before it gave up. This makes me think all is fine on the Tomcat e

RE: Conflict of Kazaa and Tomcat

2003-06-24 Thread Mike Curwen
I'm pretty sure Kazaa starts a webserver on port 80. That's also how Kazza's theatre (preview a downloading movie file) works. If you've modified Tomcat to start on port 80, then change it back to 8080. Or... if I'm remembering wrong, and it's kazza that starts on 8080, then change Tomcat to 80

RE: Deployment of WAR-files

2003-06-24 Thread Mike Curwen
Do you have a context declared for the web app ? Check out this for details: http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=5 6&t=000264 It contains links to nagoya for bug reports on unpacking WARs with context declared in server.xml. I'm still irritated by the tone o

RE: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000

2003-06-24 Thread Mike Curwen
> -Original Message- > From: Sullivan, Patrick [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2003 9:30 AM > To: Mark Hayes; tomcat-User (E-mail) > Subject: RE: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000 > > > Did you move the appropriate jars to sdk's jre\lib\endorsed? And what jars

RE: strange emial behavior

2003-06-24 Thread Mike Curwen
This has been covered... search your inbox (or the archive) for subject line: "getting a reply like this" > -Original Message- > From: a b [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2003 3:03 AM > To: [EMAIL PROTECTED] > Subject: strange emial behavior > -

RE: easy question

2003-06-24 Thread Mike Curwen
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html > -Original Message- > From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2003 5:24 AM > To: Tomcat Users List > Subject: RE: easy question > > > On that note, what is the scope of jars put

RE: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000

2003-06-24 Thread Mike Curwen
Did you use LFN's in your set statements ? Try the c:\Progra~1\Apache~1\Tomcat~1 instead (same for JAVA_HOME) > -Original Message- > From: Mark Hayes [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2003 4:33 AM > To: tomcat-User (E-mail) > Subject: tomcat 4.1.24 + sdk 1.4.1_03 + Win

RE: basic logging question

2003-06-20 Thread Mike Curwen
Do you have the log4j.jar file anywhere? It would be difficult to do log4j logging with out it in Tomcat's common/lib Here is a basic configuration file I use, placed under my webapp's WEB-INF/classes: #log4j.properties log4j.rootCategory=DEBUG, filer, chainsaw log4j.appender.filer=org.apache.

RE: Javax servlets

2003-06-20 Thread Mike Curwen
If you've got Tomcat, you've got those packages. Make sure servlet.jar is in your classpath (for compiling). For runtime, make sure you've set JAVA_HOME and CATALINA_HOME properly. > -Original Message- > From: Apollinaris B. Mwila, Ph.D [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 1

RE: configuration

2003-06-20 Thread Mike Curwen
Since 4.1.12, the "invoker" servlet has been turned off by default. Check out the web.xml in the conf directory, you'll see the invoker commented out. > -Original Message- > From: Free Bud [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 18, 2003 10:00 PM > To: [EMAIL PROTECTED] > Subje

RE: passing parameters to another JSP page

2003-06-20 Thread Mike Curwen
Don't make the opening jsp:include tag a singleton. You have : it should be: > -Original Message- > From: Alan Tang [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2003 5:03 AM > To: [EMAIL PROTECTED] > Subject: passing parameters to another JSP page > > > Hi, > Any help would

RE: web.xml init param

2003-06-19 Thread Mike Curwen
If you are invoking your servlet through /servlet it will not pick up the init-params from web.xml. You need to invoke it through a proper mapping. That's my best shot. ;) > -Original Message- > From: Jing Huang [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 19, 2003 2:46 PM > To: [

RE: Problems with XML parsers and webapps

2003-06-18 Thread Mike Curwen
Read the very bottom of this doc: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html > -Original Message- > From: Jared Walker [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 18, 2003 10:08 AM > To: Tomcat Users List > Subject: Problems with XML parsers and webapps

RE: JSP Compiler output?

2003-06-17 Thread Mike Curwen
Funny how that's his *problem*;) The bug is deliberate. The problem is: Why isn't there a full stack trace? > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 4:17 PM > To: Tomcat Users List > Subject: RE: JSP Compiler output? > > >

RE: possibly off topic: workers2.properties question

2003-06-17 Thread Mike Curwen
vlet /serLogin/* and map jkmount to /ser* ? > -Original Message- > From: Jason Bainbridge [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 12:29 PM > To: Tomcat Users List > Subject: Re: possibly off topic: workers2.properties question > > > On Wed, 18 Ju

RE: possibly off topic: workers2.properties question

2003-06-17 Thread Mike Curwen
quot; > > AFAIK (I've never tried it), you could keep > "/examples/servlet/* ajp13" in > httpd.conf, comment out the Invoker in web.xml, and then > explicitly map > every example servlet in web.xml, and the examples servlets > would work, as > long as was

RE: possibly off topic: workers2.properties question

2003-06-17 Thread Mike Curwen
ts directory other than > servlets, you > can use a mapping like "/app/servlet/*" as a way of telling > Tomcat "handle > all requests for that folder". > > Another example, such as the case with struts, is to use > something like > "/*.do" t

RE: possibly off topic: workers2.properties question

2003-06-17 Thread Mike Curwen
e is perfectly capable of handling every other file type > besides JSP > and servlet, what's the need for more functionality? I'm not > arguing, just > wondering what the advantage is. > > John > > On Tue, 17 Jun 2003 10:23:02 -0500, Mike Curwen > <

RE: possibly off topic: workers2.properties question

2003-06-17 Thread Mike Curwen
This is something that's on the horizon for me, and I know what I'll end up doing is using that automated method of configuring mod_jk. Tomcat will start and create a file that contains a uri:webappname/servletname mapping for each servlet mapped in web.xml for all webapps. Then in apache, you ju

Filters and 4.1.24

2003-06-17 Thread Mike Curwen
ting -> Y (worked as expected) Has anyone else had issues with Filters and these various combinations ? --- Mike Cur

RE: Screen refresh

2003-06-16 Thread Mike Curwen
Right.. if the page you're viewing is the result of a form submission, then it would be a problem if you refreshed that page. But we're refreshing to a separate page so it's like a whole new request isn't it? > You could run into problems with forms and what not if you refresh your > main page ev

RE: Screen refresh

2003-06-16 Thread Mike Curwen
Use of META refresh tags ? http://www.yoursite.com/login_expired";> Where 'N' is the number of seconds to wait before refreshing. CNN.com uses this on their main page. -Original Message- From: Reis, Tom [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 4:15 PM To: Tomcat Users

RE: PLEASE REMOVE THE VIRUS BEFORE MAILING THE LIST...

2002-01-29 Thread Mike Curwen
>The real problem with Virus scanners as an open source project is >two fold: > 1. The virus writers can look at the source code and determine new >patterns that will be outside of the scanner's view (granted the script >kiddies won't be able to do this, but the more advanced virus writers

RE: PLEASE REMOVE THE VIRUS BEFORE MAILING THE LIST...

2002-01-29 Thread Mike Curwen
So, is an open-source Anti-Virus project (perhaps at Jakarta) self-defeating? ;) -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 9:45 AM To: 'Tomcat Users List' Subject: RE: PLEASE REMOVE THE VIRUS BEFORE MAILING THE LIST... I w

RE: Binary Dist. tomcat 4.01 Win32 can't find jdk on installation

2002-01-28 Thread Mike Curwen
It sounds like this might be related to your other javac/Main problem. If Tomcat can't find tools.jar, and the install program can't find your 'jdk' (tools.jar)... maybe a registry inspection is in order. -Original Message- From: Michael Kastner [mailto:[EMAIL PROTECTED]] Sent: Monday,

RE: TOMCAT 4.0.1 and Cookies / URL Rewriting

2002-01-28 Thread Mike Curwen
No, that's not exactly correct. Tomcat performs URL rewriting in its default configuration. So sessions are not 'only' possible if cookies are enabled. As a first line of defense, your JSP/servlets should be using the encodeURL or encodeRedirectURL methods to ensure that any user that has cookies

RE: Still have no answer for this!

2002-01-21 Thread Mike Curwen
Is there a reason you must use the jdbc-odbc bridge? Or could you use the classes11 or classes12 jar files to provide jdbc connections? This is the preferred method of connecting for many reasons, and it would be worth trying to see if you can get rid of this error. -Original Message- F

RE: tomcat 4.01 and win2000 server-cant get it to work

2002-01-16 Thread Mike Curwen
If you're on Windows 2000 Server, then you probably have IIS running on port 80? So localhost:8080 should be used to specify Tomcat. 401 is "Unauthorized", which indicates your request lacked authorization to access the resource. -Original Message- From: Martin Sujkowski [mailto:[EMAI

RE: IOException, that reset by peer thing.

2002-01-15 Thread Mike Curwen
site or page. Hope it helps. Mike Curwen wrote: >Hi, > >This has probably been covered before, but thought I'd risk a 'stfw' and ask >anyways. ;) > >What is the cause (and solution?) for this fairly frequent and non-fatal >error? > >IOException in R(/my

RE: IOException, that reset by peer thing.

2002-01-15 Thread Mike Curwen
ly, when they are using a browser, requesting a page from your Tomcat, but then decide to move on to another site or page. Hope it helps. Mike Curwen wrote: >Hi, > >This has probably been covered before, but thought I'd risk a 'stfw' and ask >anyways. ;) > >What is

IOException, that reset by peer thing.

2002-01-15 Thread Mike Curwen
Hi, This has probably been covered before, but thought I'd risk a 'stfw' and ask anyways. ;) What is the cause (and solution?) for this fairly frequent and non-fatal error? IOException in R(/myfolder+/jsp/somepage.jsp+null) Connection reset by peer: socket write error. p.s. - I have done a goo

RE: Hey Check this out... Tomcat forums!

2002-01-15 Thread Mike Curwen
Thought I'd add 2 cents. Javaranch is a pretty popular java programming/certification site, and I co-moderate a few forums there. Servlets: http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forum&f=7 JSP: http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forum&f=50 Apache / Tomcat:

RE: Jasper !!!

2002-01-11 Thread Mike Curwen
Are they jar'd ? - try putting them in the classes/lib directory. Are they zip'd ? - change the extension to jar Do you have a code sample? -Original Message- From: Chris Duprat [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 7:26 AM To: [EMAIL PROTECTED] Subject: Jasper !!!

RE: Change the default error message

2002-01-11 Thread Mike Curwen
Oh the dangers of modifying code without first testing it! I modified that from a plain 'Exception', because I thought I was being clever. Catch either the exact specific Exceptions that may be thrown (eg: NullPointer, IO) or just catch 'Exception', as I was originally doing. -Original Messa

RE: Change the default error message

2002-01-11 Thread Mike Curwen
You could use a JSP error page from a servlet. Catch any ServletException errors, and do a redirect to your JSP error page. Here's short snips from one of my servlets: try { //sending email from the servlet... } catch (ServletException ex) { log("Failure to send email", ex); sendErrorRed

RE: getSession take too mush time.

2002-01-11 Thread Mike Curwen
Hi, This is a closely related question, so thought I'd use this thread. I'm the co-moderator of a Java Servlets forum, and a question came up recently that I have never heard of before. It seems a user has found that request.getSession() takes a very long time to return if he is using Netscape b

RE: Securing access to pages

2002-01-10 Thread Mike Curwen
How about placing a flag in the session, which every JSP (or hopefully your controller servlet) checks for first. If it finds the flag (say "loggedIn") then it continues processing. If it doesn't, it redirects to the login servlet. The login servlet would then place the "loggedIn" flag into the

RE: URGENT! PLEASE..

2002-01-10 Thread Mike Curwen
If you put the classes into the /lib directory, they should be picked up when Tomcat is started. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jean-Luc BEAUDET Sent: Thursday, January 10, 2002 10:25 AM To: Tomcat Users List Subject: Re: URGENT! PLEASE.

<    1   2   3   4   5