Validation and Reset

2003-03-21 Thread Weber, Jeremy
Hello all! It seems when I click my reset button my form is validated. Is there anyway to keep this from happening? I am using html:image and the reset methodology here http://www.husted.com/struts/tips/001.html Jeremy Weber Eventra, Inc. Sr. SCM

Default Value Question

2003-03-20 Thread Weber, Jeremy
From the below code, I know that the gid() method gets called because the System.out line executes, however the ownerGroup string never gets set. Am I doing something wrong? import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.*; import java.io.File; import

Checked/Radio Button

2003-02-04 Thread Weber, Jeremy
How does one specify that a radio button should be checked? The If I have html:radio property=xxx value=true styleClass=input checked/ or html:radio property=xxx value=true styleClass=input checked=true/ Struts throws an exception because it isnt listed in

RE: [VALIDATOR] requiredif ??

2003-01-31 Thread Weber, Jeremy
I had a ton of problems with required if. I finally just ripped it out and made my own based on it. In the code I am using, (I am unsure its b2/b3 or a tip build at this point) I dont see a NOTEQUAL comparison Heres what I am using See inline comments for explanation. public final

Help with Form Logic...

2003-01-31 Thread Weber, Jeremy
Hi, Hopefully someone can give me idea about how to code the following logic for an Html Form. Based on a prior users responses i want to create a form that includes anywhere from 4 to 40 fields. I have the users response in a int called installBase. For each installBase ( possible values

Where to send bugs/fixes (RequiredIf Equals Condition)

2003-01-27 Thread Weber, Jeremy
Where should I send bugs or fixes with common validator. Specifically the EQUAL condition in RequiredIf doesnt seem to do anything. if (dependTest.equals(FIELD_TEST_EQUAL)) { this_required = dependTestValue.equalsIgnoreCase(dependVal); }

Default Form Values

2003-01-24 Thread Weber, Jeremy
Where should the default values for forms go? In the jsp, form bean or some other config file? Thanks Jeremy Weber [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Out of my Mind/Struts Bug???

2003-01-24 Thread Weber, Jeremy
It seems to me that whenever I use requiredif and an additional custom validation to validate the same field, the requiredif always passes and therefore the second validation is called. Below I have cut some snippets from my code. What I want to do is, require properties B C if property A is

RE: RequiredIf Example Request

2003-01-24 Thread Weber, Jeremy
that should specify that the field is required. id: required,mycheck Then it becomes possible to have an optional field. -Dennis On Thu, 2003-01-23 at 14:33, Weber, Jeremy wrote: Yes, but I would think that it would only be run after the first validation (the requiredif) runs. Is that not a correct

RequiredIf Example Request

2003-01-23 Thread Weber, Jeremy
I requested this before and have not recieved a response...:( Any takers out there? Currently I am having a heck of time figuring out how to make this work... I have checked out all the online examples, but I am unclear as to what this stuff means... If you have this in your

RE: RequiredIf Example Request

2003-01-23 Thread Weber, Jeremy
-valueNOTNULL/var-value /var The fact that the example was using indicies screwed me up for a while too until I took a look at the source code for FieldChecks. GM -Original Message- From: Weber, Jeremy [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 12:57 PM To: 'Struts Users

RE: RequiredIf Example Request

2003-01-23 Thread Weber, Jeremy
define it yourself? -Original Message- From: Weber, Jeremy [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 2:00 PM To: 'Struts Users Mailing List' Subject: RE: RequiredIf Example Request Thank you , thank you, thank you! I misspoke when I said checkboxs, its a radio button, like

RequiredIf Example

2003-01-15 Thread Weber, Jeremy
Can someone post the necessary code to show a working requiredif validation. I can seem to get this going per my prior post (attached). Hello all, I have a field that I wish to validate based on the results of another field. The other field 'useSecure' returns a string of true or false from 2

Design Help

2003-01-14 Thread Weber, Jeremy
Hello all, I have a unique requirement and was wondering if anyone had any ideas on how to implement it. I am using struts to install our server based product. Our product has several components which can be installed multiple times. If you choose to install a component you have to provide some

More Validation Problems

2002-12-19 Thread Weber, Jeremy
I thought I had this licked in my first form. I was able to get the default validations to work along with a couple of custom ones:) However, not on a subsequent form. The required validation and two custom ones work on the first form, but not on the second. Its like the never even are

Simple Custom Validation Example Request

2002-12-18 Thread Weber, Jeremy
Could someone post the very simplest example of some custom validation code. I am still having problems with my code as explained in previous post below. Maybe if I start of smaller I could make some sense of whats going on. Thanks, Jeremy Im trying to start of simple with a custom

RE: Simple Custom Validation Example Request

2002-12-18 Thread Weber, Jeremy
() method ); boolean blIsValidEmail = true; .. } -Original Message- From: Weber, Jeremy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 6:07 PM To: 'Struts Users Mailing List' (E-mail) Subject: Simple Custom Validation Example Request Could someone post the very

RE: Simple Custom Validation Example Request

2002-12-18 Thread Weber, Jeremy
I dont know what the deal is but its working now. Thanks for all your suggestions. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Simple Custom Validation Example Request

2002-12-18 Thread Weber, Jeremy
in struts-config.xml? James -Original Message- From: Weber, Jeremy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 11:18 AM To: 'Struts Users Mailing List' Subject: RE: Simple Custom Validation Example Request Still no go. I had some problems with my package paths etc

Validation Method Not Called

2002-12-17 Thread Weber, Jeremy
Im trying to start of simple with a custom validaton method. Currently all it contains is a system.out to verify that the method never gets called. Can some one verify that my configuration is correct? I would appreciate it. validator-rules.xml validator name=identical