Re: session duplication

2004-05-19 Thread Zerbe John W
It sounds to me like the app is using servlet instance variables instead of method variables for holding the userid. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] Behalf Of Ritesh Gupta Sent: Wednesday, May 19, 2004

Re: unsubscribe

2004-04-01 Thread Zerbe John W
eat for a lifetime. There is nothing wrong with teaching someone to fish for himself! -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] Behalf Of Zerbe John W Sent: Thursday, April 01, 2004 1:03 PM To: [EMAIL PROTECTED

Re: unsubscribe

2004-04-01 Thread Zerbe John W
help mailing list, if newbies are too afraid of being flamed to post their question. But maybe all you big-brains know better than me... Again, good luck to all. -Original Message- From: A mailing list about Java Server Pages specification and reference on behalf of Z

Re: unsubscribe

2004-04-01 Thread Zerbe John W
Hmmm... Kind of like making an obnoxious statement, turning to leave, and walking into the closet instead of the front door! -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] Behalf Of Mark Galbreath Sent: Thursday, Apr

Re: cron job/sceheduler in jsp/java

2003-07-17 Thread Zerbe John W
Out of curiosity, what sort of things are you trying to accomplish via this "scheduled" servlet invocation? Scheduling work to be done on a periodic basis is the sort of thing that EJB 2.0 Message Driven Beans are good for. -Original Message- From: Lai, Kenny [mailto:[EMAIL PROTECTED] Se

Re: Problems with

2003-07-07 Thread Zerbe John W
two things: 1) I sometimes use "telnet" as a "poor man's" protocol debugger. If you look at the http spec, you can determine exactly what you browser would have sent for a "GET" request. You can build a test case that doesn't require any cookies (ie no session requirements). You can use telnet f

Re: Problems with

2003-07-03 Thread Zerbe John W
What servlet engine are you using? I suspect that the default file serving servlet in your container is changing the page's mime type to be appropriate for the file extention of the requested file. I don't believe that it is supposed to do that on an "include" request though. -Original Me

Re: JSP:Setproperty and empty strings

2003-06-13 Thread Zerbe John W
If you are also the bean provider, you could add an additional bean field called something like "all" and in its "setAll() call, initialize all of the particular fields you wish to. This may be more efficient than reinstanciating your bean John Zerbe - Mellon Financial Corp. Information Tech

Re: JSP:Setproperty and empty strings

2003-06-13 Thread Zerbe John W
you can't use property="*" with value=, The property="*" expression tells the jsp compiler to generate code to use reflection to match up request params with bean fields. property - The name of the Bean property whose value you want to set If you set propertyName to * then the tag will iterate ov

Re: JSP:Setproperty and empty strings

2003-06-13 Thread Zerbe John W
sy ... An alternative is to use JSTL's : Hans > -Original Message- > From: Zerbe John W [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 12, 2003 4:48 PM > To: [EMAIL PROTECTED] > Subject: Re: JSP:Setproperty and empty strings > > > If I am reading the sp

Re: JSP:Setproperty and empty strings

2003-06-12 Thread Zerbe John W
yeah, the spec is unclear on this point. I have tried this and it doesnt have the desired behaviour: This will not set inputfieldA to an empty string. Does anyone know why they implemented it in this way? -Original Message- From: Zerbe John W [mailto:[EMAIL PROTECTED] Sent: Thursday, June

Re: JSP:Setproperty and empty strings

2003-06-12 Thread Zerbe John W
If I am reading the spec correctly, you can initialize all of your properties individually prior to setting them from the request params. I believe that the line you quoted from the spec only applies when setting properties from request params. eg: or, assuming an input form the "inputfieldA"

[no subject]

2003-06-11 Thread Zerbe John W
This is a question for your database vender. -Original Message- From: Velmurugan (Java Team) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 10:40 AM To: [EMAIL PROTECTED] Subject: Hi I would like to know the details about how the application servers handle's connection pooling

Re: Jps(or Servlet) with MQ-SERIES in windows NT.

2003-02-13 Thread Zerbe John W
Ulises, Yes, MA88 supplies all you would need to use either the JMS api or the MQI api from a servlet. The biggest thread safety issue that I have found is the use of static MQEnvironment variables for setting up connection info prior to instanciating a "queue manager" object in the MQI api. Th

Re: On the MQ code snippet

2003-02-13 Thread Zerbe John W
Jaideep, You are correct. You can do the instantiation in a synchronized method to avoid the issues with the static MQEnvironment variables. However, I prefer to avoid synchronized methods when at all possible. Connecting to a queue manager is a relatively expensive operation. If you use the c

Re: reg tutorial for Websphere and DB2

2003-02-07 Thread Zerbe John W
WebSphere library: http://www-3.ibm.com/software/webservers/appserv/library/ A number of websphere related "Red Books": http://www-1.ibm.com/support/search.wss?rs=180&tc=SSEQTP&dc=DA700 DB2 info: http://www-3.ibm.com/software/data/ I would start with the "Red Books". -Original Message

Re: Other users session invalidation

2003-01-23 Thread Zerbe John W
There are no apis in the servlet spec that allow a piece of code to see all the sessions. I do know that if you have servlet reloading enabled, there is a good chance that you can accomplish what you want by a unix "touch" command on one of the servlet class files. At least in WebSphere, this c

Re: Jps(or Servlet) with MQ-SERIES in windows NT.

2003-01-17 Thread Zerbe John W
Please note, you shouldn't use the MQEnvironment.xxx variables to set your connection info in an application server. They are Static and hence shared by all threads. There is another constructor for the MQQueueManager that takes a Hashtable as a parm that contains your connection info: MQQueueM

Re: Logging with Linux

2002-12-13 Thread Zerbe John W
I don't use Tomcat, but I do use WebSphere. The application servers write to a configured stdout.txt file in the linux file system. To watch the output in real time, you can use a linux command like "tail -f stdout.txt" from an xterm window. -Original Message- From: Tom Kochanowicz [mai

Re: getRealPath

2002-11-12 Thread Zerbe John W
there is nothing stopping you from manipulating the "real path" returned from your application.getRealPath("/"). -Original Message- From: Shahata, Ash [mailto:Ashraf_Shahata@;STERCOMM.COM] Sent: Tuesday, November 12, 2002 1:48 PM To: [EMAIL PROTECTED] Subject: getRealPath Hi all - I wan

Re: how to lock the access to an array till a method is finished ...

2002-11-07 Thread Zerbe John W
Please follow Adrian's advice and read up on java synchronization. You can synchronize on the instance of the array. -Original Message- From: Ionel Condor [mailto:cionel@;RO-PLANET.RO] Sent: Thursday, November 07, 2002 8:16 AM To: [EMAIL PROTECTED] Subject: Re: how to lock the access to an

Re: errorPage

2002-11-05 Thread Zerbe John W
This is interesting... What operating system are you using? If some flavor of unix, are you using a symolic directory link in your classpath? I have seen issues where a symoblic link is used, the symbolic link is resolved to the "real" directory in the app server's classpath. The symbolic link is

Re: session nonpersistence

2002-11-01 Thread Zerbe John W
Some containers allow you to set specific attributes for the session cookies. You could set a cookie domain of ".addr.com" so that your session cookie will flow back to any of the host names within a domain. -Original Message- From: Adrian Janssen [mailto:ajanssen@;TRUWORTHS.CO.ZA] Sent:

Re: convert \n to in jsp print statement

2002-10-28 Thread Zerbe John W
Is there any reason you don't want to just do this?: <% for (i =0; i < log_message.size(); i ++) { %> Message: <%out.println(log_message.get(i).toString());%> <% } %> ie. just leave the \n in the text but tell the browser that it is preformatted. -Original Message- From: hugo [mailto:

Re: Question on documentation...

2002-10-24 Thread Zerbe John W
I just thought I would add my 2 cents worth. An additional security hole that bothers me with the invoker, is the fact that most apps use various "library" jar files in their apps. I seriously doubt that most people scan those jar files looking for any class that implements "servlet". You don't

Re: about getRemoteHost()

2002-10-17 Thread Zerbe John W
If your app is facing the internet, its best to assume that the ip address that you recieve is that of some AOL proxy server. It this address is really only good for reporting on where your requests are probably coming from. In our environment, we have a reverse proxy in front of our web servers

Re: share objects

2002-09-24 Thread Zerbe John W
Read it again. Those beans can be simple classes (ex: String) populated via request parms in "request" scope, or your own complex classes. Again, read about "scope". You can use these tags to create a "bean" instance and share it between servlets and/or jsps. http://java.sun.com/products/jsp/downl

Re: websphere and JSP

2002-09-20 Thread Zerbe John W
Upgrade your WebSphere to version 4.0 with fixpack 4. -Original Message- From: Vipin Bhatia [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 7:32 AM To: [EMAIL PROTECTED] Subject: websphere and JSP I am deploying JSP's on websphere 3.5, but my JSP's use the i.e. nested param

Re: Thread dumps

2002-09-19 Thread Zerbe John W
if you are on a unix machine, a "kill -3 processid" should cause the jvm to generate a javacore dump. (thread dump) At least this works for me on AIX with IBM's jdk running WebSphere. I get a dump with a stack trace of all java threads as well as a java monitor (lock) dump which can be used to fin

Re: a puzzled JSP question!!!

2002-08-28 Thread Zerbe John W
I don't know if it will help with this case, but I see that you have ONLOAD=show5() on your body tag and include the javascript files seperately later in the . I have had better luck with loading pages that immediately try to run javascript by loading all javascript in the tag. -Original Me

Re: Basic question: repeating code in JSP pages?

2002-08-16 Thread Zerbe John W
There are actually several ways that the same user can access the same session object concurrently. Examples that I can think of are: 1) the easiest was is when web application uses a frameset in the browser. multiple frames can invoke servlets or jsps concurrently to fill in their respective "fra

Re: Get Client's IP Address/Machine name

2002-08-15 Thread Zerbe John W
proxy addresses. -Original Message- From: Emmanuel Eze [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:49 AM To: [EMAIL PROTECTED] Subject: Re: Get Client's IP Address/Machine name I want to store in the database. -Original Message----- From: Zerbe John W [mailto:[EMAIL PROTEC

Re: Get Client's IP Address/Machine name

2002-08-15 Thread Zerbe John W
ere's nothing I can do. -Original Message----- From: Zerbe John W [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 3:55 PM To: [EMAIL PROTECTED] Subject: Re: Get Client's IP Address/Machine name Be carefull using this. If your client came through a proxy server, you'll ge

Re: Get Client's IP Address/Machine name

2002-08-15 Thread Zerbe John W
Be carefull using this. If your client came through a proxy server, you'll get the address of the proxy server instead of the actual client. -Original Message- From: ravisankar.n [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 9:56 AM To: [EMAIL PROTECTED] Subject: Re: Get Clie

FW: hashtable instead of bean

2000-04-11 Thread Zerbe John W
The following works in WebSphere 3.02 (jsp1.0, servlet2.1) My logon servlet puts a Hashtable in the httpsession containing elements about the user. Hello <=Userinfo.get("UserName")> How is the weather in <=Userinfo.get("Address")>? I also use simple Strings the same way and put them in the "req

FW: WebSphere and the callPage method

2000-03-23 Thread Zerbe John W
Hi Marc, I am using VAJ version 3 Enterprise Edition. To get the WebSphere test environment loaded into the workspace, you hit F2 for the Quick Start menu, click on Features, and Add Feature. Select "IBM WebSphere Test Environment 3.0". The following syntax will work but be deprecated. ((com.sun.