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
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
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
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
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
=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
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
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
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
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
=
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
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
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
13 matches
Mail list logo