Real basic question - scope

2005-09-01 Thread David Shapiro
I have a jsp page that uses a class I wrote to connect to a database (mysql)
and pull up some information based on what the user fills in one of three
text boxes.  I understand why if I fill in a text box once and press submit
I get my result, but I do not understand why if I press enter again without
filling in the textbox if brings up the same response again.  In that, if I
type in a user's last name and press enter, I get the user's info.  If I
press enter again, I get the same user's info even though I did not fill in
the text box.  My mysql code opens a connection, fills an rs, displays the
results, and closes the connection.  If I do not have a bean I am calling,
how do I set scope for the page to be for example just request?  Is the
reason I see info even though I did not supply anything in the text box
because of the browser caching stuff, or is it tomcat?  I am just a bit
confused about the whole thing and would appreciate a brief description of
what I am seeing and a good response to it.

Note: jstl is installed.  

Sincerely,

David



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Real basic question - scope

2005-09-01 Thread David Shapiro
It is just a jsp page  Pretty much html accept for the class for processing
the mysql query.  It uses basic jsp to display the rs data in a table with a
little bit of css to snaze it up. 

-Original Message-
From: Anto Paul [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 01, 2005 7:50 AM
To: Tomcat Users List
Subject: Re: Real basic question - scope

On 9/1/05, David Shapiro [EMAIL PROTECTED] wrote:
 
 I have a jsp page that uses a class I wrote to connect to a database
 (mysql)
 and pull up some information based on what the user fills in one of 
 three text boxes. I understand why if I fill in a text box once and 
 press submit I get my result, but I do not understand why if I press 
 enter again without filling in the textbox if brings up the same 
 response again. In that, if I type in a user's last name and press 
 enter, I get the user's info. If I press enter again, I get the same 
 user's info even though I did not fill in the text box. My mysql code 
 opens a connection, fills an rs, displays the results, and closes the 
 connection. If I do not have a bean I am calling, how do I set scope 
 for the page to be for example just request? Is the reason I see info 
 even though I did not supply anything in the text box because of the 
 browser caching stuff, or is it tomcat? I am just a bit confused about 
 the whole thing and would appreciate a brief description of what I am 
 seeing and a good response to it.
 
 Note: jstl is installed.
 

What is processing the request ? A servlet, Struts Action, JSP ?. Does it
have any instance variable that stores the input data ?.

--
rgds
Anto Paul



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Trouble Starting Tomcat

2005-07-29 Thread David Shapiro
Perhaps an issue with your random device or there is not enough entrophy in
your random device. 

-Original Message-
From: Mark McKay [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 29, 2005 9:02 PM
To: tomcat-user@jakarta.apache.org
Subject: Trouble Starting Tomcat

I'm trying to run Tomcat on a dumbed-down distor of Debian on a virtual
linux I'm using to host my website.  I've downloaded and unzipped Tomcat
5.5.9 and set JAVA_HOME and CATALINA_HOME.  I start Tomcat by typing
$CATALINA_HOME/bin/startup.sh.

Strangely, Tomcat only succesfully starts about 20% of the time.  The log
files don't shed much light on the problem.  I've tried rebooting my server
and waiting several minutes before requesting my first page from Tomcat, but
I can't determine any factor that makes Tomcat more likely to successfully
start.

Here's the logs/catalina.out generated from a failed attempt to start
Tomcat:

Jul 29, 2005 8:42:13 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080 Jul 29, 2005 8:42:13 PM
org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 14456 ms Jul 29, 2005 8:42:14 PM
org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 29, 2005 8:42:15 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9 Jul 29, 2005 8:42:15 PM
org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 29, 2005 8:43:11 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080


And this one succeeded:

Jul 29, 2005 8:46:54 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080 Jul 29, 2005 8:46:55 PM
org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3894 ms Jul 29, 2005 8:46:55 PM
org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 29, 2005 8:46:55 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9 Jul 29, 2005 8:46:55 PM
org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 29, 2005 8:47:32 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080 Jul 29, 2005 8:47:33 PM
org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009 Jul 29, 2005 8:47:40 PM
org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/6879  config=null Jul 29, 2005 8:47:41 PM
org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource Jul 29, 2005
8:47:43 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 48573 ms. 


Any ideas what's wrong?

Mark McKay

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ( URGENT Please ) tomcat connection refused

2005-07-27 Thread David Shapiro
Did you generate the RSA key with the changeit password?  Did you uncomment
the section with 8443 port configuration?  Did you wait long enough for the
server to start (tail -f the catalina.out log and wait for it to see 8443
has started).  What is in the catalina.out log?  Any errors?  On IBM AIX I
had to change the protocol to IbmX503 and use SSL instead of TLS.  Try
changing TLS to SSL (see the section for configuring 8443 to do this).  

David 

-Original Message-
From: Abdullah Abdullah [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 27, 2005 1:10 PM
To: tomcat-user@jakarta.apache.org; tomcat-dev@jakarta.apache.org
Subject: ( URGENT Please ) tomcat connection refused

Dear all

I am trying to create a secure connection between tomcat server and a
browser. I have done exactly the same as the instructions on

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html

but when I tried to connect on the port   https://localhost:8443  , an alert

popped up saying (( The connection was refused when attepting to contact
localhost:8443 .

So, I would be very grateful if anyone can let me know what is the problem
??

Thanks in advance

Abdullah

_
It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! 
http://messenger.msn.co.uk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs ant build problem

2005-07-23 Thread David Shapiro
Hello,

I am trying to run cvs, but it is failing.  

checkout.depends:
  [cvs] cvs [checkout aborted]: connect to
cvs.apache.org(209.237.227.194):2401 failed: Connection timed out

If you try and ping this site it is not reachable.  Is this not available
anymore?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]