Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 4073 invoked from network); 2 Jan 2003 20:11:34 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 2 Jan 2003 20:11:34 -0000 Received: (qmail 22746 invoked by uid 97); 2 Jan 2003 20:12:34 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 22730 invoked by uid 97); 2 Jan 2003 20:12:33 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 22718 invoked by uid 98); 2 Jan 2003 20:12:33 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <5D83C44941AFD4118B6F0002B302984F438602@EXCHANGE_SERVER> From: Denise Mangano To: 'Tomcat Users List' Subject: RE: Code works in editor, but not through Tomcat - Please help! Date: Thu, 2 Jan 2003 15:14:41 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I will look into all that you suggested. The weird thing is though, that it only happens with those three parameters. Everything else goes through fine. I checked the form code for differences between other parameters and the three offending parameters, but everything is the same.... Thanks. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -----Original Message----- From: Hamilton, Andrew [mailto:Andrew.Hamilton@afccc.af.mil] Sent: Thursday, January 02, 2003 3:01 PM To: Tomcat Users List Subject: RE: Code works in editor, but not through Tomcat - Please help! Denise, I had the same problem once. All my calls to getProperties were coming back null. It turned out to be a pathing issue in my form. I'm not sure why it even ran the JSP with the incorrect path inside ACTION parameter of the form but it did run and it returned null values for all the properties. It nearly drove me to drink(at work) and I screamed several times and said many bad words until I figured it out. It had to do with my JkMount statement, my default classpath(tomcat), and my path inside the ACTION parameter. You might try calling it different ways to see if that helps. Drew -----Original Message----- From: Denise Mangano [mailto:DeniseM@complusdata.com] Sent: Thursday, January 02, 2003 2:34 PM To: 'Tomcat Users List' Subject: RE: Code works in editor, but not through Tomcat - Please help! I tried to "echo print" the value of the PostalCode after it has been picked up by the bean, by calling . And I get an error message stating : org.apache.jasper.JasperException: Cannot find any information on property 'PostalCode' in a bean of type 'com.complusdata.beans.FormBean' When I complete the Form, I type in 12345 in the input box and yet it seems as if the value of PostalCode is "lost" in the bean. Any thoughts? Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -----Original Message----- From: Denise Mangano [mailto:DeniseM@complusdata.com] Sent: Thursday, January 02, 2003 1:46 PM To: 'Tomcat Users List' Subject: Code works in editor, but not through Tomcat - Please help! Importance: High Hi all. This one's kind of urgent because its holding up the rest of my project... I'm not sure I understand why this is happening. I have a bean that I use for form validation. When I test the code locally using an editor and hard coding variable values, the code runs perfect and all information is validated (i.e. check zip code length =5, check zip code is a number, check credit card number is a number, check all fields are filled in etc"). However, when I try to validate my form through Tomcat I keep getting errors on the same fields over and over. Any idea why this would be happening? I have posted my code below just in case, but since it worked when I ran it in the editor, I do not think the problem is my code. The only thing I can think of is that somehow, something screwy is happening when my bean properties are being set.... Thanks in advance! Denise Errors (only get these over Tomcat): I enter 12345 as zip code, and I get "Please enter a valid zip code." error message (The second error only comes up when I try a non numeric zip so that part works ok). Input type is text and bean variable is string. The Code: if (PostalCode.equals("") || PostalCode.length() != 5 ) { errors.put("PostalCode","Please enter a valid zip code."); PostalCode=""; allOk=false; } else { try { int x = Integer.parseInt(PostalCode); } catch (NumberFormatException e) { errors.put("PostalCode","Please enter a valid 5 digit zip code."); PostalCode=""; allOk=false; } } I enter 12/03 for Expiration date, and keep getting invalid message. Input type is text, and bean variable in bean is a String. The Code: if (Expires.equals("")) { errors.put("Expires","Please enter expiration date as MM/YY."); Expires=""; allOk=false; } I try myemail@email.com for both email and retype email. Input type is text and bean variable is string. Here is the code: if (Email.equals("") || (Email.indexOf("@") <= 0)) { errors.put("Email","Please enter a valid email address."); Email=""; allOk=false; } else if (!Email.equals(retypeemail)) { errors.put("Email","The emails entered do not match."); Email = ""; retypeemail=""; allOk=false; } -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: