Form pre-fill issue

2006-01-27 Thread Karthik Manimaran
Hi, Form data is not getting pre-filled on submission. Can anyone tell me the reason? JSP - included from def.jsp - <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> submit PrivacyPreferences

Re: Form pre-fill issue

2006-01-28 Thread Karthik Manimaran
Hi, Even after giving the fully qualified class name it doesn't work. Thanks and regards, Karthik. On 1/28/06, Debendra Barik <[EMAIL PROTECTED]> wrote: > > Hello, > its appearing that you are using the type attribute inside the > tag, its ok but you have to give fully qualified class name of

Re: Form pre-fill issue

2006-01-28 Thread Karthik Manimaran
struts-bean.tld" prefix="bean" %> "/> submit On 1/28/06, Karthik Manimaran <[EMAIL PROTECTED]> wrote: > > Hi, > > Even after giving the fully qualified class name it doesn't work. > > Thanks and regards, > Karthik. > > >

Re: Form pre-fill issue

2006-01-28 Thread Karthik Manimaran
up based upon > its action attribute. If you take these out, you eliminate a fair bit of > troubleshooting at the least. And you haven't cut out any functionality > > > > > --- On Sat 01/28, Karthik Manimaran < [EMAIL PROTECTED] > wrote: > From: Karthik Manimaran

Validation Issue

2006-01-29 Thread Karthik Manimaran
Hi, I am using the validator framework for form validation. Validation doesnt seem to happen and no error messages are displayed. However the form is getting pre-populated with the user input. Can anyone tell me what I am missing here? struts-config.xml - ...

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
I tried subclassing both ValidatorForm and ValidatorActionForm and it still doesnt work. Checked the properties too. I even tried using a custom error message using resource="false" This is always evaluating to true even if I submit the form with errors. Errors Not Present On 1/29/06, Paul Ben

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
ri="/WEB-INF/struts-logic.tld" prefix="logic" %> Errors Not Present On 1/29/06, Richard Yee <[EMAIL PROTECTED]> wrote: > > What is the form definition for privacyPrefForm? Where is the tag for > your strFirstName field in your form? > > Ar

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
nd not the name of your Action : > > > > > > > > > Declare in your AplicationResources > (see example into validator-rules.xml) > > errors.required={0} is required. > privacyPrefForm.strFirstName=First name > > Regards > Angelo > > >

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
I get the following error: [1/29/06 17:35:13:701 EST] 4e5645a ValidatorPlug I org.apache.struts.validator.ValidatorPlugIn Loading validation rules file from '/WEB-INF/validator-rules.xml' [1/29/06 17:35:13:721 EST] 4e5645a ServletInstan E SRVE0100E: Did not realize init() exception thrown by serv

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
Yes. Tried the same and it works now. I got a different problem now though. The following action results in validation being called recursively resulting in server crash. If I remove the input attribute a server exception is thrown. How can I make a page submit to itself on validat

Re: Validation Issue

2006-01-30 Thread Karthik Manimaran
I used the latest version of validator jar (commons-validator-1.2.0.jar). I had to update struts.jar also and the TLDs from an earlier version to the latest version for validator to work fine. Now I am getting the following exception. [1/30/06 16:51:29:689 EST] 759dc768 InsertTag E org.apache.st

Validator-rules.xml

2006-01-30 Thread Karthik Manimaran
Hi, Where can I get validator-rules.xml corresponding to struts 1.0.2corresponding to *http*://*jakarta*.*apache*.*org*/*commons*/*dtds*/*validator_1_0_1*.*dtd * ** *Thanks and regards,* *Karthik.*

Re: Validator-rules.xml

2006-01-30 Thread Karthik Manimaran
Got it from Struts 1.1 distribution. On 1/30/06, Karthik Manimaran <[EMAIL PROTECTED]> wrote: > > Hi, > > Where can I get validator-rules.xml corresponding to struts > 1.0.2corresponding to > *http <http://jakarta.apache.org/commons/dtds/validator_1_0_1.dtd>*

Struts Layout query

2006-02-01 Thread Karthik Manimaran
Hi, I want to display the labels of the form fields with error in red. I want to avoid the conditional statement to insert the attribute-value pair of 'class="Error"' in the td tag. First Name: Can this scenario be simplified using Struts Layout? Is yes, any pointers/examples? Exte

Validation - how to get form field names with validation errors

2006-02-01 Thread Karthik Manimaran
Hi, I am using the following to display all the validation errors in a form. How can I get the form field names that correspond to each of the errors reported or atleast a list of all form fields that have an error. Thanks and regards, Karthik.