.swf file
Dear Friends, Can anybody explain me how to use .swf file as a button in struts framework. -Jignesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Job Posting
We are looking for Project Manager, Sr. Software Engineers and Graphic Designers for our Cochin operation. We will be providing best compansation of the industry. Project Manager Eligibility: 7-10 Years experience in which atleast 3 years pure project management experience, Fluency in communication, Well aware of different software life cycles, Able to handle around 25 people team with various projects. Working knowledge of UML Tools(ie. Rational Rose) Sound analyzing skill Sr. Software Engineer Eligibility: 3-6 Years of experience in J2EE technology and Java Script Well versed in Struts framework, Working experience of Weblogic or atleast one application server, Having exposure of Eclipse tool, Posses good knowledge of Oracle database Web Graphic Designer: Possess innovative nature, Working knowledge of Flash MX, Exposure to DHTML Interested candidate please apply to [EMAIL PROTECTED] will be scheduled soon. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts cookbook
Good Suggestion, -Jignesh On Friday 19 March 2004 18:17, Geeta Ramani wrote: Danilo: Is there a chapter or two which you could make available on-line for a preview..? :) Geeta Danilo Gurovich wrote: Actually, a struts cookbook is just in the finishing stages. George Franciscus and I have been hard at work at it for the last year, and it's in final review. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does Tiles has performance?
When ever I am using method isDate of GenericValidator I am getting following error. Even for my date format 12-DEC-2004 I am getting same exception. I coudn't able to figure out what is the problem. -Jignesh ava.lang.IllegalArgumentException: Illegal pattern character 'O' java.text.SimpleDateFormat.compile(SimpleDateFormat.java:675) java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:494) java.text.SimpleDateFormat.init(SimpleDateFormat.java:443) java.text.SimpleDateFormat.init(SimpleDateFormat.java:424) com.bang.registration.RegistrationForm.checkDate(RegistrationForm.java:139) com.bang.registration.RegistrationForm.validate(RegistrationForm.java:131) org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:942) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) note - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
date validation problem
On Tuesday 16 March 2004 21:03, Jignesh Patel wrote: When ever I am using method isDate of GenericValidator I am getting following error. Even for my date format 12-DEC-2004 I am getting same exception. I coudn't able to figure out what is the problem. -Jignesh ava.lang.IllegalArgumentException: Illegal pattern character 'O' java.text.SimpleDateFormat.compile(SimpleDateFormat.java:675) java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:494) java.text.SimpleDateFormat.init(SimpleDateFormat.java:443) java.text.SimpleDateFormat.init(SimpleDateFormat.java:424) com.bang.registration.RegistrationForm.checkDate(RegistrationForm.java:139 ) com.bang.registration.RegistrationForm.validate(RegistrationForm.java:131) org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor. java:942) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255 ) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) note - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SV: Form Validation
I am trying to use min length in javascript for password, but it is not working. I am just wondering why it works for all the fields but not password. Can I have any input. -Jignesh On Monday 15 March 2004 16:14, Nina Bertilsdotter wrote: Sorry, yes, it does extend ValidatorForm : ) -Ursprungligt meddelande- Från: Otto, Frank [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:41 Till: 'Struts Users Mailing List' Ämne: AW: Form Validation Does your form class extend the ValidatorForm? -Ursprüngliche Nachricht- Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. März 2004 11:39 An: 'Struts Users Mailing List' Betreff: SV: Form Validation Thanks Budi, but that didn't seem to do the trick either. When I enter 4 (min range is 1900) in the year field I still don't get an error. -Ursprungligt meddelande- Från: Budi Rostiarso [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:31 Till: Struts Users Mailing List Ämne: RE: Form Validation Try putting max arg, because i think range validation must be supplied with min and max (range) value. arg1 name=intRange key=${var:min} resource=false/ arg2 name=intRange key=${var:max} resource=false/ var var-namemin/var-name var-value${minYear}/var-value /var var var-namemax/var-name var-value${maxYear}/var-value /var CMIIW, bdr. -Original Message- From: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 5:25 PM To: 'Struts Users Mailing List' Subject: SV: Form Validation Thank you, Frank, I was indeed missing the validation='true' but that didn't seem to fix my problem... must be something else; I guess I've got to keep digging. Nina -Ursprungligt meddelande- Från: Otto, Frank [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:13 Till: 'Struts Users Mailing List' Ämne: AW: Form Validation Hi Nina, you had to set validation=true in your action definition (struts-config.xml). Regards, Frank -Ursprungliche Nachricht- Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. Marz 2004 11:09 An: 'Struts Users Mailing List' Betreff: Form Validation Hi People, I'm pulling my hair out trying to get form validation to work through the validator, any help will be much appreciated. In this example I'm trying to validate a single field (year of type int), should be pretty easy, one might think, but alas, I'm stuck and I can't get it to work. I'm sure it is something simple but I've gone blind from looking at it. Thanks. JSP: html:form action=MyAction.do html:errors/ html:text property=year/ Struts-config: form-beans form-bean name=myForm type=myForm/ /form-beans action path=MyAction type=packageName/MyAction scope=request name=myForm input=myPage.jsp forward name=success path=myPage.jsp/ /action Validation.xml: form name=MyAction field property=year depends=required,integer,intRange arg0 key=MyAction.year/ arg1 name=intRange key=${var:min} resource=false/ var var-namemin/var-name var-value1900/var-value /var /field /form - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Form Validation
R u passing input value in struts-config. If implement as per mail say it has to work. On Monday 15 March 2004 16:23, Otto, Frank wrote: I use ValidatorForm, but I think it's not the solution. -Ursprüngliche Nachricht- Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. März 2004 11:42 An: 'Struts Users Mailing List' Betreff: SV: Form Validation No, it extends ValidatorActionForm. -Ursprungligt meddelande- Från: Otto, Frank [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:41 Till: 'Struts Users Mailing List' Ämne: AW: Form Validation Does your form class extend the ValidatorForm? -Ursprüngliche Nachricht- Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. März 2004 11:39 An: 'Struts Users Mailing List' Betreff: SV: Form Validation Thanks Budi, but that didn't seem to do the trick either. When I enter 4 (min range is 1900) in the year field I still don't get an error. -Ursprungligt meddelande- Från: Budi Rostiarso [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:31 Till: Struts Users Mailing List Ämne: RE: Form Validation Try putting max arg, because i think range validation must be supplied with min and max (range) value. arg1 name=intRange key=${var:min} resource=false/ arg2 name=intRange key=${var:max} resource=false/ var var-namemin/var-name var-value${minYear}/var-value /var var var-namemax/var-name var-value${maxYear}/var-value /var CMIIW, bdr. -Original Message- From: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 5:25 PM To: 'Struts Users Mailing List' Subject: SV: Form Validation Thank you, Frank, I was indeed missing the validation='true' but that didn't seem to fix my problem... must be something else; I guess I've got to keep digging. Nina -Ursprungligt meddelande- Från: Otto, Frank [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:13 Till: 'Struts Users Mailing List' Ämne: AW: Form Validation Hi Nina, you had to set validation=true in your action definition (struts-config.xml). Regards, Frank -Ursprungliche Nachricht- Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. Marz 2004 11:09 An: 'Struts Users Mailing List' Betreff: Form Validation Hi People, I'm pulling my hair out trying to get form validation to work through the validator, any help will be much appreciated. In this example I'm trying to validate a single field (year of type int), should be pretty easy, one might think, but alas, I'm stuck and I can't get it to work. I'm sure it is something simple but I've gone blind from looking at it. Thanks. JSP: html:form action=MyAction.do html:errors/ html:text property=year/ Struts-config: form-beans form-bean name=myForm type=myForm/ /form-beans action path=MyAction type=packageName/MyAction scope=request name=myForm input=myPage.jsp forward name=success path=myPage.jsp/ /action Validation.xml: form name=MyAction field property=year depends=required,integer,intRange arg0 key=MyAction.year/ arg1 name=intRange key=${var:min} resource=false/ var var-namemin/var-name var-value1900/var-value /var /field /form - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: SV: AW: Form Validation
OK I am giving working code map it with your app 1 .in Validation.xml following code field property=userName depends=required, minlength,maxlength,mask msg name=mask key=registrationForm.userName.maskmsg/ arg0 key=registrationForm.userName/ arg1 key=${var:minlength} name=minlength resource=false/ arg2 key=${var:maxlength} name=maxlength resource=false/ var var-nameminlength/var-name var-value5/var-value /var var var-namemask/var-name var-value^[a-zA-Z]{1}[a-zA-Z0-9_]*$/var-value /var var var-namemaxlength/var-name var-value15/var-value /var /field 2. in Form class extend ValidatorForm 3. In struts-config file in action path for action-mapping action path=/saveRegistration type= registration.RegistrationAction name=registrationForm validate=true input=/pages/index.jsp forward name=success path=/pages/profile.jsp/ forward name=failure path=/pages/index.jsp/ /action 4. in index.jsp head html:javascript formName=registrationForm / /head after body put html:form action=/saveRegistration name=registrationForm type=com.bang.registration.RegistrationForm onsubmit=return validateRegistrationForm(this); n last don't forget to use submit tage, if you are using html:img then it won't work. On Monday 15 March 2004 16:32, Nina Bertilsdotter wrote: I'm not sure I understand what you mean -Ursprungligt meddelande- Från: Jignesh Patel [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 12:00 Till: Struts Users Mailing List; Otto, Frank Ämne: Re: AW: Form Validation R u passing input value in struts-config. If implement as per mail say it has to work. On Monday 15 March 2004 16:23, Otto, Frank wrote: I use ValidatorForm, but I think it's not the solution. -Ursprüngliche Nachricht- Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. März 2004 11:42 An: 'Struts Users Mailing List' Betreff: SV: Form Validation No, it extends ValidatorActionForm. -Ursprungligt meddelande- Från: Otto, Frank [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:41 Till: 'Struts Users Mailing List' Ämne: AW: Form Validation Does your form class extend the ValidatorForm? -Ursprüngliche Nachricht- Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. März 2004 11:39 An: 'Struts Users Mailing List' Betreff: SV: Form Validation Thanks Budi, but that didn't seem to do the trick either. When I enter 4 (min range is 1900) in the year field I still don't get an error. -Ursprungligt meddelande- Från: Budi Rostiarso [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:31 Till: Struts Users Mailing List Ämne: RE: Form Validation Try putting max arg, because i think range validation must be supplied with min and max (range) value. arg1 name=intRange key=${var:min} resource=false/ arg2 name=intRange key=${var:max} resource=false/ var var-namemin/var-name var-value${minYear}/var-value /var var var-namemax/var-name var-value${maxYear}/var-value /var CMIIW, bdr. -Original Message- From: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 5:25 PM To: 'Struts Users Mailing List' Subject: SV: Form Validation Thank you, Frank, I was indeed missing the validation='true' but that didn't seem to fix my problem... must be something else; I guess I've got to keep digging. Nina -Ursprungligt meddelande- Från: Otto, Frank [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:13 Till: 'Struts Users Mailing List' Ämne: AW: Form Validation Hi Nina, you had to set validation=true in your action definition (struts-config.xml). Regards, Frank -Ursprungliche Nachricht- Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. Marz 2004 11:09 An: 'Struts Users Mailing List' Betreff: Form Validation Hi People, I'm pulling my hair out trying to get form validation to work through the validator, any help will be much appreciated. In this example I'm trying to validate a single field (year of type int), should be pretty easy, one might think, but alas, I'm stuck and I can't get it to work. I'm sure it is something simple but I've gone blind from looking at it. Thanks. JSP
Re: SV: Form Validation
Ok then what is the solution, you mean to say I will handle through back end only. Also in validation-rule.xml what I need to modify. -Jignesh On Monday 15 March 2004 16:32, Joe Hertz wrote: Check the Bugzilla. I believe it works in the html:errors tag, but you won't get a javascript popup. If memory serves, there's a security concern about using minlength in password fields -- basically the logic goes something like, Do you really want to be providing a front end validation that tells a cracker how long his randomly guessed password attempts must be. If you *really* want this though, you can just go ahead and modify the javascript you'll find in the validation-rules.xml file. -Original Message- From: Jignesh Patel [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 5:55 AM To: Struts Users Mailing List Subject: Re: SV: Form Validation I am trying to use min length in javascript for password, but it is not working. I am just wondering why it works for all the fields but not password. Can I have any input. -Jignesh On Monday 15 March 2004 16:14, Nina Bertilsdotter wrote: Sorry, yes, it does extend ValidatorForm : ) -Ursprungligt meddelande- Fr: Otto, Frank [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:41 Till: 'Struts Users Mailing List' ne: AW: Form Validation Does your form class extend the ValidatorForm? -Ursprngliche Nachricht- Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. Mz 2004 11:39 An: 'Struts Users Mailing List' Betreff: SV: Form Validation Thanks Budi, but that didn't seem to do the trick either. When I enter 4 (min range is 1900) in the year field I still don't get an error. -Ursprungligt meddelande- Fr: Budi Rostiarso [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:31 Till: Struts Users Mailing List ne: RE: Form Validation Try putting max arg, because i think range validation must be supplied with min and max (range) value. arg1 name=intRange key=${var:min} resource=false/ arg2 name=intRange key=${var:max} resource=false/ var var-namemin/var-name var-value${minYear}/var-value /var var var-namemax/var-name var-value${maxYear}/var-value /var CMIIW, bdr. -Original Message- From: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 5:25 PM To: 'Struts Users Mailing List' Subject: SV: Form Validation Thank you, Frank, I was indeed missing the validation='true' but that didn't seem to fix my problem... must be something else; I guess I've got to keep digging. Nina -Ursprungligt meddelande- Fr: Otto, Frank [mailto:[EMAIL PROTECTED] Skickat: den 15 mars 2004 11:13 Till: 'Struts Users Mailing List' ne: AW: Form Validation Hi Nina, you had to set validation=true in your action definition (struts-config.xml). Regards, Frank -Ursprungliche Nachricht- Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. Marz 2004 11:09 An: 'Struts Users Mailing List' Betreff: Form Validation Hi People, I'm pulling my hair out trying to get form validation to work through the validator, any help will be much appreciated. In this example I'm trying to validate a single field (year of type int), should be pretty easy, one might think, but alas, I'm stuck and I can't get it to work. I'm sure it is something simple but I've gone blind from looking at it. Thanks. JSP: html:form action=MyAction.do html:errors/ html:text property=year/ Struts-config: form-beans form-bean name=myForm type=myForm/ /form-beans action path=MyAction type=packageName/MyAction scope=request name=myForm input=myPage.jsp forward name=success path=myPage.jsp/ /action Validation.xml: form name=MyAction field property=year depends=required,integer,intRange arg0 key=MyAction.year/ arg1 name=intRange key=${var:min} resource=false/ var var-namemin/var-name var-value1900/var-value /var /field /form - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: [OT] Jericho == Struts 2.0?
http://raibledesigns.com on this it is available find out.But not difference just download test build1.2 and make difference note and post it. -Jignesh On Monday 15 March 2004 21:14, Larry Meadors wrote: Doing a google search for struts jericho might be a good start. :) : [EMAIL PROTECTED] 03/15/04 8:40 AM On a more on-topic note, where can I get info on the new features / differences in Struts 1.1 and 2.0? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
server side date validation
Can anybody give me example code to validate date towards server side? -Jignesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
urgent:multibox client side validation
Dear Friends, I have implemented multibox, everything is working fine. But I would like to validate the checkboxes, my purpose is atleast one checkbox will be selected from the user while submitting, if not message will be pop up. I am implementing javascript(client side) validation, My validation.xml contains following code field property=selectedMagazines depends=required arg0 key=interestsForm.selectedMagazines/ /field I have tried the code, which is posted by Yuan as follows in validator-rule.xml, but it didn't worked out. function validateRequired(form) { var isValid = true; var focusField = null; var i = 0; var fields = new Array(); oRequired = new required(); for (x in oRequired) { var field = form[oRequired[x][0]]; if (field.type == 'text' || field.type == 'textarea' || field.type == 'file' || field.type == 'select-one' || field.type == 'radio' || // -- true for single radio button, Saul Q Yuan ([EMAIL PROTECTED]) 10/28/03 field.type == 'checkbox' || // -- true for single checkbox, Saul Q Yuan ([EMAIL PROTECTED]) 10/28/03 field.type == 'password') { var value = ''; // get field's value if (field.type == select-one) { var si = field.selectedIndex; if (si = 0) { value = field.options[si].value; } // -- get value for checked single radio button or checkbox, Saul Q Yuan ([EMAIL PROTECTED]) 10/28/03 } else if (field.type == radio || field.type == checkbox) { if (field.checked) { value = field.value; } } else { value = field.value; } if (trim(value).length == 0) { if (i == 0) { focusField = field; } fields[i++] = oRequired[x][1]; isValid = false; } } else if (field.type == select-multiple) { var numOptions = field.options.length; lastSelected=-1; for(loop=numOptions-1;loop=0;loop--) { if(field.options[loop].selected) { lastSelected = loop; value = field.options[loop].value; break; } } if(lastSelected 0 || trim(value).length == 0) { if(i == 0) { focusField = field; } fields[i++] = oRequired[x][1]; isValid=false; } } else if ((field.length 0) (field[0].type == 'radio' || field[0].type == 'checkbox')) { isChecked=-1; for (loop=0;loop field.length;loop++) { if (field[loop].checked) { isChecked=loop; break; // only one needs to be checked } } if (isChecked 0) { if (i == 0) { focusField = field[0]; } fields[i++] = oRequired[x][1]; isValid=false; } } } if (fields.length 0) { focusField.focus(); alert(fields.join('\n')); } return isValid; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: urgent:multibox client side validation
Yes Yuan, It is working for all other function even password comparision also. I need one more help for fixing password size I used minimum length but it is not working, may not supporting '* char. What need to be done for the same? -Jignesh On Monday 15 March 2004 06:43, Saul Q Yuan wrote: If you havn't done so, I'd suggest you view souce and see if you have the correct javascript code rendered in you jsp. If you set staticJavascript=true in your html:javascript ... tag, then the javascript should be rendered inside your jsp. You can even put in some alert box in your validator-rules.xml file to see if the required method actually gets called. BTW, do you have javascript validation working for other type of form fields? Saul - Original Message - From: Jignesh Patel To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] Sent: Sunday, March 14, 2004 9:43 AM Subject: urgent:multibox client side validation Dear Friends, I have implemented multibox, everything is working fine. But I would like to validate the checkboxes, my purpose is atleast one checkbox will be selected from the user while submitting, if not message will be pop up. I am implementing javascript(client side) validation, My validation.xml contains following code field property=selectedMagazines depends=required arg0 key=interestsForm.selectedMagazines/ /field I have tried the code, which is posted by Yuan as follows in validator-rule.xml, but it didn't worked out. function validateRequired(form) { var isValid = true; var focusField = null; var i = 0; var fields = new Array(); oRequired = new required(); for (x in oRequired) { var field = form[oRequired[x][0]]; if (field.type == 'text' || field.type == 'textarea' || field.type == 'file' || field.type == 'select-one' || field.type == 'radio' || // -- true for single radio button, Saul Q Yuan ([EMAIL PROTECTED]) 10/28/03 field.type == 'checkbox' || // -- true for single checkbox, Saul Q Yuan ([EMAIL PROTECTED]) 10/28/03 field.type == 'password') { var value = ''; // get field's value if (field.type == select-one) { var si = field.selectedIndex; if (si = 0) { value = field.options[si].value; } // -- get value for checked single radio button or checkbox, Saul Q Yuan ([EMAIL PROTECTED]) 10/28/03 } else if (field.type == radio || field.type == checkbox) { if (field.checked) { value = field.value; } } else { value = field.value; } if (trim(value).length == 0) { if (i == 0) { focusField = field; } fields[i++] = oRequired[x][1]; isValid = false; } } else if (field.type == select-multiple) { var numOptions = field.options.length; lastSelected=-1; for(loop=numOptions-1;loop=0;loop--) { if(field.options[loop].selected) { lastSelected = loop; value = field.options[loop].value; break; } } if(lastSelected 0 || trim(value).length == 0) { if(i == 0) { focusField = field; } fields[i++] = oRequired[x][1]; isValid=false; } } else if ((field.length 0) (field[0].type == 'radio' || field[0].type == 'checkbox')) { isChecked=-1
error message display
Can anybody guide me how to show server error messages line by line rather then in a one line. -Jignesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts actions and content/type responses
Hi Friend's I am trying to upload strut1.1 on the weblogic8.1 Any body guide me for the same? -jignesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
strut1.1 installationon weblogic8.1
Hi Friend's I am trying to install strut1.1 on the weblogic8.1 Any body guide me for the same? -jignesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]