RE: ValidatorForm losing params when validation fails

2003-11-10 Thread Marc Dugger
if the validation fails ... -Original Message- From: Marc Dugger [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 6:45 AM To: [EMAIL PROTECTED] Subject: ValidatorForm losing params when validation fails The following code fragment is used in a DispatchAction and when

RE: ValidatorForm losing params when validation fails

2003-11-10 Thread Marc Dugger
Users Mailing List Subject: RE: ValidatorForm losing params when validation fails Yes .. It makes sense .. Can u post the action mapping in the struts config .. That may give some clue -Original Message- From: Marc Dugger [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003

dynamic indexed properties in Form bean

2003-11-10 Thread Marc Dugger
I'm having trouble populating a Form bean that has an indexed (variable size) nested bean. I'm using an ArrayList inside the Form bean to collect the nested properties and it's partially working. The problem is that because the index is variable, I don't know how to correctly size the ArrayList.

ValidatorForm losing params when validation fails

2003-11-09 Thread Marc Dugger
The following code fragment is used in a DispatchAction and when the validation fails, the input form is returned unpopulated because all my form fields lose the data that was originally sent with the request: ActionErrors errors = form.validate(mapping, request); if (!errors.isEmpty()) {

RE: validwhen + struts 1.1

2003-11-06 Thread Marc Dugger
Blankvalidwhen is in CVS right now. Check out nightly build if it's worth it to you. -Original Message- From: Vara Prasad Reddy [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:32 AM To: struts Subject: validwhen + struts 1.1 Importance: High I am currently

RE: requiredif

2003-10-27 Thread Marc Dugger
My understanding is that 'requiredif' will be deprecated and the use of 'validwhen' is encouraged. Example: field property=emailAddress depends=validwhen arg0 key=userinfo.emailAddress.label/ var var-nametest/var-name var-value((sendNewsletter == null) or

RE: requiredif

2003-10-27 Thread Marc Dugger
you used this or tested it? - Original Message - From: Marc Dugger [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, October 27, 2003 5:32 PM Subject: RE: requiredif My understanding is that 'requiredif' will be deprecated and the use of 'validwhen

RE: Display Mode | Edit Mode

2003-10-22 Thread Marc Dugger
It's not so much a feature as the way you design your Action and ActionForm. I do this with all JSP responsible for creating/editing some persistent business object. What I do: 1. Create two actions named Get[YourBusinessObject]Action and Edit[YourBusinessObject]Action. Both should extends

not printing all ActionMessages

2003-10-21 Thread Marc Dugger
html:messages id='messages' message='true' header='messages.header' footer='messages.footer' bean:message name='msg' / /html:messages I'm only seeing one ActionMessage printed out. I thought html:messages would iterate, but apparently not. Can someone provide some guidance?

FW: not printing all ActionMessages (CORRECTED)

2003-10-21 Thread Marc Dugger
should read bean:message name='messages' / below -Original Message- From: Marc Dugger [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 6:37 AM To: [EMAIL PROTECTED] Subject: not printing all ActionMessages html:messages id='messages' message='true' header='messages.header

RE: not printing all ActionMessages

2003-10-21 Thread Marc Dugger
: Marc Dugger [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 5:07 PM To: [EMAIL PROTECTED] Subject: not printing all ActionMessages html:messages id='messages' message='true' header='messages.header' footer='messages.footer' bean:message name='msg

RE: Bug tracking software

2003-10-20 Thread Marc Dugger
Scarab is Java based and quite easy to set up. -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 4:43 PM To: Struts Users Mailing List Subject: Re: Bug tracking software I have used GNATS and gnatsweb for years and like them very much

RE: could not deserialize the context attribute .. (configuration: struts 1.1 + web logic 8.1), is it a known bug ?

2003-10-19 Thread Marc Dugger
I had a somewhat similar issue with Tomcat when it came to serializing a FormFile. I got around this by extending the MultipartRequestHandler and implementing Serializable. It appears that you could do the same with the RequestProcessor. Be sure to add this to your struts-config.xml:

Validator error (Struts nightly build)

2003-10-19 Thread Marc Dugger
I'm receiving the following exception: line 1:30: unexpected char: '0' at org.apache.struts.validator.validwhen.ValidWhenLexer.nextToken(ValidWhenLexe r.java:236) at antlr.TokenBuffer.fill(TokenBuffer.java:69) at antlr.TokenBuffer.LA(TokenBuffer.java:80) at

populating form fields from request params

2003-10-18 Thread Marc Dugger
I am using the same form to both create and update database entities. The following is an example of a form field: html-el:select property='documentStatusTypeId' value='${note.auditIdentity.documentStatusType.id}' onchange=editNoteForm.action=''; editNoteForm.submit(); return true;

RE: populating form fields from request params

2003-10-18 Thread Marc Dugger
- Original Message - From: Marc Dugger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 18, 2003 12:35 PM Subject: populating form fields from request params I am using the same form to both create and update database entities. The following is an example of a form

repopulating options of html:select when validation fails

2003-10-17 Thread Marc Dugger
Can anyone offer a crafty method of reloading a dynamic collection of html:options into the request scope in case form validation fails and the controller must forward to the 'input' of the action mapping? Thanks. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

only Strings appear to be validated by Validator

2003-10-16 Thread Marc Dugger
My validation.xml: form name=/note/note_schedule/edit/details field property=noteScheduleTypeId depends=required,integer arg0 key=Note Schedule Type ID resource=false/ /field field property=interestRateIndexTypeId depends=validwhen,integer

RE: only Strings appear to be validated by Validator [SOLUTION]

2003-10-16 Thread Marc Dugger
this in the example Barry - Original Message - From: Marc Dugger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 16, 2003 2:42 PM Subject: only Strings appear to be validated by Validator My validation.xml: form name=/note/note_schedule/edit/details

contains(String, String) in DynaActionForm

2003-10-09 Thread Marc Dugger
Can someone explain the parameters of this method? The javadocs call them 'name' and 'key'. I gather that 'name' refers to the 'name' attribute of the form-property in struts-config. If so, what does 'key' refer to? Thanks. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus

NotSerializableException using FormFile

2003-10-06 Thread Marc Dugger
I've set the scope of my form to 'session' to support a wizard process. The form defines a property of type org.apache.struts.upload.FormFile. This work fine until I set 'validate = true' on my action mapping. It appears that