RE: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]
I agree with Craig here... He is quiet right about the mailing problem... I had been using my company id and have been told by them to unsubscribe from the due to the volume of messages coming in. Despite the volume if the mails had something to defend I could've done it. But the never ending flow of OTs like these which are of no use to anyone is not quiet the way anyone would like! Friday of the week is over... At least from this point on let us cut this off. Regards, Nitesh _ Disclaimer: Information contained and transmitted by this e-mail is confidential, proprietary, and legally privileged data of Cordiant Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator. Any views expressed by an individual do not necessarily reflect the view of Cordiant Technologies. The recipient should scan this email and any attachments for viruses as Cordiant Technologies is not liable for the presence of viruses in this email. Cordiant Technologies does not accept liability for any errors or omissions as the internet communications cannot be guaranteed to be timely, secure, error or virus-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete. To know more about Cordiant Technologies, please visit http://www.cordiant.com _ -Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Saturday, July 09, 2005 4:04 AM To: Struts Users Mailing List Subject: Re: [OT] Re: Fired was...Re: Struts Books Recommendations [OT] On 7/8/05, James Mitchell [EMAIL PROTECTED] wrote: Andrew, you must be new here. See, on Fridays (usually), we like to cut up and have a little fun. I think I've donated enough blood on this list to deserve a break every now and then. And perhaps its time to reign in the freedom to cut up a little on Fridays. With freedom comes responsibility, and there's been way too many abuses of that freedom lately (including this thread). If you don't like wasting time with [OT] posts, filter them. Every decent mail client will allow you to do that. Note that filtering is not a complete answer. Consider a scenario where you are subscribed to a list like this from your company email address, where you have (explicitly or implicitly) agreed to whatever terms of use your company's IT department imposes on you. In more than a few companies, incoming email messages are scanned for inappropriate content -- and you could be violating the policies even if you have a personal filter set up so that *you* don't have to read the messages. But I didn't read it isn't going to be a very useful defense -- any more than if your mom caught you reading Playboy when growing up, and you tried but I didn't look at the pictures, I was only reading the articles! I'd like to point you at a blog written recently by an industry colleague, who has been observing what's going on here: http://www.groundside.com/blog/content/DuncanMills/J2EE%20Development/2005/0 7/08/Respect.html Even though Duncan works for a company that competes with my employer, and builds a tool that is competitive with the one I work on, I still consider him a friend, like many things about his product, and collaborate with him where possible to improve the overall state of the industry. I wholeheartedly subscribe to his comments about respect, and would like to see a return to the way that the Struts user list worked (nearly all of the time) until fairly recently -- where respect was the norm. Today it is not ... and even in jest many of the comments are innappropriate and embarrasing (to the rest of the community, for having to be associated with it). If you're only here for the Friday [OT] humor, then I suggest you find a different place to cut loose. The purpose of this list is to answer user questions about Struts and all its related technologies -- and you'll sure like how you look on a Google search ten years from now for your name if you've posted like a mature adult instead of an immature 8-year-old. Craig McClanahan - 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: Struts and Generics
Generics is a Java 5.0 feature... Don't think the features with 5.0 are introduced to Struts framework yet! Thanks Regards, Nitesh _ Disclaimer: Information contained and transmitted by this e-mail is confidential, proprietary, and legally privileged data of Cordiant Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator. Any views expressed by an individual do not necessarily reflect the view of Cordiant Technologies. The recipient should scan this email and any attachments for viruses as Cordiant Technologies is not liable for the presence of viruses in this email. Cordiant Technologies does not accept liability for any errors or omissions as the internet communications cannot be guaranteed to be timely, secure, error or virus-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete. To know more about Cordiant Technologies, please visit http://www.cordiant.com _ -Original Message- From: Kent Boogaart [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 06, 2005 1:11 PM To: user@struts.apache.org Subject: Struts and Generics Hi there, I'm wondering whether it's possible to use generics with struts. Something like: form-bean name=test type=org.apache.struts.validator.DynaValidatorForm form-property name=users type=java.util.ArrayListtestpackage.User/ /form-bean I tried doing this (with my class names of course) and I get this exception on startup: javax.servlet.ServletException: Can't get definitions factory from context. Thanks, Kent - 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: Question re html:select on the client
You could use JavaScript to submit the form on clicking the link. Have a hidden field to track which link is clicked. For e.g.. Use this function in the link... function clickLink(linkId) { document.formName.hiddenElementName.value=linkId; document.formName.submit(); } PS: you need to make sure there are no fields in your form with the name - submit HTH, Nitesh _ Disclaimer: Information contained and transmitted by this e-mail is confidential, proprietary, and legally privileged data of Cordiant Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator. Any views expressed by an individual do not necessarily reflect the view of Cordiant Technologies. The recipient should scan this email and any attachments for viruses as Cordiant Technologies is not liable for the presence of viruses in this email. Cordiant Technologies does not accept liability for any errors or omissions as the internet communications cannot be guaranteed to be timely, secure, error or virus-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete. To know more about Cordiant Technologies, please visit http://www.cordiant.com _ -Original Message- From: Kent Boogaart [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 10:20 AM To: user@struts.apache.org Subject: Question re html:select on the client Hello, I have an html:select populated from a collection. Alongside the select box I have links to add, edit and delete items. I'm just wondering what the best way is to handle passing the ID of the selected item to the edit and delete actions. For example, if the user selects the option with value 12, I'd like to forward to something like /editAction?id=12. Is there some way to tell the html:link tag to dynamically construct the querystring on the client? Thanks, Kent - 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: howto with validator
Well... You need not extend the validator plugin. You could write your custom validator class and write a method in that... For eg. You could specify this in your validator-rule.xml... validator name=whatever classname=com.myvalidation.FieldChecks method=validateWhatever All you need to have now is a class FieldChecks in the given package and a method as specified. Now you have the validation. You could use this validation - 'whatever' - in your validation.xml HTH, Nitesh _ Disclaimer: Information contained and transmitted by this e-mail is confidential, proprietary, and legally privileged data of Cordiant Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator. Any views expressed by an individual do not necessarily reflect the view of Cordiant Technologies. The recipient should scan this email and any attachments for viruses as Cordiant Technologies is not liable for the presence of viruses in this email. Cordiant Technologies does not accept liability for any errors or omissions as the internet communications cannot be guaranteed to be timely, secure, error or virus-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete. To know more about Cordiant Technologies, please visit http://www.cordiant.com _ -Original Message- From: Dewitte Rémi [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 05, 2005 4:36 PM To: Struts Users Mailing List Subject: Re: howto with validator Ok thanks, i'll try to achieve with the validator-rule.xml. But if i can't you suggest me to extends the plugin validator to include more specific rules, didn't you ? Rémi Le Mardi 5 Juillet 2005 07:45, Nitesh Naveen a écrit : You could do this with validator and indexed properties. When using indexed properties, JavaScript validations doesn't work. However the server side validations does. This should suffice what you need... In case you have some validations that involve business logic, you could add more validations, customize the validator-rule.xml add your own validation there point it to a custom validator method in the validator you have coded. HTH, Nitesh _ Disclaimer: Information contained and transmitted by this e-mail is confidential, proprietary, and legally privileged data of Cordiant Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator. Any views expressed by an individual do not necessarily reflect the view of Cordiant Technologies. The recipient should scan this email and any attachments for viruses as Cordiant Technologies is not liable for the presence of viruses in this email. Cordiant Technologies does not accept liability for any errors or omissions as the internet communications cannot be guaranteed to be timely, secure, error or virus-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete. To know more about Cordiant Technologies, please visit http://www.cordiant.com _ -Original Message- From: Dewitte Rémi [mailto:[EMAIL PROTECTED] Sent: Monday, July 04, 2005 9:21 PM To: Struts Users Mailing List Subject: howto with validator Hello everybody ! I have some howto questions related to validator. I'd like to do some checks on my form : 1) in a multibox question, i'd like to check at least 2 are checked and at most 4. 2) I have a mapped property, I'd like to check every mymap(key) is answered. 3) I have a form property of type java.lang.String[], which is an array of names(html:text property=names[0]/). I'd like to check all the names with usual validator features. Is it possible with the validator or may I make it in my actionForm ? Thanks Rémi - 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: Velocity Question
You could probably use format macro for formatting the number... http://www.atlassian.com/software/jira/docs/api/3.1.1/com/atlassian/jira/uti l/velocity/NumberTool.html http://www.opensubscriber.com/message/velocity-user@jakarta.apache.org/14631 34.html Thanks Regards, Nitesh _ Disclaimer: Information contained and transmitted by this e-mail is confidential, proprietary, and legally privileged data of Cordiant Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator. Any views expressed by an individual do not necessarily reflect the view of Cordiant Technologies. The recipient should scan this email and any attachments for viruses as Cordiant Technologies is not liable for the presence of viruses in this email. Cordiant Technologies does not accept liability for any errors or omissions as the internet communications cannot be guaranteed to be timely, secure, error or virus-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete. To know more about Cordiant Technologies, please visit http://www.cordiant.com _ -Original Message- From: Lucas Bern [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 06, 2005 8:20 AM To: Struts Users Mailing List Subject: Re: Velocity Question HI! I´m not sre what you mean... but StringUtils is not an abstract class, so you could put in the context of Velocity an instance of StringUtils velContext.put(StringUtils, new StringUtils() ); In your template... $StringUtils.leftPad( $car.id, 6, '0') $StringUtils.leftPad( $car.na000me, 15, ' ') wish it helps... Lucas Vinicius Caldeira Carvalho [EMAIL PROTECTED] escribió: Sorry for the OT. But since they're kinda related ... Does velocity provides a way to fill gaps on my variables? Translating... I have a pojo car, which has ID and Name Id must have size 6 with zero left padd, and Name 15 with with white spaces padding. Now let's suppose I have: Car beetle = new Car(1,beetle); When printing: $car.id $car.name I get 1 beetle When the desirable would be: 1 beetle This is for reporting purposes Thanks all - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ActionForm reset() and redirect.
Try putting in some logic where ever you are assigning the value... like if it is not set then set it to false... if it is already set don't touch it! HTH Nitesh -Original Message- From: Ben [mailto:[EMAIL PROTECTED] Sent: Monday, July 04, 2005 1:05 PM To: Struts Subject: ActionForm reset() and redirect. Hi My form has some boolean properties and I set them to false in the reset method. The Action that handles the form has redirect attribute as true, i.e if there is an error, it redirects to the same page that has the form with errors. When it redirects with errors, the form retains values for other properties except the boolean ones. What I can do to fix this? If I don't set the boolean properties to false in the reset method, the form works fine. Please help, thanks. Ben - 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: howto with validator
You could do this with validator and indexed properties. When using indexed properties, JavaScript validations doesn't work. However the server side validations does. This should suffice what you need... In case you have some validations that involve business logic, you could add more validations, customize the validator-rule.xml add your own validation there point it to a custom validator method in the validator you have coded. HTH, Nitesh _ Disclaimer: Information contained and transmitted by this e-mail is confidential, proprietary, and legally privileged data of Cordiant Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator. Any views expressed by an individual do not necessarily reflect the view of Cordiant Technologies. The recipient should scan this email and any attachments for viruses as Cordiant Technologies is not liable for the presence of viruses in this email. Cordiant Technologies does not accept liability for any errors or omissions as the internet communications cannot be guaranteed to be timely, secure, error or virus-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete. To know more about Cordiant Technologies, please visit http://www.cordiant.com _ -Original Message- From: Dewitte Rémi [mailto:[EMAIL PROTECTED] Sent: Monday, July 04, 2005 9:21 PM To: Struts Users Mailing List Subject: howto with validator Hello everybody ! I have some howto questions related to validator. I'd like to do some checks on my form : 1) in a multibox question, i'd like to check at least 2 are checked and at most 4. 2) I have a mapped property, I'd like to check every mymap(key) is answered. 3) I have a form property of type java.lang.String[], which is an array of names(html:text property=names[0]/). I'd like to check all the names with usual validator features. Is it possible with the validator or may I make it in my actionForm ? Thanks Rémi - 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: deal with nested properties
You should probably have... form-bean name=questionnaireForm type=org.apache.struts.validator.DynaValidatorForm form-property name=page type=java.lang.Integer initial=1/ form-property name=firstName type=java.lang.String initial=Nom / form-property name=lastName type=java.lang.String / form-property name=child type=java.lang.String initial=N/ form-property name=numChild type=java.lang.Integer initial=0/ form-property name= children type=package.Personne[] / /form-bean HTH Nitesh -Original Message- From: Dewitte Rémi [mailto:[EMAIL PROTECTED] Sent: Friday, July 01, 2005 5:54 PM To: Struts Users Mailing List Subject: deal with nested properties Hi all ! I have another problem to submit : Here is my bean form-bean name=questionnaireForm type=org.apache.struts.validator.DynaValidatorForm form-property name=page type=java.lang.Integer initial=1/ form-property name=firstName type=java.lang.String initial=Nom / form-property name=lastName type=java.lang.String / form-property name=child type=java.lang.String initial=N/ form-property name=numChild type=java.lang.Integer initial=0/ /form-bean where Personne is a class of two attributes {name,age} with their getters and setters. In my jsp, I try do do this : bean:define id=numChild name=questionnaireForm property=numChild type=java.lang.Integer/ c:forEach begin=1 end='%=numChild.intValue()%' var=ind bean:define name=ind id=ind2 type=java.lang.Integer/ tr tdbean:write name=ind//td tdhtml:text property='%=children[+(ind2.intValue()-1)+].name%' size=30 maxlength=30//td tdhtml:text property='%=children[+(ind2.intValue()-1)+].age%' size=30 maxlength=30//td /tr /c:forEach And i get this error : No getter method for property children[0].name of bean org.apache.struts.taglib.html.BEAN Following the Struts FAQ for Indexed properties, it seems it should work... Please tell me what I missed. Rémi - 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]