Sorting of array lists
Hi all, I have a doubt regarding sorting in array List. I have an array List which contains array list objects of type Plan. The Plan object contains 3 variables : plantitle ,plandescription and planname. I have to sort the arraylist based on the plantitle first and then based on the plandescription. ArrayList list = new ArrayList(); Plan planobj = null; For (i= 1, i=100, i++){ planObj = readPlanObjectFromDB(); list.add(planObj); } //?? Now how to sort it Private Plan readPlanObjectFromDB(){ //queries the database to return plan object return plan; } I am totally confused. Even if use bubble sorting it will cause a lot of performance issues. Could any one please suggest me a good method? Regards, Krishna Mohan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: logic iterate help
Hi Richards, logic:iterate name=put name of the session file here property=rUser id=idRuser bean:write name=idRuser property=username bean:write name=idRuser property=password /logic:iterate Make sure that class Ruser has getter and setter methods too Regards, Krishna Mohan -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 3:52 PM To: Struts Users Mailing List Subject: logic iterate help Hello Guys, I have a user obj at sessionScope. Now this object have an field/object in it of type ArrayList named rusers. Arraylist rusers contains an array of object public class RUser { private String username = ; private String password = ; . . . How do i display the username using logic iterate. Please help Thanks Richard - 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]
Regarding HTML:options tag
HI, I have one doubt regarding the use of html:options tag. In the jsp itself I have got a set of values like List questions= SOME VALUE OBTAINED FROM THE DATABASE- ie name value pairs. In the jsp I have a html:options tag. html:options name= %= questions % property=What do I give here labelProperty= What do I give here to obtain the labels / I don't have any entries in the form bean for the collection . Only entry I have in the form bean corresponds to the property name I have given in the select tag. Can anyone help Regards, Krishna MOhan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regarding LOGIC tags
Hi all, I have a very simple doubt on struts equal tag. The tag is like this logic:equal name=planModel property=plandesc1 value=planDesc2 /logic:equal Here planDesc1 and planDesc2 are both beans of the same class planModel. Can I have a comparison with 2 beans of the same class. I heard that logic equal comparison has to be done to a constant valu. Any other method to do this. Regards, Krishna Mohan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Putting a field into the REQUEST
HI David, I will explain what I meant. SavePlanProfileAction.java is a action class and not actionform. In the JSP I am using a hidden text field html:hidden property=regularPlan value=true/ Now I am submitting this JSP to SavePlanProfileAction.java. In the SavePlanProfileAction.java action class I want to get the value of the text field called regularPlan. The important thing is that the ActionForm associated with is called PlanForm.java. In that there is no field called regularPlan. ie, this hidden text field is not there in the ActionForm. So I thought that if I put any text field in the JSP and when I am submitting it will be present in the request attribute. So in the Action class I try to retrieve the value using getRequestAttribute(regularPlan); This didn't work Regards, Krishna Mohan -Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: Saturday, January 08, 2005 1:03 PM To: Struts Users Mailing List Subject: Re: Putting a field into the REQUEST snip On Fri, 7 Jan 2005 18:35:44 -0500, David G. Friedman [EMAIL PROTECTED] wrote: The explanation you gave made some things clear. If I understand you correctly, you have a field in the SavePlanProfileAction.java class that you want to display in the JSP. /snip David, he wants to get the hidden value in the Action class: he is processing and not displaying the hidden parameter. He already has the answer from Jim Barrows. Jack -- -- You can lead a horse to water but you cannot make it float on its back. ~Dakota Jack~ You can't wake a person who is pretending to be asleep. ~Native Proverb~ Each man is good in His sight. It is not necessary for eagles to be crows. ~Hunkesni (Sitting Bull), Hunkpapa Sioux~ --- This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. - 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: formatting of strings
HI Pavell, The class of telefoneno is String. Can we do a similar type of formatting using String. Any ideas? INFOSYS TECHNOLOGIES LIMITED 3rd Floor | Bhavani Technopark | Trivandrum 695 581 | India Phone +91 471 2700888 Extn 7365 | Mobile: +919895532610 [EMAIL PROTECTED]| www.infosys.com -Original Message- From: Pavel Kolesnikov [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 4:19 PM To: Struts Users Mailing List Subject: Re: formatting of strings Krishna, what's the class of your telefoneno property? The format attribute is used only if the value to be displayed is NOT instance of java.lang.String. Pavel On Thu, 6 Jan 2005 18:56:23 +0530, Krishna Mohan Radhakrishnan [EMAIL PROTECTED] wrote: Sorry Tommy, The thing that u said simple didn't not work out.. Do u have any other ideas. Are u sure that it is # only. Or is it any other character.. INFOSYS TECHNOLOGIES LIMITED 3rd Floor | Bhavani Technopark | Trivandrum 695 581 | India Phone +91 471 2700888 Extn 7365 | Mobile: +919895532610 [EMAIL PROTECTED]| www.infosys.com -Original Message- From: Tommy Holm - TELMORE [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 2:59 PM To: Struts Users Mailing List Subject: SV: formatting of strings Hi It's actually very simple. bean:write name=address property=telephoneno format=###-###-#/ A better solution would be to create a ressource bundle - lets say TelephoneFormatResources.properties and create an entry in that file- something like format1=###-###- The use the bundle instead bean:write name=address property=telephoneno bundle=TelephoneFormatResources formatKey=###-###-#/ It will then take the format from the bundle instead of the jsp page directly. The advantage is that if you change the format, then you just have to change it one place, instead of changing the format in all jsp pages! Cheers -Oprindelig meddelelse- Fra: Krishna Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sendt: 6. januar 2005 09:08 Til: Struts Users Mailing List Emne: formatting of strings Hi all, I have a class called address. I want to display the the telephone number from it. The below mentioned is the code. But from the address class we will retrieve it as 10 digit string. bean:write name=address property=telephoneno/ For example if 9845612345 is the number I want to display it as follows. 984-561-2345 Is there any idea of how to format the string in this fashion Regards, Krishna Mohan R - 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]
formatting of strings
Hi all, I have a class called address. I want to display the the telephone number from it. The below mentioned is the code. But from the address class we will retrieve it as 10 digit string. bean:write name=address property=telephoneno/ For example if 9845612345 is the number I want to display it as follows. 984-561-2345 Is there any idea of how to format the string in this fashion Regards, Krishna Mohan R - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: formatting of strings
Sorry Tommy, The thing that u said simple didn't not work out.. Do u have any other ideas. Are u sure that it is # only. Or is it any other character.. INFOSYS TECHNOLOGIES LIMITED 3rd Floor | Bhavani Technopark | Trivandrum 695 581 | India Phone +91 471 2700888 Extn 7365 | Mobile: +919895532610 [EMAIL PROTECTED]| www.infosys.com -Original Message- From: Tommy Holm - TELMORE [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 2:59 PM To: Struts Users Mailing List Subject: SV: formatting of strings Hi It's actually very simple. bean:write name=address property=telephoneno format=###-###-#/ A better solution would be to create a ressource bundle - lets say TelephoneFormatResources.properties and create an entry in that file- something like format1=###-###- The use the bundle instead bean:write name=address property=telephoneno bundle=TelephoneFormatResources formatKey=###-###-#/ It will then take the format from the bundle instead of the jsp page directly. The advantage is that if you change the format, then you just have to change it one place, instead of changing the format in all jsp pages! Cheers -Oprindelig meddelelse- Fra: Krishna Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sendt: 6. januar 2005 09:08 Til: Struts Users Mailing List Emne: formatting of strings Hi all, I have a class called address. I want to display the the telephone number from it. The below mentioned is the code. But from the address class we will retrieve it as 10 digit string. bean:write name=address property=telephoneno/ For example if 9845612345 is the number I want to display it as follows. 984-561-2345 Is there any idea of how to format the string in this fashion Regards, Krishna Mohan R - 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: formatting of strings
No erik, I didn't use any format key bundles as such. I used the format property and not formatKey. I don't know how to create a bundle called TelephoneFormatResources bean:write name=address property=telephoneno format=###-###-#/ This is how I used the bean. Regards Krishna Mohan R -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 7:24 AM To: Struts Users Mailing List Subject: Re: formatting of strings Are you sure it's not formatKey=format1 instead of formatKey=###-##-? For example: bean:write name=address property=telephoneno bundle=TelephoneFormatResources formatKey=format1/ (assuming the bundle exists, has the key format1 which has the value ###-##-) instead of: bean:write name=address property=telephoneno bundle=TelephoneFormatResources formatKey=###-###-#/ Makes more sense to me . . . Erik Krishna Mohan Radhakrishnan wrote: Sorry Tommy, The thing that u said simple didn't not work out.. Do u have any other ideas. Are u sure that it is # only. Or is it any other character.. INFOSYS TECHNOLOGIES LIMITED 3rd Floor | Bhavani Technopark | Trivandrum 695 581 | India Phone +91 471 2700888 Extn 7365 | Mobile: +919895532610 [EMAIL PROTECTED]| www.infosys.com -Original Message- From: Tommy Holm - TELMORE [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 2:59 PM To: Struts Users Mailing List Subject: SV: formatting of strings Hi It's actually very simple. bean:write name=address property=telephoneno format=###-###-#/ A better solution would be to create a ressource bundle - lets say TelephoneFormatResources.properties and create an entry in that file- something like format1=###-###- The use the bundle instead bean:write name=address property=telephoneno bundle=TelephoneFormatResources formatKey=###-###-#/ It will then take the format from the bundle instead of the jsp page directly. The advantage is that if you change the format, then you just have to change it one place, instead of changing the format in all jsp pages! Cheers -Oprindelig meddelelse- Fra: Krishna Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sendt: 6. januar 2005 09:08 Til: Struts Users Mailing List Emne: formatting of strings Hi all, I have a class called address. I want to display the the telephone number from it. The below mentioned is the code. But from the address class we will retrieve it as 10 digit string. bean:write name=address property=telephoneno/ For example if 9845612345 is the number I want to display it as follows. 984-561-2345 Is there any idea of how to format the string in this fashion Regards, Krishna Mohan R - 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]
Putting a field into the REQUEST
Hi all, Could any body tell me why does this error occur? /acctmgmt/updatePlanProfileContent.jsp(159): The TLD description for tag 'hidden' requires that the body be empty. probably occurred due to an error in /acctmgmt/updatePlanProfileContent.jsp line 159: html:hidden property=regularPlan value=true I wanted to set a hidden field in the updatePlanProfileContent.jsp, so that while submitting it is available in the request. I tred with a simple HTML input type tag and stil it is not set in the request. Please somebody tell me how to put a value into the request object through Struts tags or via simple HTML tags. Regards, Krishna Mohan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Putting a field into the REQUEST
Hi David, Thanx it is working. But my original problem still exists. The request does not contain this field. But if I am using a java scriptlet like % request.setAttribute(regularPlan,true); % Then it is working I want to do a similar operation in struts. Any idea? Regards, Krishna Mohan -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 10:37 AM To: Struts Users Mailing List Subject: RE: Putting a field into the REQUEST Try a closing slash so your line: html:hidden property=regularPlan value=true Becomes: html:hidden property=regularPlan value=true / ^^^ Regards, David -Original Message- From: Krishna Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 11:55 PM To: Struts Users Mailing List Subject: Putting a field into the REQUEST Hi all, Could any body tell me why does this error occur? /acctmgmt/updatePlanProfileContent.jsp(159): The TLD description for tag 'hidden' requires that the body be empty. probably occurred due to an error in /acctmgmt/updatePlanProfileContent.jsp line 159: html:hidden property=regularPlan value=true I wanted to set a hidden field in the updatePlanProfileContent.jsp, so that while submitting it is available in the request. I tred with a simple HTML input type tag and stil it is not set in the request. Please somebody tell me how to put a value into the request object through Struts tags or via simple HTML tags. Regards, Krishna Mohan - 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: Putting a field into the REQUEST
Hi David, My problem is that there is a JSP called updatePlanProfileContent.jsp I submit this JSP to a action class named SavePlanProfileAction.java. There is a hidden field called regularPlan in the JSP which is not related to any form. I just want to retrieve the value of this hidden field in the SavePlanProfileAction.java. In the SavePlanProfileAction.java I want to retrieve the value of the hidden field. Sounds very simple. But since I am newbie I am unable to get a solution Regards Krishna Mohan -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 11:20 AM To: Struts Users Mailing List Subject: RE: Putting a field into the REQUEST Krishan, The error code you gave and the description of the problem do not match. If your code only works when you do this: % request.setAttribute(regularPlan,true); %' Then you cannot be using this tag: html:hidden property=regularPlan value=true / But something more like this: html:hidden name=regularPlan / Why? Because skipping the name=... attribute forces the tag to use the current ActionForm specified by the html:form tag you are enclosing everything within. If you use the name field, it looks for an object in the various scopes (page, request, session, attribute) matching that name and tries to retrieve it's value). I've used this before to essentially import fields into a form for submittal to a new Action. See the manual for the html taglib (specifically html:hidden) for more detail: http://struts.apache.org/userGuide/struts-html.html#hidden Regards, David -Original Message- From: Krishna Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 12:13 AM To: Struts Users Mailing List Subject: RE: Putting a field into the REQUEST Hi David, Thanx it is working. But my original problem still exists. The request does not contain this field. But if I am using a java scriptlet like % request.setAttribute(regularPlan,true); %Then it is working I want to do a similar operation in struts. Any idea? Regards, Krishna Mohan -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 10:37 AM To: Struts Users Mailing List Subject: RE: Putting a field into the REQUEST Try a closing slash so your line: html:hidden property=regularPlan value=true Becomes: html:hidden property=regularPlan value=true / ^^^ Regards, David -Original Message- From: Krishna Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 11:55 PM To: Struts Users Mailing List Subject: Putting a field into the REQUEST Hi all, Could any body tell me why does this error occur? /acctmgmt/updatePlanProfileContent.jsp(159): The TLD description for tag 'hidden' requires that the body be empty. probably occurred due to an error in /acctmgmt/updatePlanProfileContent.jsp line 159: html:hidden property=regularPlan value=true I wanted to set a hidden field in the updatePlanProfileContent.jsp, so that while submitting it is available in the request. I tred with a simple HTML input type tag and stil it is not set in the request. Please somebody tell me how to put a value into the request object through Struts tags or via simple HTML tags. Regards, Krishna Mohan - 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: Putting a field into the REQUEST
HI David, Moreover when I tried to create a hidden field in this manner html:hidden name=regularPlan value=true/ It showed up an error. /acctmgmt/updatePlanProfileContent.jsp(159): required attribute 'property' not specified for tag 'hidden' probably occurred due to an error in /acctmgmt/updatePlanProfileContent.jsp line 159: html:hidden name=regularPlan value=true/ Regards Krishna Mohan -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 11:20 AM To: Struts Users Mailing List Subject: RE: Putting a field into the REQUEST Krishan, The error code you gave and the description of the problem do not match. If your code only works when you do this: % request.setAttribute(regularPlan,true); %' Then you cannot be using this tag: html:hidden property=regularPlan value=true / But something more like this: html:hidden name=regularPlan / Why? Because skipping the name=... attribute forces the tag to use the current ActionForm specified by the html:form tag you are enclosing everything within. If you use the name field, it looks for an object in the various scopes (page, request, session, attribute) matching that name and tries to retrieve it's value). I've used this before to essentially import fields into a form for submittal to a new Action. See the manual for the html taglib (specifically html:hidden) for more detail: http://struts.apache.org/userGuide/struts-html.html#hidden Regards, David -Original Message- From: Krishna Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 12:13 AM To: Struts Users Mailing List Subject: RE: Putting a field into the REQUEST Hi David, Thanx it is working. But my original problem still exists. The request does not contain this field. But if I am using a java scriptlet like % request.setAttribute(regularPlan,true); %Then it is working I want to do a similar operation in struts. Any idea? Regards, Krishna Mohan -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 10:37 AM To: Struts Users Mailing List Subject: RE: Putting a field into the REQUEST Try a closing slash so your line: html:hidden property=regularPlan value=true Becomes: html:hidden property=regularPlan value=true / ^^^ Regards, David -Original Message- From: Krishna Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 11:55 PM To: Struts Users Mailing List Subject: Putting a field into the REQUEST Hi all, Could any body tell me why does this error occur? /acctmgmt/updatePlanProfileContent.jsp(159): The TLD description for tag 'hidden' requires that the body be empty. probably occurred due to an error in /acctmgmt/updatePlanProfileContent.jsp line 159: html:hidden property=regularPlan value=true I wanted to set a hidden field in the updatePlanProfileContent.jsp, so that while submitting it is available in the request. I tred with a simple HTML input type tag and stil it is not set in the request. Please somebody tell me how to put a value into the request object through Struts tags or via simple HTML tags. Regards, Krishna Mohan - 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]
How to pass a request variable to a frame set
Hi all, I have a java clas called PlanAction.java. I am forwarding to a JSP called Offerings.jsp. But Offerings.jsp contains a frameset which include another JSP called Plan.jsp. I need the request attribute set in the PlanAction.java to be available in the Plan.jsp. I found that request attribute is available in Offerings.jsp but not available in Plan.jsp. Is there any method to get the request attribute in Plan.jsp Regards, Krishna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HOw to avoid validations for certain submit buttons on a singleform?
Sorry Hubert, I tried with validate=false also. It is not working. Moreover when I press Inactivate button, before going to the Inactivate Plan Action class it is going to the validator rules.xml and does the validation. So somehow I want to disable the form validations when I click the Inactivate button. Regards, Krishna Mohan From: Cliff [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 7:36 AM To: Struts Users Mailing List; Hubert Rabago Subject: Re: HOw to avoid validations for certain submit buttons on a singleform? Hi, Could I ask where to set the bCancel ? as a parameter in the request ?? Thx a lot. Cliff - Original Message - From: Hubert Rabago [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, January 05, 2005 2:27 AM Subject: Re: HOw to avoid validations for certain submit buttons on a single form? Like Jim said, take a look at the validate=false attribute for the /InactivatePlanAction. Also, the javascript validation will kick in by default. You can add an onClick handler to the Inactivate button to set bCancel=true; so the javascript validation is skipped. Hubert On Tue, 4 Jan 2005 10:19:06 -0700, Jim Barrows [EMAIL PROTECTED] wrote: -Original Message- From: Krishna Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 9:28 AM To: Struts Users Mailing List Subject: HOw to avoid validations for certain submit buttons on a single form? But can I achieve the result in a single Actionform. Yes. Read the validation and struts-config documentation and DTD's for further details. Something about validate being false. - 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: HOw to avoid validations for certain submit buttons on a singleform?
Hi all, A very simple question. logic:equal .. logic:equal.. ... . /logic:equal.. /logic:equal.. The above code is just like an AND function. Only if both the conditions are equal it will go inside the loop. Similarly How will we do it for an OR condition. If any condition satisfies it should go inside the loop. May be this sounds a very silly question. I am a fresher to struts. That's Y? Regards, Krishna Mohan R - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to implement OR functionality in STRUTS
Hi all, A very simple question. logic:equal .. logic:equal.. ... . /logic:equal.. /logic:equal.. The above code is just like an AND function. Only if both the conditions are equal it will go inside the loop. Similarly How will we do it for an OR condition. If any condition satisfies it should go inside the loop. May be this sounds a very silly question. I am a fresher to struts. That's Y? Regards, Krishna Mohan R - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to implement OR functionality in STRUTS
Hi Neil, But this will lead to repetition of code. If there are multiple OR's then it will lead to a big code. Any other idea u have Regards, Krishna Mohan INFOSYS TECHNOLOGIES LIMITED 3rd Floor | Bhavani Technopark | Trivandrum 695 581 | India Phone +91 471 2700888 Extn 7365 | Mobile: +919895532610 [EMAIL PROTECTED]| www.infosys.com -Original Message- From: Neil Erdwien [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 11:16 AM To: Struts Users Mailing List Subject: Re: How to implement OR functionality in STRUTS How about: logic:equal ... ... /logic:equal logic:equal ... ... /logic:equal BTW, you might look into the similar JSTL tags: if and choose. They will likely have a longer life than the Struts equivalents. My philosophy is to use JSTL whenever possible. Krishna Mohan Radhakrishnan wrote: Hi all, A very simple question. logic:equal .. logic:equal.. ... . /logic:equal.. /logic:equal.. The above code is just like an AND function. Only if both the conditions are equal it will go inside the loop. Similarly How will we do it for an OR condition. If any condition satisfies it should go inside the loop. May be this sounds a very silly question. I am a fresher to struts. That's Y? Regards, Krishna Mohan R - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Neil Erdwien, [EMAIL PROTECTED], Web Technologies Manager Computing and Network Services, Kansas State University - 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]
Struts for beginners
Hi, I am just a beginner in STRUTS. Could u point out any book(especially PDF files of the book) which is intented for just the beginners which contains explanation of all the tags attributes properties etc. If any body has a pdf file for the same please send it to this ID or to [EMAIL PROTECTED] Regards, Krishna Mohan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]