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. td *class=Error* align=right valign=top width=50% label for=strFirstNameFirst Name/label: /td td valign=bottom

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. ul html:messages id=error libean:write name=error//li /html:messages /ul How can I get the form field names that correspond to each of the errors reported or atleast a list of all form fields

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

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 - action

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. logic:notPresent

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
=strFirstName/ /html:form 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? Are you using a debugger at all? -Richard Karthik Manimaran wrote: Hi, I am using the validator

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
Angelo 2006/1/29, Karthik Manimaran [EMAIL PROTECTED]: This is the form definition form-bean name=privacyPrefForm type= com.bofa.ecomm.snf.web.privacy.PrivacyPreferencesBean /form-bean The JSP file is as follows: %@ page language=java % %@ taglib uri=/WEB-INF/struts-html.tld

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

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. action path=/Control type=com.bofa.ecomm.snf.web.global.Control name=privacyPrefForm scope=request validate=true

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 html:form tag, its ok but you have to give fully qualified class name

Re: Form pre-fill issue

2006-01-28 Thread Karthik Manimaran
= com.bofa.ecomm.snf.web.privacy.PrivacyPreferencesBean input type=text name=firstname value=jsp:getProperty name= privacyPrefForm property=strFirstName// html:text property=strFirstName/ html:submitsubmit/html:submit /html:form /html:html On 1/28/06, Karthik Manimaran [EMAIL PROTECTED] wrote: Hi, Even after giving the fully qualified class

Re: Form pre-fill issue

2006-01-28 Thread Karthik Manimaran
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 [mailto: [EMAIL PROTECTED] To: user@struts.apache.org Date: Sat, 28 Jan 2006 02:01:39 -0500

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 % html:form