Help with a Class

2005-08-04 Thread Charles P. Killmer
Does Java provide any ability to do something like the following. C# and C++ both allow this functionlality and I am hoping that Java does as well %! public class myInteger { private Integer _test1; public Integer test1 { set { _test1 = value; } get

Session ID's

2005-08-02 Thread Charles P. Killmer
Is there a configuration setting such that every local URL will be encoded with a session id if one is present? I have developed a site that uses cookies to hold the session id and am getting complaints from users that do not have cookies enabled. Thanks Charles

RE: Session ID's

2005-08-02 Thread Charles P. Killmer
Use HttpServletResponse.encodeURL(String url) -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 10:04 AM To: Tomcat Users List Subject: Session ID's Is there a configuration setting such that every local URL will be encoded

RE: Session ID's

2005-08-02 Thread Charles P. Killmer
files? They would get the session id and therefore unnecessarily not be cached by the users browser. I'm curious: do you know how PHP handles these issues? Christoph Charles P. Killmer wrote: I was hoping there was a configuration setting that would tack the session id onto every hyperlink

RE: Session ID's

2005-08-02 Thread Charles P. Killmer
-Ursprüngliche Nachricht- Von: Charles P. Killmer [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 2. August 2005 17:03 An: Tomcat Users List Betreff: RE: Session ID's I was hoping there was a configuration setting that would tack the session id onto every hyperlink at runtime, much

Output buffering

2005-08-02 Thread Charles P. Killmer
How do I change the setting for the size of the output buffer. I modified the web.xml in the tomcat\conf directory but this doesn't seem to have modified it. Also is there a way to check the current runtime settings? Charles

RE: Probably an easy answer

2005-06-13 Thread Charles P. Killmer
... if it's local though, no, it's a purely compile-time check. Do you really mean declared or do you perhaps mean initialized? Frank Charles P. Killmer wrote: Is there a way to, at runtime, check if a variable is declared? I have some code that I want to behave differently depending

RE: Probably an easy answer

2005-06-13 Thread Charles P. Killmer
Architect Omnytex Technologies http://www.omnytex.com On Mon, June 13, 2005 8:58 am, Charles P. Killmer said: Thanks. And I do mean declared. I have a jsp that is included by a few other jsp's. Some of them declare a variable and some do not. Right now I have two files that are almost

Probably an easy answer

2005-06-10 Thread Charles P. Killmer
Is there a way to, at runtime, check if a variable is declared? I have some code that I want to behave differently depending on whether or not a variable has been declared. I tried using a try catch block but it gets caught at compile time. Thanks Charles

Compiling JSP files

2005-05-24 Thread Charles P. Killmer
I am having a problem where one of my jsp files won't compile. Tomcat successfully creates the java file but it never creates the class file and hence never responds to the request for the page. I am looking for what needs to be in the command line in order to manually compile the java file

RE: Compiling JSP files

2005-05-24 Thread Charles P. Killmer
-preisvergleich.de http://www.faq-kontaktlinsen.de Am Dienstag, den 24.05.2005, 08:46 -0500 schrieb Charles P. Killmer: I am having a problem where one of my jsp files won't compile. Tomcat successfully creates the java file but it never creates the class file and hence never responds

RE: Compiling JSP files

2005-05-24 Thread Charles P. Killmer
to finally get it working, but it's working fine for me now. So if you want to give it a try, I can give you some further assistance, if needed. Cheers Bernhard -Ursprüngliche Nachricht- Von: Charles P. Killmer [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 24. Mai 2005 15:47 An: Tomcat

DBCP

2005-05-23 Thread Charles P. Killmer
Supposing I forgot to close a database connection. And the script was requested numerous times. And now my scripts can not get any database connections. Is there a way to close those connections without restarting Tomcat? Charles

RE: No such list! s (AM I THE ONLY ONE GETTING THIS SPAM)?

2005-05-17 Thread Charles P. Killmer
No I have been getting these too for the last few days. Quite annoying. -Original Message- From: Guy Katz [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 17, 2005 12:47 AM To: Tomcat Users List Subject: RE: No such list! s (AM I THE ONLY ONE GETTING THIS SPAM)? am i the only one getting

Jumping in and out of JSP

2005-03-15 Thread Charles P. Killmer
Is it possible to do something like the following? I have as much code as I want in Java classes. This is just to make modifying the UI easier. %! public String test() { % test2 %! } % %=test()% Charles Killmer

RE: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Charles P. Killmer
To: Tomcat Users List Subject: {OT] Re: Jumping in and out of JSP On Tue, 15 Mar 2005 10:27:21 -0600, Charles P. Killmer [EMAIL PROTECTED] wrote: Is it possible to do something like the following? I have as much code as I want in Java classes. This is just to make modifying the UI easier

RE: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Charles P. Killmer
%! } closeing brace here % Anything in %!% are class level declarations which live outside the jspService() method. See the generated java to see what i mean. -Tim Charles P. Killmer wrote: Maybe I wasn't clear. The code that I pasted below is throwing all sorts of errors. Assuming

RE: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Charles P. Killmer
do that. The jsp spec forbids it. -Tim Charles P. Killmer wrote: My goal in this is to have a function that returns a string. But instead of doing something like this: %! Public String test() { return table border=\0\ cellspacing=\0\ cellpadding=\0\; } % I want to be able

RE: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Charles P. Killmer
: Jumping in and out of JSP This sound very much similar to error handling. However,If you could explain exactly about what you are trying to do then probably we could suggest an alternative to get it done. Vinod -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent

RE: Date parsing

2005-03-08 Thread Charles P. Killmer
, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 11:17 AM To: Tomcat Users List Subject: Date parsing I have an object with a TimeStamp member. This will be populated by users

Date parsing

2005-03-07 Thread Charles P. Killmer
I have an object with a TimeStamp member. This will be populated by users of a website and entered into a database. My problem is, I would like to allow the users to enter the date in a number of formats. Does anyone have any recommendations aside from multiple try catch blocks each trying to

JDBC Named Pipes to SQL Server

2005-02-15 Thread Charles P. Killmer
What is the recommended way to connect to a Microsoft SQL Server through JDBC? TCP/IP, Named Pipes...? And any recommendations an which driver to use? Thanks Charles Killmer

Server.xml help

2005-02-10 Thread Charles P. Killmer
Does anyone see anything wrong with this server.xml? I am still trying to pin down my database connectivity issues and would like some validation that I have Tomcat setup appropriately. Server port=8005 shutdown=SHUTDOWN debug=0 Listener

RE: JTDS help

2005-02-09 Thread Charles P. Killmer
List Subject: RE: JTDS help From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Subject: RE: JTDS help Well there aren't any file access errors but it looks like for every request it is racing through all of the directories and compiling whatever it finds. Is there a setting that tells

RE: JTDS help

2005-02-09 Thread Charles P. Killmer
. And both are slow. This leads me to think it is something specific within Tomcat but still only when connecting to a database. ! Anybody have any other thoughts? At my wits end... Charles -Original Message- From: Charles P. Killmer Sent: Tuesday, February 08, 2005 3:30 PM

RE: JTDS help

2005-02-09 Thread Charles P. Killmer
-Original Message- From: Charles P. Killmer Sent: Wednesday, February 09, 2005 12:25 PM To: Tomcat Users List Subject: RE: JTDS help I have noticed that if I let FileMon just sit, every ten seconds, java.exe runs through a bunch of directories. Is this normal? It doesn't seem to contribute

RE: JTDS help

2005-02-08 Thread Charles P. Killmer
instantaneous 0.5s. I would look again at the issues I first noted, perhaps there is something you have missed. Cheers, Allistair. -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: 07 February 2005 22:42 To: Tomcat Users List Subject: RE: JTDS help When I strip

RE: JTDS help

2005-02-08 Thread Charles P. Killmer
web app. jTDS installation is simply adding the JAR to tomcat/common/lib Are you running Tomcat on the same server as the database? Config file won't have anything to do with this. I am certain it is environmental. Ali. -Original Message- From: Charles P. Killmer [mailto:[EMAIL

RE: JTDS help

2005-02-08 Thread Charles P. Killmer
therefore to believe it could be the language of choice, because I cannot replicate your speed issue. See what your monitoring brings back. What kind of setup are you running? Allistair. -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: 08 February 2005 15:33

JTDS help

2005-02-07 Thread Charles P. Killmer
I am trying to get Tomcat talking to my database quickly. This code takes about 2-3 seconds to load. Anyone got any idea's why? Or if you run this in your environment, how well does it run? %@ page language=java import=java.sql.*% % Connection conn =

RE: JTDS help

2005-02-07 Thread Charles P. Killmer
and other environmental factors. Allistair. -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: 07 February 2005 17:34 To: Tomcat Users List Subject: JTDS help I am trying to get Tomcat talking to my database quickly. This code takes about 2-3 seconds to load

RE: JTDS help

2005-02-07 Thread Charles P. Killmer
a connection from scratch as opposed to picking up a pooled connection 3) Running the query. Of these, the first one is the most expensive operation followed by two. If you want fast, try doing this with a pooled connection and from compiled servlet code. --David Charles P. Killmer wrote

RE: Speed issues with SQL Server 2000 and JTDS

2005-01-07 Thread Charles P. Killmer
. Are you experiencing network latency? Are you going through a Firewall? I am using JTDS and I have not experienced any problems with it. Randall -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 11:57 AM To: Tomcat Users List

RE: Speed issues with SQL Server 2000 and JTDS

2005-01-05 Thread Charles P. Killmer
find and we'll make suggestions from there. Doug - Original Message - From: Charles P. Killmer [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, January 04, 2005 11:23 AM Subject: RE: Speed issues with SQL Server 2000 and JTDS Could this speed issue

RE: Speed issues with SQL Server 2000 and JTDS

2005-01-05 Thread Charles P. Killmer
: Speed issues with SQL Server 2000 and JTDS Charles P. Killmer wrote: Thanks. I had already done this but maybe not communicated them as concisely. Thanks Charles -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 6:23 PM

RE: Speed issues with SQL Server 2000 and JTDS

2005-01-04 Thread Charles P. Killmer
, January 03, 2005 9:05 AM To: tomcat-user@jakarta.apache.org; Charles P. Killmer Subject: RE: Speed issues with SQL Server 2000 and JTDS You could try using something like jProfiler to see where the bottleneck is. I don't see anything unusual in your code example, although it looks like the only

RE: Speed issues with SQL Server 2000 and JTDS

2005-01-03 Thread Charles P. Killmer
P. Killmer [mailto:[EMAIL PROTECTED] Sent: Sunday, January 02, 2005 2:13 PM To: Tomcat Users List Subject: Speed issues with SQL Server 2000 and JTDS I bought the Core Servlets and Java Server Pages and read it over the weekend. Happy New Year to me. I did get out to a few parties though. ;) I

Speed issues with SQL Server 2000 and JTDS

2005-01-02 Thread Charles P. Killmer
I bought the Core Servlets and Java Server Pages and read it over the weekend. Happy New Year to me. I did get out to a few parties though. ;) I am having trouble getting JTDS to return results quickly. Has anyone got any example code for how to properly query a SQL Server 2000 database?

Looking for a few good books

2004-12-30 Thread Charles P. Killmer
I am in need of some good books for developing solid JSP code. There are a ton of books out there but I am hoping that this group has a few favorites. What I need is a book that describes how to organize a JSP Tomcat site. Describes how to compile code into servlets. As well as include those

Scripts

2004-12-22 Thread Charles P. Killmer
I am trying to write a function in a script file and having a lot of trouble. % function String test() { return test; } out.print(test()); % Is there a way to do this without using a class? Also along these lines would something like this be possible. % function void test() { %

RE: Scripts

2004-12-22 Thread Charles P. Killmer
in the tag.. On Wed, 2004-12-22 at 14:05, Charles P. Killmer wrote: I am trying to write a function in a script file and having a lot of trouble. % function String test() { return test; } out.print(test()); % Is there a way to do this without using a class? Also along these lines

JDBC

2004-11-23 Thread Charles P. Killmer
Looking for concensus on how people, with much more experience than I have, use to connect to SQL Server 7. I have been planning on using Datadirect's JDBC Connect until I saw the price tag for a server. So with that does any body have a preferred JDBC connector to SQL Server 7? Any help is

RE: JDBC

2004-11-23 Thread Charles P. Killmer
Message - From: Charles P. Killmer [EMAIL PROTECTED] Date: Tuesday, November 23, 2004 4:13 pm Subject: JDBC Looking for concensus on how people, with much more experience than I have, use to connect to SQL Server 7. I have been planning on using Datadirect's JDBC Connect until I saw the price

RE: Load balancing

2004-05-27 Thread Charles P. Killmer
... Engine defaultHost=Site2.com name=Site2 jvmRoute=site2 -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 3:33 PM To: Tomcat Users List Subject: Load balancing I have two sites set up and currently they are acting like they are load

RE: Load balancing

2004-05-27 Thread Charles P. Killmer
with many host names. Charles -Original Message- From: Charles P. Killmer Sent: Thursday, May 27, 2004 3:14 PM To: Tomcat Users List Subject: RE: Load balancing Well I have it set up like this, but it isnt working quite right. Workers2.properties [shm:] info=Shared memory file. Required

Workers2.properties

2004-05-27 Thread Charles P. Killmer
Can the uri tag be set up to watch for the IP address that a host resolves too? Or is there some way to do this? [uri:172.16.10.38:80/*] info=JSP examples, map requests for all JSP pages to Tomcat. worker=172.16.10.38:8009 Then if my hosts file looks like 172.16.10.38site1.com

Host Directive

2004-05-26 Thread Charles P. Killmer
I have a few websites that I wish to run JSP pages through Tomcat. Now there are too many host names to create the multiple Aliases required to get this working properly. Is there a way to configure the host to listen on a single IP address instead of the host name? IE site1.com - 172.1.1.2

RE: Host Directive

2004-05-26 Thread Charles P. Killmer
). -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 9:10 AM To: [EMAIL PROTECTED] Subject: Host Directive I have a few websites that I wish to run JSP pages through Tomcat. Now there are too many host names to create

RE: Host Directive

2004-05-26 Thread Charles P. Killmer
additional Connector elements, not Service. I'm unsure of how this is impacted with connectors to IIS. -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 10:10 AM To: Tomcat Users List Subject: RE: Host Directive Lets see if I got

RE: Host Directive

2004-05-26 Thread Charles P. Killmer
Context path= docBase=c:/sites/Site2 debug=0/ /Engine /Service /Server -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 11:59 AM To: Tomcat Users List Subject: RE: Host Directive Additional

RE: Host Directive - I am half way there

2004-05-26 Thread Charles P. Killmer
:172.16.10.38:8010] info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol tomcatId=172.16.10.38:8010 -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 12:54 PM To: Tomcat Users List Subject: RE: Host Directive Now I am

Load balancing

2004-05-26 Thread Charles P. Killmer
I have two sites set up and currently they are acting like they are load balanced. That's the problem. They shouldn't be. This is my workers2.properties file. Does anyone have an idea of why it would be alternating between the two sites? [shm:] info=Shared memory file. Required for

RE: Load balancing

2004-05-26 Thread Charles P. Killmer
different contexts for the two sites. -- Kartheek Hirode -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 2:33 PM To: Tomcat Users List Subject: Load balancing I have two sites set up and currently they are acting like they are load

RE: Load balancing

2004-05-26 Thread Charles P. Killmer
=Site2/ Charles -Original Message- From: Charles P. Killmer Sent: Wednesday, May 26, 2004 3:58 PM To: Tomcat Users List Subject: RE: Load balancing Well heres my problem then. I have two sites. Site1.com and Site2.com. I need to use jsp. And I want to be able to have the default file