Reset struts form values: Struts 1.3

2007-04-24 Thread Chaudhary, Harsh
Hi, I am using Struts 1.3. We have several struts forms which are pre-populated from a database. My questions is, if I want to provide the user with a way to reset the form to the initial values which were populated from the database. Is there any API or method calls for that. Or maybe some kind

RE: Reset struts form values: Struts 1.3

2007-04-24 Thread Chaudhary, Harsh
Users Mailing List Subject: Re: Reset struts form values: Struts 1.3 Chaudhary, Harsh [EMAIL PROTECTED] wrote: Hi, I am using Struts 1.3. We have several struts forms which are pre-populated from a database. My questions is, if I want to provide the user with a way to reset the form

Struts 1.3: Reset form values to previous state

2007-04-20 Thread Chaudhary, Harsh
Hi, I am using Struts 1.3. We have several strust forms which are pre-populated from a database. My questions is, if I want to provide the user with a way to reset the form to the initial values which were populated from the database. Is there any API or method calls for that. Automagic...FTW.

Validation framework question

2007-03-13 Thread Chaudhary, Harsh
I am having an arguement with a co-worker here and here is how it goes. We have a JSP which has about 100 input fields. These fields have custom validators on them. When we try to run the JSP, it throws an exception something to the tune of Maximum try/catch size reached or something like that.

RE: Validation framework question

2007-03-13 Thread Chaudhary, Harsh
be no code added for the validation. But this is not the problem ... Mike Chaudhary, Harsh a écrit : I am having an arguement with a co-worker here and here is how it goes. We have a JSP which has about 100 input fields. These fields have custom validators on them. When we try to run the JSP

RE: Validation framework question

2007-03-13 Thread Chaudhary, Harsh
List Subject: Re: Validation framework question then, you may try to look at the compiled jsp ? Chaudhary, Harsh a écrit : I know that the exception Maximum try/catch size reached has something to do with the compiler but what I would likt to know is that whether or not any validation code

RE: Struts session scoped forms

2007-03-01 Thread Chaudhary, Harsh
Michael and Chaudhary, Michael Jouravlev wrote: On 2/28/07, Chaudhary, Harsh [EMAIL PROTECTED] wrote: I have page1.jsp which has a form which calls Page1Action which forwards to page2.jsp. Also, session scoped Page1Form and Page2Form. In Page1Action, I do: Page2Form frm = new Page2Form

Struts session scoped forms

2007-02-28 Thread Chaudhary, Harsh
I have page1.jsp which has a form which calls Page1Action which forwards to page2.jsp. Also, session scoped Page1Form and Page2Form. In Page1Action, I do: Page2Form frm = new Page2Form(); frm.setSomeVariable(Some Value); Then read this value in page2.jsp to display. I feel the bad part is

RE: Struts session scoped forms

2007-02-28 Thread Chaudhary, Harsh
: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 3:32 PM To: Struts Users Mailing List Subject: Re: Struts session scoped forms On 2/28/07, Chaudhary, Harsh [EMAIL PROTECTED] wrote: I have page1.jsp which has a form which calls Page1Action which forwards to page2

Scriptlets in Struts tag

2007-02-27 Thread Chaudhary, Harsh
My code: logic:iterate name=FDA3Form property=dependentsInfoAl id=element indexId=indexVal html:text name=element property=dependentName size=20 maxlength=35 indexed=true style=display:block; styleId='BLABLABLA-%= indexVal %-'/ /logic:iterate The code within the - and

RE: Scriptlets in Struts tag

2007-02-27 Thread Chaudhary, Harsh
in Struts tag hi, try this code. %=indexVal.intValue()% Regards, Nuwan. - Original Message - From: Chaudhary, Harsh [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, February 27, 2007 6:22 PM Subject: Scriptlets in Struts tag My code: logic:iterate name

RE: Scriptlets in Struts tag

2007-02-27 Thread Chaudhary, Harsh
: Scriptlets in Struts tag hi, try this code. %=indexVal.intValue()% Regards, Nuwan. - Original Message - From: Chaudhary, Harsh [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, February 27, 2007 6:22 PM Subject: Scriptlets in Struts tag

RE: Offtopic netbeans

2007-02-26 Thread Chaudhary, Harsh
I would any current version of NB would do that. I am not sure about the version numbers, but usually, all you have to do is to add a server from the runtimes view and point NB to the correct server folder that contains Tomcat. Harsh. -Original Message- From: Martin Gainty

Struts 1.3 pain

2007-02-13 Thread Chaudhary, Harsh
I am trying to convert a Struts 1.2 app to Struts 1.3. Method definitions for custom validation in validator-rules.xml Struts 1.2 Version validator name=required classname=org.apache.struts.validator.FieldChecks method=validateRequired methodParams=java.lang.Object,

RE: Struts 1.3 pain

2007-02-13 Thread Chaudhary, Harsh
: Tuesday, February 13, 2007 4:10 PM To: Struts Users Mailing List Subject: Re: Struts 1.3 pain -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chaudhary, Chaudhary, Harsh wrote: I am trying to convert a Struts 1.2 app to Struts 1.3. [snip] I have the validator.xml, validator-rules.xml

RE: Struts 1.3 pain

2007-02-13 Thread Chaudhary, Harsh
, Chaudhary, Harsh wrote: There is no specific reason, But we have one custom validation, So is it good practice to revamp the entire the validator.xml file then? Well, there's no reason to put everything into one file. I had this same problem (upgrading between commons-validator releases, and from

RE: Validating list backed struts form

2007-02-09 Thread Chaudhary, Harsh
. Something like: form name=Customer field property=city indexedListProperty=addressList depends=required ... /field field property=state indexedListProperty=addressList depends=required ... /field /form Niall On 2/8/07, Chaudhary, Harsh [EMAIL PROTECTED] wrote: Hi

RE: Validating list backed struts form

2007-02-09 Thread Chaudhary, Harsh
... /field /form Niall On 2/8/07, Chaudhary, Harsh [EMAIL PROTECTED] wrote: Hi, I am trying to validate a form which has an arraylist of Address objects. I would like some pointers on this or any references etc. Harsh

RE: Validating list backed struts form

2007-02-09 Thread Chaudhary, Harsh
- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, February 09, 2007 9:46 AM To: Struts Users Mailing List Subject: Re: Validating list backed struts form On 2/9/07, Chaudhary, Harsh [EMAIL PROTECTED] wrote: Thanks for the tip. I will try this out now. Another question though

RE: Validating list backed struts form

2007-02-09 Thread Chaudhary, Harsh
Hmmm.cool. I will check it out. Harsh. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, February 09, 2007 10:05 AM To: Struts Users Mailing List Subject: Re: Validating list backed struts form On 2/9/07, Chaudhary, Harsh [EMAIL PROTECTED] wrote

Harsh: List backed form validation

2007-02-08 Thread Chaudhary, Harsh
Could anyone point me to a resource which explains how to validate a list backed form using the validator framework. Thanks, Harsh.

Validating list backed struts form

2007-02-08 Thread Chaudhary, Harsh
Hi, I am trying to validate a form which has an arraylist of Address objects. I would like some pointers on this or any references etc. Harsh.

Where do you submit bug reports for struts?

2006-06-01 Thread Chaudhary, Harsh
I would like to report a couple of bugs I have found in Struts Validation. I am pretty sure they are not Commons validator problems. Does anyone know where I could file a bug. Harsh. - To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: Where do you submit bug reports for struts?

2006-06-01 Thread Chaudhary, Harsh
suggestions would be appreciated, Harsh. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, June 01, 2006 11:22 AM To: Struts Users Mailing List Subject: Re: Where do you submit bug reports for struts? On 6/1/06, Chaudhary, Harsh [EMAIL PROTECTED] wrote: I

RE: Where do you submit bug reports for struts?

2006-06-01 Thread Chaudhary, Harsh
, found '.5' Any suggestions, Harsh. -Original Message- From: Chaudhary, Harsh Sent: Thursday, June 01, 2006 11:59 AM To: Struts Users Mailing List Subject: RE: Where do you submit bug reports for struts? I had actually posted this a few days back and received a response, but I could

RE: [OT] Re: multiple html:select

2006-05-30 Thread Chaudhary, Harsh
resume-oriented programming LOL. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 30, 2006 10:53 AM To: Struts Users Mailing List Subject: Re: [OT] Re: multiple html:select Grab the Java Web Parts cookbook:

RE: Sending run time value to custom tag

2006-05-26 Thread Chaudhary, Harsh
Actually we can. I know I have used logic:emptylogic:iterate/logic:iterate/logic:empty I don't know hot to set up the TLD so that it happens for our custom tags though. Harsh. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, May 26, 2006 3:45 AM To:

RE: Blank page when trying to forward

2006-05-26 Thread Chaudhary, Harsh
Can you see stack in your console? Maybe there's an exception. Harsh. -Original Message- From: Shervin Asgari [mailto:[EMAIL PROTECTED] Sent: Friday, May 26, 2006 6:20 AM To: Struts Users Mailing List Subject: Blank page when trying to forward Hello. I am having a problem. All my

RE: validation with validwhen

2006-05-26 Thread Chaudhary, Harsh
Instead of this: var-value(*this* = 0)/var-value Use this: var-value(*this* gt;= 0)/var-value Its to do with how your '' characters are parsed. Harsh. -Original Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Friday, May 26, 2006 8:01 AM To: user@struts.apache.org Subject:

RE: Hi, need of help

2006-05-26 Thread Chaudhary, Harsh
Lakshmi, you sound like you have never used struts before. I suggest you build a small sample app to help you see how struts works. A really good book on Struts is: Struts Survival Guide: Basics to best practices by Srikanth Shenoy with Nithin Mallya. Its a small, really concise book and it takes

RE: validation with validwhen

2006-05-26 Thread Chaudhary, Harsh
, 2006 11:03 AM To: user@struts.apache.org Subject: RE: validation with validwhen Thankyou for the response. tried var-value(*this* gt;= 0)/var-value but still not getting error message. any other suggessions? From: Chaudhary, Harsh [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user

RE: Object size in App Server

2006-05-25 Thread Chaudhary, Harsh
I just wrote the object to a file as a bit blob and looked at the file size. But I needed something quick and dirty and not necessarily extremely accurate. Harsh. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 12:16 AM To: Struts Users

RE: More then 1 Action Forms in JSP

2006-05-25 Thread Chaudhary, Harsh
Sure its possible for a JSP to call 2 different actions. You just need 2 different forms pointing to different actions. I would implement an action like DispatchAction and determine programatically which action to forward the user to. This also helps if I need to change the design in the future.

RE: urgent

2006-05-25 Thread Chaudhary, Harsh
If you look at the HTML source of the file, you will see that the table structure generated by DisplayTag by default looks something like: table th/th tr class='odd' td/td /tr tr class='even' td/td /tr /table The

RE: How can I pass all the request parameters into a bean ?

2006-05-25 Thread Chaudhary, Harsh
Isn't that what Struts forms do out of thye box. Harsh. -Original Message- From: Eric Chow [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 3:29 AM To: Struts User List Subject: How can I pass all the request parameters into a bean ? Hello, How can I pass all the request

RE: change date validator-rules

2006-05-25 Thread Chaudhary, Harsh
I think the best thing (and only thing) to do would be to, like someone else suggested, to write a custom validator, and then if the incoming value is #, return true. Otherwise, run the validation. For examples of custom validators, download the commons validator distribution. It has an example

RE: Struts with Eclipse 3.1

2006-05-25 Thread Chaudhary, Harsh
Sure you can. Just include the Struts lib files in your project. If you are talking about IDE support for Struts, then I would suggest: http://www.myeclipseide.com/ContentExpress-display-ceid-55.html This is a tested plug-in for Struts on eclipse. It costs about $30 - $40. There is another Struts

RE: Struts with Eclipse 3.1

2006-05-25 Thread Chaudhary, Harsh
: Thursday, May 25, 2006 10:17 AM To: Struts Users Mailing List Subject: RE: Struts with Eclipse 3.1 Ok Thanks. Can I just import the zip file to my project and start using it ? Maya Chaudhary, Harsh [EMAIL PROTECTED] wrote: Sure you can. Just include the Struts lib files in your project

RE: Struts with Eclipse 3.1

2006-05-25 Thread Chaudhary, Harsh
in eclipse [created using eclipse 3.1 and eclipse web tools platofrm]. Now to this project I have added the struts zip file. How do I make use of the struts config files, action classes etc ? Chaudhary, Harsh [EMAIL PROTECTED] wrote: Sure you can do that. But you would not have any IDE support

RE: Valiation for the time HH:mm:SS

2006-05-25 Thread Chaudhary, Harsh
Check this out. I haven't used it myself. Just a pointer. Check out TimeValidator in the API docs. http://jakarta.apache.org/commons/validator/apidocs/index.html Harsh. -Original Message- From: Carl Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:54 AM To: Struts Users

RE: Struts with Eclipse 3.1

2006-05-25 Thread Chaudhary, Harsh
. But functionally, will it work. What other suggestions ? Chaudhary, Harsh [EMAIL PROTECTED] wrote: A sample web project is bundeled with the struts distribution at like: \struts-1.2.8-bin\struts-1.2.8-bin\webapps Its called struts-examples.war. Get that running and then you can reuse that code to get

RE: ValidatorActionForm vs ValidatorForm

2006-05-25 Thread Chaudhary, Harsh
Use ValidatorActionForm when you want to key the validation by the Actions i.e. certain fields will be validated if a certain action is called. Suppose you have a big Struts Form which serves as the form for a number of actions e.g. updateClient.do, deleteClient.do, loginClient.do etc. Suppose

RE: How Validation framework's getVarValue method works?

2006-05-25 Thread Chaudhary, Harsh
Do this to get the value in urgency field. String year = ValidatorUtils.getValueAsString(bean, explainUrgency); Where bean is: public static boolean validateYourMethod(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator v, HttpServletRequest request) Harsh.

RE: How Validation framework's getVarValue method works?

2006-05-25 Thread Chaudhary, Harsh
I am sorry I wasn't clear enough in my reply. Here's what you need to do: String explainUrgency = field.getVarValue(explainUrgency); String whatever = ValidatorUtils.getValueAsString(bean, explainUrgency); Harsh. -Original Message- From: Yildiz Terkesli [mailto:[EMAIL PROTECTED] Sent:

RE: Validation for second field must greater than the first field

2006-05-25 Thread Chaudhary, Harsh
The solution is to write a custom validator if you want to do it server side using validator. In your custom validator, create 2 calendars, one each for start date and end date. Then use the method call before or after on these calendar. Harsh. Man I got a lot of free time today.

RE: Validation for second field must greater than the first field

2006-05-25 Thread Chaudhary, Harsh
. If not, then I agree with you in that I need to write my own custom validator easily. But I prefer if Struts already has this sort of comparison validator. Chaudhary, Harsh [EMAIL PROTECTED] wrote: The solution is to write a custom validator if you want to do it server side using validator. In your

RE: forms in struts-layout tabs ??

2006-05-25 Thread Chaudhary, Harsh
What you say is definitely doable but consider this. You would need to save the data from each screen till the end of the screens i.e. the 8th screen. You can do this by saving the data in the session (not advisable as the session object will be huge). Or you could pass data as hidden fields

RE: Harsh: Issue with float validation instruts validator

2006-05-24 Thread Chaudhary, Harsh
as not being floats, or write a custom validator, or wait for someone smarter than me to give you a usefull answer ;} mvg, Jasper On 5/23/06, Chaudhary, Harsh [EMAIL PROTECTED] wrote: I have a field which is being validated as: field property=income depends=validwhen,float arg key

RE: display tag ??

2006-05-24 Thread Chaudhary, Harsh
The data comes from a List which can be set as a request Attribute. Harsh. P.S.: I also had to do a pagination solution for my project. After working with it for a while, I did not found it to be very useful except for the simplest of cases. My major beef with DT is the location of the TLD file.

RE: validation

2006-05-23 Thread Chaudhary, Harsh
Validate each field using integer and intRange attribute values for validation. e.g. field property=ssnFirstField depends=integer,intRange arg position=0 key=ssnFirstField/ arg position=1 name=intRange key=${var:min} resource=false/ arg

Harsh: Issue with float validation instruts validator

2006-05-23 Thread Chaudhary, Harsh
I have a field which is being validated as: field property=income depends=validwhen,float arg key=income position=0/ var var-nametest/var-name var-value ( *this* gt; 0 ) /var-value /var

RE: Req on html:select

2006-05-22 Thread Chaudhary, Harsh
Since you don't want to go to the server for populating the values of the second list box, I would say JavaScript is the way to go. Harsh. -Original Message- From: Radha Krishna [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 9:56 AM To: user@struts.apache.org Subject: Req on

RE: is there any way to customize the client side validation popup window

2006-05-19 Thread Chaudhary, Harsh
If you mean the Browser pop up window, then no. You could think about server side validation and generating custom pop-ups using Javascript. Harsh. -Original Message- From: Lixin Chu [mailto:[EMAIL PROTECTED] Sent: Friday, May 19, 2006 4:59 PM To: Struts Users Mailing List Subject: is

RE: get message from MessageResources in Action Class

2006-05-18 Thread Chaudhary, Harsh
You would have to be more specific in your question. Do you mean ActionMessage or just the message in your properties file etc. You might want to check out the ActionMessages and the ActionMessage class. Also, Validator and ValidatorAction classes in Commons Validator. Here's a really simple way

RE: What is the reason behind sharing the same formbean by multiple actions

2006-05-17 Thread Chaudhary, Harsh
1. Maybe I have diffferent actions which work on the same data e.g. in a wizard like page flow, previous, next, save buttons etc. Harsh. -Original Message- From: Carl Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 4:31 PM To: Struts Users Mailing List Subject: Re: What

RE: - Design Issue with Struts Validation

2006-05-16 Thread Chaudhary, Harsh
I would go with the declarative approach. It lends to more flexibility. Harsh. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 1:27 PM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: Re: - Design Issue with Struts

Get request object

2006-05-12 Thread Chaudhary, Harsh
Hi, This is not exactly a struts question. But I am in a bind and short on time. So, maybe someone can help. I need to access the request object from a struts form. How do I do that? I mean how can I access the request object. I could have sworn there was a way to get either the ServletContext

RE: Get request object

2006-05-12 Thread Chaudhary, Harsh
solve the problem. dave On Fri, 2006-05-12 at 11:59 -0500, Chaudhary, Harsh wrote: Hi, This is not exactly a struts question. But I am in a bind and short on time. So, maybe someone can help. I need to access the request object from a struts form. How do I do that? I mean how can I access

RE: extending ValidationForm instead of ValidatorActionForm

2006-05-12 Thread Chaudhary, Harsh
Could you also include of you validation.xml and struts-config.xml? Harsh. -Original Message- From: josh t [mailto:[EMAIL PROTECTED] Sent: Friday, May 12, 2006 2:38 PM To: user@struts.apache.org Subject: extending ValidationForm instead of ValidatorActionForm When my form extends

RE: Get request object

2006-05-12 Thread Chaudhary, Harsh
in the session and set it in the action. then your getter could access that property. for this to work, you'd have to set validate=no in the config file for that action, and call and handle the validation yourself in the action. dave On Fri, 2006-05-12 at 13:47 -0500, Chaudhary, Harsh wrote: I

RE: extending ValidationForm instead of ValidatorActionForm

2006-05-12 Thread Chaudhary, Harsh
, org.apache.struts.action.ActionMessages, javax.servlet.http.HttpServletRequest msg=errors.required/ /global /form-validation Chaudhary, Harsh [EMAIL PROTECTED] wrote: Could you also include of you validation.xml and struts-config.xml? Harsh. -Original Message- From: josh t [mailto

RE: extending ValidationForm instead of ValidatorActionForm

2006-05-12 Thread Chaudhary, Harsh
to ValidatorActionForm is the value in form name=action vs. form ? Do I need to be implementing any other methos in my Form, or is what I have enough? Chaudhary, Harsh [EMAIL PROTECTED] wrote: My first thought was that you might be using an action as you validation key i.e

RE: Validator stops when an error is encountered

2006-05-09 Thread Chaudhary, Harsh
Hi, This is probably a newbie question but here goes: If we call validation manually, the method signature reads: validate(ActionMapping, HttpServletRequest) I know what the request part does, but how and where does mapping fit in there? What does it do? And how does the validation framework use

RE: Validation Issue - Validation Not Taking Affect

2006-05-09 Thread Chaudhary, Harsh
I am not 100% on this as I don't know the package org.apache.struts.chain.commands.servlet.ValidateActionForm very well, but try extending your form from ValidatorForm from: org.apache.struts.validator.ValidatorForm Harsh. -Original Message- From: josh t [mailto:[EMAIL PROTECTED]

Validation help: One struts form, multiple actions

2006-05-08 Thread Chaudhary, Harsh
Hi, I am having some trouble with struts validation. Here's the case: I have multiple actions corresponding to multiple pages. I have only one struts form for all these actions. I would appreciate it if someone could tell me how to set up my validation. I am using ValidatorActionForm for my

RE: Validation help: One struts form, multiple actions

2006-05-08 Thread Chaudhary, Harsh
3:26 PM To: 'Struts Users Mailing List' Subject: RE: Validation help: One struts form, multiple actions Your form name in validation.xml should be InputDataForm (no leading slash), not /ClientA. -Original Message- From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED] Sent: Monday, May 08

RE: Validation help: One struts form, multiple actions

2006-05-08 Thread Chaudhary, Harsh
, multiple actions Your form name in validation.xml should be InputDataForm (no leading slash), not /ClientA. -Original Message- From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 1:16 PM To: Struts Users Mailing List Subject: Validation help: One struts

Validation help: One struts form, multiple actions

2006-05-08 Thread Chaudhary, Harsh
: One struts form, multiple actions My bad. Missed that. How is it blowing out? Q -Original Message- From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 1:27 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Validation help: One struts form

RE: Validation help: One struts form, multiple actions

2006-05-08 Thread Chaudhary, Harsh
a key. Then you should modify your validation.xml to run validations just for that step. Paul --- Chaudhary, Harsh [EMAIL PROTECTED] wrote: Now that I think about it, my question is just this: Is there a way to selectively validate fields in a struts form? Harsh. -Original Message

RE: Marking fields with background colour having errors

2006-05-05 Thread Chaudhary, Harsh
I have also been working on a similar project which marks fields in error with a background color. In addition to that, it also: 1. If you click on the error messages on the top, it scrolls you to the field in error. 2. Marks the field with a color. 3. Generates a pop-up div box with a detailed

RE: Issue with DHTML and DIV position

2006-05-02 Thread Chaudhary, Harsh
Hi, If I understand you correctly, this is what you would like to do: [ pseudo code ] find position of link two (in pixels) set the following properties for the div: div.top and div.left where div.top = vertical position of link + 10 px (or however many pixels you want) div.left = 10 px (or

RE: Accessing Validation Errors in an Action

2006-04-28 Thread Chaudhary, Harsh
Try this: In your Action class, use this method call: getErrors(javax.servlet.http.HttpServletRequest request) The javadoc for this method is at: http://struts.apache.org/struts-doc-1.2.7/api/org/apache/struts/action/A ction.html Harsh. -Original Message- From: Lixin Chu

RE: validatewhen --- what's wrong?

2006-04-28 Thread Chaudhary, Harsh
Are you sure that validation is being called? For example, what happens when you submit the form with nothin in the login field (which is required)? Harsh. -Original Message- From: Zheng Wen Zhe [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 3:24 AM To: 'Struts Users Mailing

RE: validatewhen --- what's wrong?

2006-04-28 Thread Chaudhary, Harsh
To: 'Struts Users Mailing List' Subject: RE: validatewhen --- what's wrong? The validation is definitely called. If I submit the form with login field empty, alert is popping up. So I am sure is somewhere wrong with the validwhen.. But, where?? Jason -Original Message- From: Chaudhary

RE: validatewhen --- what's wrong?

2006-04-28 Thread Chaudhary, Harsh
=errors.required/ *** -Original Message- From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED] Sent: 28 April 2006 17:09 To: Struts Users Mailing List Subject: RE: validatewhen --- what's wrong? Do you see some stack when validation runs for the password field? Also, do you see

RE: How to use displayTag

2006-04-28 Thread Chaudhary, Harsh
I am also looking for a pagination solution. And you are right, the documentation for DisplayTag is not exactly up to the mark. Another thing I found was it has some issues with its design. That is, by default, it gets the entire object returned from a query and populates a list with it. Now, if

RE: Re: complex validation problem.

2006-04-28 Thread Chaudhary, Harsh
You could write a custom validator which would read the value of the documentIdentity. Then, If documentIdentity != pazport, return true else -- Run your mask validation for passport number -- To do the mask validation, from your class, consult this:

RE: validatewhen --- what's wrong?

2006-04-27 Thread Chaudhary, Harsh
Try it like this. var-value(*this* == 'password')/var-value -Original Message- From: Jakub Milkiewicz [mailto:[EMAIL PROTECTED] Sent: Thursday, April 27, 2006 12:34 PM To: Struts Users Mailing List Subject: Re: validatewhen --- what's wrong? Hi To tell you the truth i do not

RE: validator error for struts1.2.8

2006-04-26 Thread Chaudhary, Harsh
My 2 cents. Your struts-config for the validator and validation xml looks good. Maybe your validator-rules.xml file is corrupted or does not have all the validation rules definitions. You could try copying the validator-rules.xml file from the struts sample app and using that. Harsh.

RE: email validation

2006-04-26 Thread Chaudhary, Harsh
The simplest way could be to use a mask in addition to the email validation. Harsh. -Original Message- From: Marisol Opreni [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 10:13 AM To: 'Struts Users Mailing List' Subject: email validation Hi! I'm using validating email

RE: Combo Selection

2006-04-26 Thread Chaudhary, Harsh
This might help. The option for database driven menus is also present. http://struts-menu.sourceforge.net/index.html Harsh. -Original Message- From: Fabio Luiz [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 3:24 PM To: Struts Users Mailing List Subject: Re: Combo Selection

RE: Mask validation

2006-04-25 Thread Chaudhary, Harsh
Really quickly. Here's a mask I am using. I allows A-Z, a-z and the special characters, ' , - and [Empty space] ^[a-zA-Z\s'-]+$ I guess you can work off of it. Harsh. -Original Message- From: Marisol Opreni [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 25, 2006 9:30 AM To:

RE: Validation help required

2006-04-24 Thread Chaudhary, Harsh
The fact that you are getting 2 messages makes sense as you are running validation against both the fields. It does not matter if the arg key is the same. That would just pick the same message from your properties file twice. You could try using the validWhen validator and accociating that

RE: Beginner's question on Struts and JSP

2006-04-21 Thread Chaudhary, Harsh
Another resource I found to be very helpful is: http://struts.apache.org/struts-action/userGuide/index.html Harsh. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Friday, April 21, 2006 10:55 AM To: Struts Users Mailing List Subject: Re: Beginner's question on Struts

ValidatorActionForm in Struts 1.3.1

2006-04-17 Thread Chaudhary, Harsh
Hi, I don't see the ValidatorActionForm class in Struts 1.3.1 . I don't understand why this was taken out (not even deprecated). Or is there an alternate class I should be using for the ValidatorActionForm class. Thanks, Harsh.