Re: The latest stable version of struts
From: "SINHA Ranjay" <[EMAIL PROTECTED]> Struts 1.1 is the one. Infact this is the last final released version. You're a little behind the times. ;) The current General Availability release is Struts 1.2.7. http://struts.apache.org/acquiring.html -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The latest stable version of struts
On 8/30/05, SINHA Ranjay <[EMAIL PROTECTED]> wrote: > > Struts 1.1 is the one. Infact this is the last final released version. Excuse me? It really isn't that hard to go to the Struts home page ( http://struts.apache.org), then click the "Acquiring" link ( http://struts.apache.org/acquiring.html), and discover that Struts 1.2.7 is the current General Availability release. Struts 1.1 was certainly a good release ... but it is not even *close* to being current. That being said, there was an implicit assumption in the original question that the most current General Availability release will have fewer bugs than the latest and greatest nightly builds. For Struts at least, that is *not* an assumption I would necessarily make -- the developers have tended to be pretty conservative about disruptive changes in a 1.x train, once the first GA release in that train has occurred. Craig Cheers > > -Original Message- > From: souravm [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 31, 2005 11:51 AM > To: Struts Users Mailing List > Subject: The latest stable version of struts > > > Hi All, > > Can anyone please let me know which is the latest stable version of > Struts to be used which has lesser bugs/problems ? > > Regards, > Sourav > > > CAUTION - Disclaimer * > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended > solely for the use of the addressee(s). If you are not the intended > recipient, please notify the sender by e-mail and delete the original > message. Further, you are not to copy, disclose, or distribute this > e-mail or its contents to any other person and any such actions are > unlawful. This e-mail may contain viruses. Infosys has taken every > reasonable precaution to minimize this risk, but is not liable for any > damage you may sustain as a result of any virus in this e-mail. You > should carry out your own virus checks before opening the e-mail or > attachment. Infosys reserves the right to monitor and review the content > of all messages sent to or from this e-mail address. Messages sent to or > from this e-mail address may be stored on the Infosys e-mail system. > ***INFOSYS End of Disclaimer INFOSYS*** > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Confidentiality Statement: > > This message is intended only for the individual or entity to which it is > addressed. It may contain privileged, confidential information which is > exempt > from disclosure under applicable laws. If you are not the intended > recipient, > please note that you are strictly prohibited from disseminating or > distributing > this information (other than to the intended recipient) or copying this > information. > If you have received this communication in error, please notify us > immediately > by return email. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
RE: The latest stable version of struts
On Wed, 2005-08-31 at 12:02 +0530, SINHA Ranjay wrote: > Struts 1.1 is the one. Infact this is the last final released version. Is this the official project's statement? So where does this put 1.2.7 and 1.3? Thanks, --Amos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The latest stable version of struts
Struts 1.1 is the one. Infact this is the last final released version. Cheers -Original Message- From: souravm [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 11:51 AM To: Struts Users Mailing List Subject: The latest stable version of struts Hi All, Can anyone please let me know which is the latest stable version of Struts to be used which has lesser bugs/problems ? Regards, Sourav CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS*** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The latest stable version of struts
Hi All, Can anyone please let me know which is the latest stable version of Struts to be used which has lesser bugs/problems ? Regards, Sourav CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS*** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
re: Testing a boolean function
Hi, Create new function in your user object: public boolean isAbleToConfigure() { return canConfigure(); } (The problem why you can't use canConfigure directly is that it doesn't satisfy the java bean spec for bean naming, and therefore can't be resolved by the tag). Regards Leon > -Ursprüngliche Nachricht- > Von: Murray Collingwood [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 31. August 2005 03:56 > An: user@struts.apache.org > Betreff: Testing a boolean function > > Hello > > I want to place a 'Configuration' link on a page if the > currently signed on user has an appropriate security level. > > My security level (as a column in my User table) is defined > as INT with a value from 0 through 10. The user needs to > have security of 10 in order to see this link. > > I have a User bean, referred to with the property name of > "currentUser" with a security function defined as: > public boolean canConfigure() { > return (security > 9); > } > > What tag library function should I be using to wrap around my > html:link so that it only appears when the user security is 10? > > Kind regards > mc > > > FOCUS Computing > Mob: 0415 24 26 24 > [EMAIL PROTECTED] > http://www.focus-computing.com.au > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.344 / Virus Database: 267.10.17/84 - Release > Date: 29/08/2005 > > > - > 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]
Fetching the form in RequestProcessor.processPreprocess?
Hello, I need to add code to trim ALL input fields in the application. The old code did this in a modified Struts, but I'd like to avoid doing this now that we upgraded to 1.2.7. We already have an implementation of a base RequestProcessor (which actually extends TilesRequesrProcessor) and I was thinking I can add this code to processPreprocess() but I don't know how to fetch the form bean (we use DynaValidatorActionForm) in that method. I'm reading through the struts document and API's but so far haven't found a clue. How can this be done? Thanks, --Amos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: core struts -- best practise fundementals
Thanks [EMAIL PROTECTED] wrote: On Tue, 2005-08-30 at 13:06 -0700, peru cheppanu wrote: > Thanks a lot Craig. That cleared up a lot. > > For the rest of 1%, I better put my question straight to the case. > > I want to display two properties on 40*10 cell table. I have these options. > 1. use a hashmap that contains 400 values. Or have four with 100 each so that > I can have identical keys. > 2. use a String that has 400 values (still have to substring on jsp) > 3. use a custom object that has two parameters, there are 400 object > instantiations in aciton class. Put this one in ActionForm. This table is > just a part of the entire display thing. > > What do you think is the best route to take? I feel that custom object thing > goes with the logic. But, I am afraid of performance. As said in the previous reply, and in many discussions and articles about programming - at this level of application programming (i.e. you are not writing some real-time multi- gigabyte network driver for a rocket launcher on a gunship) worry about performance when it hits you. Go for the "custom object" as you call it and see what you get. --Amos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Testing a boolean function
Hello I want to place a 'Configuration' link on a page if the currently signed on user has an appropriate security level. My security level (as a column in my User table) is defined as INT with a value from 0 through 10. The user needs to have security of 10 in order to see this link. I have a User bean, referred to with the property name of "currentUser" with a security function defined as: public boolean canConfigure() { return (security > 9); } What tag library function should I be using to wrap around my html:link so that it only appears when the user security is 10? Kind regards mc FOCUS Computing Mob: 0415 24 26 24 [EMAIL PROTECTED] http://www.focus-computing.com.au -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.17/84 - Release Date: 29/08/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: core struts -- best practise fundementals
On Tue, 2005-08-30 at 13:06 -0700, peru cheppanu wrote: > Thanks a lot Craig. That cleared up a lot. > > For the rest of 1%, I better put my question straight to the case. > > I want to display two properties on 40*10 cell table. I have these options. > 1. use a hashmap that contains 400 values. Or have four with 100 each so that > I can have identical keys. > 2. use a String that has 400 values (still have to substring on jsp) > 3. use a custom object that has two parameters, there are 400 object > instantiations in aciton class. Put this one in ActionForm. This table is > just a part of the entire display thing. > > What do you think is the best route to take? I feel that custom object thing > goes with the logic. But, I am afraid of performance. As said in the previous reply, and in many discussions and articles about programming - at this level of application programming (i.e. you are not writing some real-time multi- gigabyte network driver for a rocket launcher on a gunship) worry about performance when it hits you. Go for the "custom object" as you call it and see what you get. --Amos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with dynamic number of form fields
I found this article on the wiki: http://www.developer.com/java/ejb/article.php/3321521 So I will try this. Thanks, Erik -Original Message- From: [EMAIL PROTECTED] Sent: Aug 30, 2005 7:44 PM To: user@struts.apache.org Subject: Need help with dynamic number of form fields Hello all. I am not good with Dyna forms. What I am trying to accomplish is to set up a form that allows a random number of each logical field to be populated. I know this discussion came up recently, but I don't exactly know what to search for in the archives. This approximates what I am trying to do: The point is to allow the user to add as many Foos as he wants. Each time he clicks an "add" button, I provide a new field. So the ActionForm has to be able to handle an undeterminable number of Foos. What is the best way to handle this, ActionForm-wise? Can someone point me to a resource? Thanks, Erik - 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]
Need help with dynamic number of form fields
Hello all. I am not good with Dyna forms. What I am trying to accomplish is to set up a form that allows a random number of each logical field to be populated. I know this discussion came up recently, but I don't exactly know what to search for in the archives. This approximates what I am trying to do: The point is to allow the user to add as many Foos as he wants. Each time he clicks an "add" button, I provide a new field. So the ActionForm has to be able to handle an undeterminable number of Foos. What is the best way to handle this, ActionForm-wise? Can someone point me to a resource? Thanks, Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What Is the URL to Join the Discussion of JSF?
Caroline Jen wrote: I start using the JSF. But, I cannot find the place where I can join the discussion of JSF at the jakarta.apache.org. What is the exact URL? Please help. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com The MyFaces mailing lists probably are the best starting point... Sun also hosts several JSF forums on their site... Welcome to the club... Werner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: core struts -- best practise fundementals
Thanks a lot Craig. That cleared up a lot. For the rest of 1%, I better put my question straight to the case. I want to display two properties on 40*10 cell table. I have these options. 1. use a hashmap that contains 400 values. Or have four with 100 each so that I can have identical keys. 2. use a String that has 400 values (still have to substring on jsp) 3. use a custom object that has two parameters, there are 400 object instantiations in aciton class. Put this one in ActionForm. This table is just a part of the entire display thing. What do you think is the best route to take? I feel that custom object thing goes with the logic. But, I am afraid of performance. Thanks again. Craig McClanahan <[EMAIL PROTECTED]> wrote: On 8/30/05, peru cheppanu wrote: > > Thanks for replying me. > > The basic idea is knowing the need for tag libraries.. for which the > explanation was given as reusability. > > Now, coming to specific example I have given: > > I agree that it should not be a part of logic: library. But, I think one > such tag (substring) is useful in some cases. > > Say I need to populate a 40 * 10 table with two variables in each cell. I > will need a object array of size 400 with two parameters in it. ( I can have > Hashmap if I have identical keys, but say thats not the case either). > Instead I can have 400 String objects sent with some delimeter. I will save > lot of object instantiations and substring the ones with two params. What do > you think? Quite frankly, I think this particular case is worrying about the wrong problem entirely. The focus during app development should be on creating simple logic that gets the job done, and is easy to modify later because it is clearly structured. *Only* if you have performance issues related to CPU time on the middle tier where your servlet container is running will issues like object instantiations versus substringing matter -- and, even if that matters, I doubt that one solution will be particularly better than the other, because both have tradeoffs. But, you should really be focusing on figuring out what makes for a clean, understandable architecture for the entire app, and how to make sure that, over the long term, it can be maintained and enhanced. And, I would focus on writing logic that is relevant to your application, rather than infrastructure things like new tags, until you can demonstrate a need for reusable code that can't easily be met without extending the underlying framework. (And, even there, I would look for other tag libraries *before* trying to invent my own ... do not be limited in thinking that you can't combine tag libraries from multiple sources in a Struts app. Your value to your company is the unique knowledge you have about *your* application requirements. Craig McClanahan Radu Badita wrote: > > Although the previous two answers are basically correct, I don't think > they really contain the response to Peru's initial question. I hope that > the "elders" of this list will clarify things a bit for him. :-) > I considered that I'd better avoid responding myself to this, as one > that sometime ago was asking (myself and others) why should using the > or be better than using the equivalent > java code - which was also faster for me to do than learning the new > tags > Still... In this specific case, maybe the answer is not writing a whole > new custom tag at all. It wouldn't be very efficient anyway, especially > if the "parsing" mentioned is done in one or two particular places only. > It might show that maybe a model layer does not exist for the > application, and maybe the data is directly retrieved from a (probably > legacy) database. (Forgive me if I'm wrong.) At least that parsing could > be done in the Action that prepares the view, and the data stored in a > form that is easier to display. > Even if you will still chose to use a custom tag for that, attaching it > to the struts standard "logic" taglib wouldn't be a good choice ( if > that was what you meant by a tag used as > > ) > > Radu > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > Start your day with Yahoo! - make it your home page > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: core struts -- best practise fundementals
On 8/30/05, peru cheppanu <[EMAIL PROTECTED]> wrote: > > Thanks for replying me. > > The basic idea is knowing the need for tag libraries.. for which the > explanation was given as reusability. > > Now, coming to specific example I have given: > > I agree that it should not be a part of logic: library. But, I think one > such tag (substring) is useful in some cases. > > Say I need to populate a 40 * 10 table with two variables in each cell. I > will need a object array of size 400 with two parameters in it. ( I can have > Hashmap if I have identical keys, but say thats not the case either). > Instead I can have 400 String objects sent with some delimeter. I will save > lot of object instantiations and substring the ones with two params. What do > you think? Quite frankly, I think this particular case is worrying about the wrong problem entirely. The focus during app development should be on creating simple logic that gets the job done, and is easy to modify later because it is clearly structured. *Only* if you have performance issues related to CPU time on the middle tier where your servlet container is running will issues like object instantiations versus substringing matter -- and, even if that matters, I doubt that one solution will be particularly better than the other, because both have tradeoffs. But, you should really be focusing on figuring out what makes for a clean, understandable architecture for the entire app, and how to make sure that, over the long term, it can be maintained and enhanced. And, I would focus on writing logic that is relevant to your application, rather than infrastructure things like new tags, until you can demonstrate a need for reusable code that can't easily be met without extending the underlying framework. (And, even there, I would look for other tag libraries *before* trying to invent my own ... do not be limited in thinking that you can't combine tag libraries from multiple sources in a Struts app. Your value to your company is the unique knowledge you have about *your* application requirements. Craig McClanahan Radu Badita <[EMAIL PROTECTED]> wrote: > > Although the previous two answers are basically correct, I don't think > they really contain the response to Peru's initial question. I hope that > the "elders" of this list will clarify things a bit for him. :-) > I considered that I'd better avoid responding myself to this, as one > that sometime ago was asking (myself and others) why should using the > or be better than using the equivalent > java code - which was also faster for me to do than learning the new > tags > Still... In this specific case, maybe the answer is not writing a whole > new custom tag at all. It wouldn't be very efficient anyway, especially > if the "parsing" mentioned is done in one or two particular places only. > It might show that maybe a model layer does not exist for the > application, and maybe the data is directly retrieved from a (probably > legacy) database. (Forgive me if I'm wrong.) At least that parsing could > be done in the Action that prepares the view, and the data stored in a > form that is easier to display. > Even if you will still chose to use a custom tag for that, attaching it > to the struts standard "logic" taglib wouldn't be a good choice ( if > that was what you meant by a tag used as > > ) > > Radu > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > Start your day with Yahoo! - make it your home page >
Re: core struts -- best practise fundementals
Thanks for replying me. The basic idea is knowing the need for tag libraries.. for which the explanation was given as reusability. Now, coming to specific example I have given: I agree that it should not be a part of logic: library. But, I think one such tag (substring) is useful in some cases. Say I need to populate a 40 * 10 table with two variables in each cell. I will need a object array of size 400 with two parameters in it. ( I can have Hashmap if I have identical keys, but say thats not the case either). Instead I can have 400 String objects sent with some delimeter. I will save lot of object instantiations and substring the ones with two params. What do you think? Radu Badita <[EMAIL PROTECTED]> wrote: Although the previous two answers are basically correct, I don't think they really contain the response to Peru's initial question. I hope that the "elders" of this list will clarify things a bit for him. :-) I considered that I'd better avoid responding myself to this, as one that sometime ago was asking (myself and others) why should using the or be better than using the equivalent java code - which was also faster for me to do than learning the new tags Still... In this specific case, maybe the answer is not writing a whole new custom tag at all. It wouldn't be very efficient anyway, especially if the "parsing" mentioned is done in one or two particular places only. It might show that maybe a model layer does not exist for the application, and maybe the data is directly retrieved from a (probably legacy) database. (Forgive me if I'm wrong.) At least that parsing could be done in the Action that prepares the view, and the data stored in a form that is easier to display. Even if you will still chose to use a custom tag for that, attaching it to the struts standard "logic" taglib wouldn't be a good choice ( if that was what you meant by a tag used as ) Radu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Start your day with Yahoo! - make it your home page
Re: debugging tomcat with eclipse
Thanks a lot. I had to add the source to the path. Regards, Jay On 8/28/05, zheng chengbao <[EMAIL PROTECTED]> wrote: > > i'am using myeclipse,it is very easy to debug > > 2005/8/27, Jay Sheth <[EMAIL PROTECTED]>: > > > > HI, > > > > It would be great if you could give some hints on how to debug tomcat > > with eclipse. > > > > I have tried the following: > > > > * Running tomcat with option jpda start and then running a remote java > > application to debug but doesn't work. > > * Running the tomcat application with start option. When I run the > > webapp, the break point is caught in the code, however it doesn't let > > me evaluate expression/ see the details of variable, saying "The > > selected stack frame must be associated with a java project in the > > workspace to perform an evaluation". > > > > > > The project is already in eclipse. We are copying the jar file to the > > tomcat lib folder and then running the tomcat app. > > > > Any help / pointers would be useful. > > > > Thanks, > > Jay > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > >