Re: Calling method in servlet from JSP page - attach

2003-10-27 Thread Justin Ruthenbeck
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential. See: http://www.nextengine.com/confidentiality.php

RE: Form Double Submit Detection

2003-10-27 Thread Justin Ruthenbeck
At 03:34 PM 10/27/2003, you wrote: On Tue, 2003-10-28 at 12:26, Bill Lunnon wrote: Don't know if this is complimentary to your workflow, try a javascript confirm (ie a client side pop-up, asking the user to click Ok to continue). This will catch any double clicks on the client side.

RE: Form Double Submit Detection

2003-10-27 Thread Justin Ruthenbeck
At 04:20 PM 10/27/2003, you wrote: On Tue, 2003-10-28 at 12:51, Justin Ruthenbeck wrote: Server side, instead of putting a token in the session when the page is *served*, put a token in the session while the submission is being processed (use it like a semaphore). The token has a finite

RE: Form Double Submit Detection

2003-10-27 Thread Justin Ruthenbeck
At 06:02 PM 10/27/2003, you wrote: On Tue, 2003-10-28 at 14:18, Justin Ruthenbeck wrote: At 04:20 PM 10/27/2003, you wrote: On Tue, 2003-10-28 at 12:51, Justin Ruthenbeck wrote: Server side, instead of putting a token in the session when the page is *served*, put a token

Re: Form Double Submit Detection

2003-10-27 Thread Justin Ruthenbeck
Agreed. One word of caution... At 06:46 PM 10/27/2003, you wrote: I've had to do this before when credit card processing was being done. A double-click can result in the credit card being charged twice, so you've really got to avoid it. We actually synchronized on the session for the duration

Re: Removing extra white spaces in source

2003-10-24 Thread Justin Ruthenbeck
://www.ait-web.com * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck

RE: Content length

2003-10-24 Thread Justin Ruthenbeck
header to X and X+2 bytes? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr

RE: Tomcat mysteriously stops responding...

2003-10-22 Thread Justin Ruthenbeck
!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin

Re: Writing temporary file downloading it?

2003-10-17 Thread Justin Ruthenbeck
robust and flexible, but is more involved to implement. Take your pick based on whatever other requirements you have. If you have more questions, don't hesitate to ask. justin Thanks Jason Justin Ruthenbeck wrote: Yes, it is possible. Give us an idea of your deployment setup (are you

RE: Writing temporary file downloading it?

2003-10-17 Thread Justin Ruthenbeck
, but is more involved to implement. Take your pick based on whatever other requirements you have. If you have more questions, don't hesitate to ask. justin Thanks Jason Justin Ruthenbeck wrote: Yes, it is possible. Give us an idea of your deployment setup (are you deploying as a .war file

RE: Java/JSP/Servlet Programmer

2003-10-17 Thread Justin Ruthenbeck
At 02:16 PM 10/17/2003, you wrote: Does anyone else think that what I'm asking for is so difficult? Just a thought -- is the salary reasonable for market conditions down there? If the price isn't right, qualified people may not be inquiring... Justin

Re: Writing temporary file downloading it?

2003-10-16 Thread Justin Ruthenbeck
-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php

Re: Non-HTTP requests and HttpSession instantiation

2003-10-15 Thread Justin Ruthenbeck
vendor should have a similar answer. If they deviate from the above answer, they lie. -Tim Justin Ruthenbeck wrote: A general Tomcat question, irrespective of Tomcat version or platform. Here goes... For Http requests, JSESSIONID values are passed to the server from either a cookie stored

RE: Can I read file resources from a .WAR file at runtime ?

2003-10-14 Thread Justin Ruthenbeck
Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php - To unsubscribe, e

Non-HTTP requests and HttpSession instantiation

2003-10-14 Thread Justin Ruthenbeck
) If possible, I don't want to maintain a separate collection of HttpSession objects local to a given Object. Thanks for the time, justin Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com

Re: Why Tomcat doesn't reload my filters

2003-10-13 Thread Justin Ruthenbeck
regards Marcin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT

Re: Why Tomcat doesn't reload my filters

2003-10-13 Thread Justin Ruthenbeck
of Tomcat are you using? Apache Tomcat/4.1.27 Best regards Marcin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software

Re: Can I read file resources from a .WAR file at runtime ?

2003-10-13 Thread Justin Ruthenbeck
-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php

4.1.27: Manager app 'reload' causing ClassNotFoundException

2003-10-10 Thread Justin Ruthenbeck
process results in all resources being available once again. Hoping another pair of eyes can see what's wrong... Thanks, justin Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com

Re: 4.1.27: Manager app 'reload' causing ClassNotFoundException

2003-10-10 Thread Justin Ruthenbeck
My apologies ... this is covered here: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22096 Date: Fri, 10 Oct 2003 12:18:03 -0700 To: Tomcat Users List [EMAIL PROTECTED] From: Justin Ruthenbeck [EMAIL PROTECTED] Subject: 4.1.27: Manager app 'reload' causing ClassNotFoundException Hello All

Re: Tomcat/Struts app hanging (Waiting for xx instance(s) to be deallocated)

2003-10-07 Thread Justin Ruthenbeck
Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php - To unsubscribe, e-mail

Re: adding a servlet to my webapp

2003-09-03 Thread Justin Ruthenbeck
: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php

Re: adding a servlet to my webapp

2003-09-03 Thread Justin Ruthenbeck
-class /servlet Try that out... justin Justin Ruthenbeck wrote: Jason, John was pointing out that you're missing the servlet-mapping which basically says, For a URL that looks like X, send the request to servlet Y. You've also got a malformed servlet-class value. Something like this should

Re: Running Tomcat off a CD

2003-08-29 Thread Justin Ruthenbeck
commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php

Re: Pre-compiling JSP pages

2003-08-21 Thread Justin Ruthenbeck
want to distribute the source code in JSP s. Please let me know if you have any idea? STFA for precompile jsp: http://www.mail-archive.com/[EMAIL PROTECTED]/msg68849.html RTFM: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html Justin Ruthenbeck

Re: classpath issues and system properties

2003-08-21 Thread Justin Ruthenbeck
on this. justin Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php

Re: [File Upload] How to Increase the Speed of File transfer ??

2003-08-19 Thread Justin Ruthenbeck
] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com

Fwd: Re: Front Controller Servlet

2003-08-14 Thread Justin Ruthenbeck
Date: Tue, 05 Aug 2003 14:42:05 -0700 To: Tomcat Users List [EMAIL PROTECTED] From: Justin Ruthenbeck [EMAIL PROTECTED] Subject: Re: Front Controller Servlet At 05:42 AM 8/5/2003, you wrote: I am trying to build FrontController servlet for a web site on Tomcat 4 , after long time of changes

Re: Front Controller Servlet

2003-08-07 Thread Justin Ruthenbeck
of forwarding to the page? justin Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php

RE: URI Servlet Path Problems

2003-08-07 Thread Justin Ruthenbeck
(for which I'm responsible) -- but that's a different Thread. Do whatever works best for you. This produces something like (in a jsp): img src=%MyConfig.getURLPrepend()%/imageWebApp/myImageServlet/ justin Justin Ruthenbeck Software Engineer, NextEngine Inc

RE: Checking for invalidated session

2003-08-01 Thread Justin Ruthenbeck
is already invalid } justin Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php

Re: Checking for invalidated session

2003-07-31 Thread Justin Ruthenbeck
invalidated If you don't want to just catch and ignore the JasperException, then use something like this: try { session.getAttributeNames(); } catch (java.lang.IllegalStateException isse) { // Session is already invalid } justin Justin Ruthenbeck Software

Re: JSP Precompilation / JSPC / JSP servlet mapping

2003-07-18 Thread Justin Ruthenbeck
them in the work directory? Zach. Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php

Re: JSP Precompilation / JSPC / JSP servlet mapping

2003-07-18 Thread Justin Ruthenbeck
for running jspc. justin Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php

Re: Environment variables, are they really needed??

2003-07-17 Thread Justin Ruthenbeck
/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com

Re: tracking downloads

2003-07-10 Thread Justin Ruthenbeck
PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com

Re: tracking downloads

2003-07-10 Thread Justin Ruthenbeck
that I check every single request for a matching pattern ( a download) and it seems to me that would produce a significant amount of overhead, slowing the appserver quite a bit? Thanks, -Mark Justin Ruthenbeck wrote: || Why not write a filter that puts an entry in a database table after || the file has

RE: How to synchronize based on session? (Prevent multiple submissions of forms)

2003-07-01 Thread Justin Ruthenbeck
commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php

RE: How to synchronize based on session? (Prevent multiple submissions of forms)

2003-07-01 Thread Justin Ruthenbeck
2003, Justin Ruthenbeck wrote: If your code worked like this: 1: if (session.getAttribute(LOCKED_ATTR) == LOCKED) 2: return user a waiting page 3: else 4: { 5: session.setAttribute(LOCKED_ATTR, LOCKED) 6: work with submitted data 7: } then you're right -- it's

RE: How to synchronize based on session? (Prevent multiple submissions of forms)

2003-07-01 Thread Justin Ruthenbeck
-Original Message- From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 12:48 AM To: Tomcat Users List Subject: RE: How to synchronize based on session? (Prevent multiple submissions of forms) // Member variable protected Object m_synchObj = new Object(); Yes

Re: How to protect static HTML's

2003-06-25 Thread Justin Ruthenbeck
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http

RE: How to protect static HTML's

2003-06-25 Thread Justin Ruthenbeck
is dispatcher[INCLUDE,FORWARD,REQUEST]/dispatcher justin Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php

RE: How to protect static HTML's

2003-06-25 Thread Justin Ruthenbeck
dispatcher element. justin --- Justin Ruthenbeck [EMAIL PROTECTED] wrote: At 10:57 AM 6/25/2003, you wrote: -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

Re: Tomcat not loading JSP, anyone know solution?

2003-06-16 Thread Justin Ruthenbeck
] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-10 Thread Justin Ruthenbeck
Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php - To unsubscribe, e-mail

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Justin Ruthenbeck
a program or the like) and then having access directly to the images You would then have to update all image referrences on the somepage servelt/jsp however to something like img src=/servlet/imagehandler?gif=somerefernce. Justin Ruthenbeck Software Engineer

RE: changing tomcat configuration on the fly

2003-06-05 Thread Justin Ruthenbeck
] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http

Re: Forms and JSPs

2003-05-31 Thread Justin Ruthenbeck
] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php

Re: HttpProcessor not freeing back to pool

2003-05-29 Thread Justin Ruthenbeck
/tomcat_keystore keystorePass=password/ /Connector Thanks, Bill Tomlinson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck

Re: Registering Servlets

2003-03-27 Thread Justin Ruthenbeck
this: c:\home\whatever\webapp\passwords.props which, when given to the FileOutputStream, will result in a search for a file named: c:/ome/hatever/ebapp/asswords.props that (probably) ;) doesn't exist. justin Justin Ruthenbeck Software Engineer, NextEngine Inc

RE: Tomcat and IIS

2003-03-27 Thread Justin Ruthenbeck
That's possible BUT performance will suffer. Tomcat isn't as powerful as Apache. If you are running a small website, intranet and such, Tomcat would probably work fine but it's not Commercially fit as a Web Server. Apache on the other hand is. Later, J Justin

RE: Tomcat and IIS

2003-03-27 Thread Justin Ruthenbeck
in writing this is that we should all be careful what we suggest before understanding what exactly the person needs. And, quite frankly, those asking should find these threads *easily* with a little effort. ;) justin Justin Ruthenbeck Software Engineer

Re: Servlet init() versus doPost() Classloading???

2003-03-24 Thread Justin Ruthenbeck
that was the way to solve this dilemma of my own making. Thanks for any assistance on this. Micael Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php

Re: Servlet init() versus doPost() Classloading???

2003-03-24 Thread Justin Ruthenbeck
is a singleton i think... hitting the same URL twice shouldn't be a problem if mechanism to track the daemon state (running, notStarted ) is in place. The problem as you said might be in the configuration. Cheers, Rahul - Original Message - From: Justin Ruthenbeck [EMAIL PROTECTED] To: Tomcat

Re: Connection drops with tomcat-based game server (very long version)

2003-03-21 Thread Justin Ruthenbeck
applications!! Kind Regards, Wouter Bijlsma, [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php

Re: Simple servlet won't display

2003-03-19 Thread Justin Ruthenbeck
Justin Ruthenbeck Software Engineer, NextEngine Inc. [EMAIL PROTECTED] Confidential - See http://www.nextengine.com/confidentiality.php - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: How to listen for shutdown

2003-03-06 Thread Justin Ruthenbeck
any documentation that tells me how my Tomcat application can get notified when Tomcat gets a shutdown. I have cleanup I need to do. I would appreciate any pointers to documentation or the correct class/method. Thanks, -- Frank Justin Ruthenbeck

Re: Y does JspC Appends dot to package name

2003-02-25 Thread Justin Ruthenbeck
- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more Justin Ruthenbeck Software Engineer, NextEngine Inc. [EMAIL PROTECTED] Confidential - See http://www.nextengine.com/confidentiality.php

Re: Best Logging practices

2003-02-19 Thread Justin Ruthenbeck
structures, or permissions. My apologies as this is getting off topic and is better suited for a spec discussion forum, but I see this problem repeatedly and had to put my 2 cents in... justin Justin Ruthenbeck Software Engineer, NextEngine Inc. [EMAIL PROTECTED

Re: tomcat crash puzzle

2003-02-13 Thread Justin Ruthenbeck
] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. [EMAIL PROTECTED] Confidential - See http://www.nextengine.com/confidentiality.php

Re: tomcat crash puzzle

2003-02-12 Thread Justin Ruthenbeck
set the memory min and max parameters for tomcat in the startup script (JAVA_OPTS = -server -Xmx256m -Xms128m). Any suggestions on causation and/or data collection would be greatly appreciated. Thanks, Dan McGowan [EMAIL PROTECTED] Justin Ruthenbeck Software

Re: Invalid JSP Error When Trying to View Source

2003-02-03 Thread Justin Ruthenbeck
tionFilterChain.java:247) Justin Ruthenbeck Software Engineer, NextEngine Inc. [EMAIL PROTECTED] Confidential - See http://www.nextengine.com/confidentiality.php

Re: error when startup tomcat.

2003-01-31 Thread Justin Ruthenbeck
*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Er rorHandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper. java:173) Paul Hsu Justin Ruthenbeck Software Engineer, NextEngine

Re: Problem Compiling JSP's Tomcat 4.1.19

2003-01-21 Thread Justin Ruthenbeck
: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. [EMAIL PROTECTED] Confidential - See http://www.nextengine.com/confidentiality.php

Re: forcing a jsp page to reload/refresh when backend data changes

2003-01-14 Thread Justin Ruthenbeck
] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. [EMAIL PROTECTED] Confidential - See http://www.nextengine.com/confidentiality.php -- To unsubscribe, e-mail

Re: forcing a jsp page to reload/refresh when backend data changes

2003-01-14 Thread Justin Ruthenbeck
, Justin Ruthenbeck wrote: Hi Jeff -- Once your jsp outputs its data, its job is done and there is no opportunity for it to update anything. The only way data can be updated is if the client requests it, which means you'll have to force the client to refresh. If it's a browser, set

Re: Content-Length header set automatically?

2003-01-10 Thread Justin Ruthenbeck
: 47 Date: Fri, 10 Jan 2003 19:09:46 GMT Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector) Last-Modified: Mon, 26 Aug 2002 17:40:28 GMT ETag: 47-1030383628000 Thanks, justin Justin Ruthenbeck Software Engineer, NextEngine Inc. [EMAIL PROTECTED] Confidential

Re: instantiating a bean in a Servlet, not a JSP

2003-01-10 Thread Justin Ruthenbeck
. This is especially true for the jsp scope notion, but, as you're finding is the same way for bean usage. justin Justin Ruthenbeck Software Engineer, NextEngine Inc. [EMAIL PROTECTED] Confidential - See http://www.nextengine.com/confidentiality.php

Content-Length header set automatically?

2003-01-09 Thread Justin Ruthenbeck
the setting of the header, but I'm seeing XML HTTP responses without the header set. Any thoughts on the topic would be greatly appreciated... Thanks, justin Justin Ruthenbeck Software Engineer, NextEngine Inc. [EMAIL PROTECTED] Confidential - See http

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-08 Thread Justin Ruthenbeck
be greatly appreciated. - Jeff Justin Ruthenbeck Software Engineer, NextEngine Inc. [EMAIL PROTECTED] Confidential - See http://www.nextengine.com/confidentiality.php -- To unsubscribe, e-mail: mailto:[EMAIL

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-08 Thread Justin Ruthenbeck
people on this list have with the integration of the two, I would venture to say that opinion is probably in the majority. Perhaps someone else has some more complete thoughts for you... justin - Original Message - From: Justin Ruthenbeck [EMAIL PROTECTED] To: Tomcat Users List [EMAIL

RE: Simultaneous request from same IP

2002-12-16 Thread Justin Ruthenbeck
At 01:42 PM 12/16/2002, you wrote: The fact that the add() method is syncronized has no impact on this - only one request is updating at a time. However, later when you ask for the value that was updated, you only get the second value because there is only one trafficCop object to get updated

Re: Difficult sections in server.xml and web.xml...

2002-12-13 Thread Justin Ruthenbeck
At 11:00 AM 12/13/2002, you wrote: * For the servlet node: * Is the servlet-name attribute merely an ID? * What is the display-name attribute for? The servlet-name attribute is a UNIQUE user-defined name that you use to identify that particular servlet. This value must match

Non-ending servlet request threads - timeout? (StandardWrapper)

2002-12-10 Thread Justin Ruthenbeck
All -- Tomcat 4.0.3 (integrated jBoss) Apache 2.0.40 jk JDK 1.3.0 We're using jBoss/Tomcat to provide a web front-end to a java application which can generally be considered stand-alone. Normal requests are processed by this application and return quickly, but we occasionally run into

Re: File structure in webapps for tomcat.

2002-12-09 Thread Justin Ruthenbeck
Simon -- If the files you're reading and writing are truly temporary files, there's an attribute available from the ServletContext called javax.servlet.context.tempdir which provides a java.io.File object of a directory that is unique to the context your code is running in. So, for example,

Re: Tomcat and Apache web server

2002-12-06 Thread Justin Ruthenbeck
Looks like you haven't set up Apache to forward requests that match www.myhost.com/Project/DoStuff to jk2. There are a number of different overall designs to do this depending on your app, other apps running, and how you've organized your resources. I use jk (not jk2), so I don't know the

Re: Can't compile some JSPs

2002-12-05 Thread Justin Ruthenbeck
jsp:include page=/Include/Login/logincontrols.jsp flush=true / jsp:param name=testing value='yes'/ /jsp:include You closed the tag on the first line (extra /). Amazing what a second pair of eyes can see (or, in this case, an extra 2k pairs!) :) And single quotes around value='yes'

Re: OFF-TOPIC: creating classes

2002-11-27 Thread Justin Ruthenbeck
As I'm sure you know, doing this would be extremely thorny, but there's no reason you couldn't. I can think of a couple cases (dynamically generated JSPs, JDOs for dynamically created tables) where it could even border on usefulness. While you can't modify a class that has already been

Re: looping through ResultSet...later in page

2002-11-26 Thread Justin Ruthenbeck
Assuming you really can't do it in a single query, and assuming you don't want/can't use a stored procedure, it wouldn't be considered rudimentary to bring all the data from the first ResultSet locally and walk through it later ... this is what a disconnected RowSet does. Remember also that

RE: proper use of servlet contexts

2002-11-21 Thread Justin Ruthenbeck
(In response to Noah Davis) At 05:55 AM 11/21/2002, Yoav Shapira wrote: Basically, we develop all of our applications under contexts. Each one a separate context. When they go live, they go to the default context so users don't have to request everything with /context/blah. This means that if

Re: Session Consistency Problems

2002-11-19 Thread Justin Ruthenbeck
Are you sure that the URLs (server names) used to access both the JSP and Servlet are the same? For example, if you access the jsp with http://www.site.com/my.jsp and access the servlet from the browser with http://localhost/my.jsp, you'll see exactly what you're describing below. Can you

Re: Session Consistency Problems

2002-11-19 Thread Justin Ruthenbeck
/servlet-name servlet-classC2/servlet-class /servlet servlet-mapping servlet-nameC2/servlet-name url-pattern/controller/url-pattern /servlet-mapping I do not use URL rewriting. Thanks again, -FB On Tuesday, November 19, 2002, at 02:33 PM, Justin Ruthenbeck wrote

RE: Loading properties file for an external class

2002-11-19 Thread Justin Ruthenbeck
I've never tried (or seen anyone) using File.separatorChar in this case -- not that that definitively means anything :) -- but try using / instead. It'll work platform independently because the reference is internal to the JVM and doesn't go into the native file system. Other than that, this

Re: Startup classes in Tomcat.

2002-11-19 Thread Justin Ruthenbeck
Write a servlet that calls each of the startup classes you need to run and set it up in your web.xml. Maximum portability, minimum work. justin At 06:23 PM 11/19/2002, you wrote: Hi All, I am using tomcat 4.1. I am a newbie to tomcat. We are off-loading most of our stuff from weblogic to

Re: proper use of servlet contexts

2002-11-18 Thread Justin Ruthenbeck
Noah -- I don't really see how doing form action=/context/doThis method=post makes your app dependent on your context ... it makes your app dependent on the _name_ of your context, but not anything else about your context. If you move your app around to other appservers, you'll always have

Re: How to unsubscribe from mailing list?

2002-11-14 Thread Justin Ruthenbeck
Look at any of the emails sent from the list at the following headers: Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:tomcat-user-unsubscribe;jakarta.apache.org List-Subscribe: mailto:tomcat-user-subscribe;jakarta.apache.org List-Help:

Re: [tomcat java.io.File] Reading a file from /WEB-INF/classes

2002-11-07 Thread Justin Ruthenbeck
... and check out this thread, which goes into extreme detail and a couple different ways to do it... http://www.mail-archive.com/tomcat-user;jakarta.apache.org/msg68849.html justin At 04:43 PM 11/7/2002, you wrote: Hiya Garrett, You're not guaranteed to have a filesystem to read files from.

Re: [tomcat java.io.File] Reading a file from /WEB-INF/classes

2002-11-07 Thread Justin Ruthenbeck
? A. confirmation.txt B. ../../../../confirmation.txt C. other (write in __ ). PLEASE SEE MY PREVIOUS POST FOR A MORE CONCISE EXPLANATION! --- Justin Ruthenbeck [EMAIL PROTECTED] wrote: ... and check out this thread, which goes into extreme detail and a couple different ways to do

RE: Tomcat and CLASSPATH

2002-11-04 Thread Justin Ruthenbeck
For simple applications in development, you're right -- there is no technical roadblack that prevents you from comingling your source and compiled classes, modifying Tomcat's classpath so that the default classloader finds them, and running your app. However, no one (or very few) do this

RE: Tomcat and CLASSPATH

2002-11-04 Thread Justin Ruthenbeck
Ahh... so (if I read this correctly), you've got your application always installed on a system in a certain directory structure that is independent of Tomcat. Then there's some element that is a web application that some clients get/activate. You want to keep all your stuff together and

RE: Force One page to not use SSL

2002-10-29 Thread Justin Ruthenbeck
Jeff -- This may be a bit simple minded since I don't understand your entire situation there, but it doesn't sound like you're interested in protecting these JARs in the first place (hence you don't need HTTPS for them). Why, then, do you even need to make sure the user is authenticated (ie

Re: Avoid jsp reload

2002-10-15 Thread Justin Ruthenbeck
This is a perfect situation for jsp pre-compiling before releasing your app. Check the archives as there have been numerous threads discussing how to do this... justin At 12:26 PM 10/15/2002, you wrote: Hi all, i wanted to know if it is possible to tell tomcat NOT to reload the jsp pages in

Re: Possible to disable session persistence?

2002-10-10 Thread Justin Ruthenbeck
He's refering to the fact that Tomcat persists sessions before redeploying a context (either when requested explicitly or if you've got reloadable=true set). If anyone knows how to do this, I'd appreciate the tip ... we have non-serializable objects (they are not serializable by design)

Re: Jasper and java source package problem

2002-10-09 Thread Justin Ruthenbeck
it also compile the others as well? Or would you compile the root first then the other directories again separately? Thanks, Kam On 10/9/02 11:02, Justin Ruthenbeck [EMAIL PROTECTED] wrote: I've seen this as well and worked around it by compiling each directory (mail, messageboard, etc

Re: How to specify the location of a properties file.

2002-10-09 Thread Justin Ruthenbeck
from that I could have changed? Thanks in advance. Shaun - Original Message - From: Justin Ruthenbeck [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, October 07, 2002 10:20 PM Subject: Re: How to specify the location of a properties file. Niaz

Re: Jasper and java source package problem

2002-10-08 Thread Justin Ruthenbeck
I've seen this as well and worked around it by compiling each directory (mail, messageboard, etc) with separate calls to jspc (and changing the target package name). Would love it if I missed a built-in way to handle this, but I couldn't find it either. justin At 06:34 PM 10/8/2002, you

Re: How to specify the location of a properties file.

2002-10-07 Thread Justin Ruthenbeck
Shaun -- Consider dynamically loading the properties file from your classpath using a class loader. This way, you can put the files anywhere you please and just include that directory in your classpath (or put them someplace already in your classpath). If you need more specifics, let me

Re: How to specify the location of a properties file.

2002-10-07 Thread Justin Ruthenbeck
definitely be helpful. I thank you in advance. niaz. - Original Message - From: Justin Ruthenbeck [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, October 07, 2002 4:06 PM Subject: Re: How to specify the location of a properties file. Shaun -- Consider

RE: How can i send respond incrementally in a Servlet

2002-09-10 Thread Justin Ruthenbeck
Before you dig into this too much, I'd suggest writing a simple servlet that returns just simple text (set the content type to text/plain and just output Strings of text). Set the buffer size to something normal (say 4k). Try flushing your PrintWriter/OutputStream after each String and see

Re: jsp includes in tomcat 4..........

2002-09-06 Thread Justin Ruthenbeck
Tomcat won't recompile the jsp unless it sees that the jsp has changed... and following includes would be quite a bit of overhead to check every time. If you know precisely which jsp you want to compile, you can touch the file to change the date on the file... this will cause a recompile.

<    1   2   3   >