Sorting of array lists

2005-03-10 Thread Krishna Mohan Radhakrishnan
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 plandesc

RE: logic iterate help

2005-02-24 Thread Krishna Mohan Radhakrishnan
Hi Richards, 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

Regarding HTML:options tag

2005-02-17 Thread Krishna Mohan Radhakrishnan
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. I don't have any entries in the form bean for the collection . O

Regarding LOGIC tags

2005-01-26 Thread Krishna Mohan Radhakrishnan
Hi all, I have a very simple doubt on struts equal tag. The tag is like this 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 metho

RE: Putting a field into the REQUEST

2005-01-08 Thread Krishna Mohan Radhakrishnan
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 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 c

RE: formatting of strings

2005-01-07 Thread Krishna Mohan Radhakrishnan
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 th

RE: Putting a field into the REQUEST

2005-01-06 Thread Krishna Mohan Radhakrishnan
port" 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

RE: Putting a field into the REQUEST

2005-01-06 Thread Krishna Mohan Radhakrishnan
n) 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

RE: Putting a field into the REQUEST

2005-01-06 Thread Krishna Mohan Radhakrishnan
sh so your line: Becomes: ^^^ 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 th

Putting a field into the REQUEST

2005-01-06 Thread Krishna Mohan Radhakrishnan
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: I wanted to set a hidden field in th

RE: formatting of strings

2005-01-06 Thread Krishna Mohan Radhakrishnan
rmat1" which has the value "###-##-") instead of: 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 # on

RE: formatting of strings

2005-01-06 Thread Krishna Mohan Radhakrishnan
ou 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 string

formatting of strings

2005-01-06 Thread Krishna Mohan Radhakrishnan
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. For example if 9845612345 is the number I want to display it as follows. 984-561-2345 Is there any ide

Does not STRUTS handle escape characters

2005-01-05 Thread Krishna Mohan Radhakrishnan
Hi all, This is a javascript function that is being called when a button called "Update" is pressed. Now if the planTitle or verbalDescription has got any apostrophe(') then it is throwing up a javascrit error that ) is expected. Does not struts handle these type of characters like ',",/ etc. D

RE: How to implement OR functionality in STRUTS

2005-01-04 Thread Krishna Mohan Radhakrishnan
RUTS How about: ... ... 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,

How to implement OR functionality in STRUTS

2005-01-04 Thread Krishna Mohan Radhakrishnan
Hi all, A very simple question. ... . 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

RE: HOw to avoid validations for certain submit buttons on a singleform?

2005-01-04 Thread Krishna Mohan Radhakrishnan
Hi all, A very simple question. ... . 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

RE: HOw to avoid validations for certain submit buttons on a singleform?

2005-01-04 Thread Krishna Mohan Radhakrishnan
ion 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 > >

HOw to avoid validations for certain submit buttons on a single form?

2005-01-04 Thread Krishna Mohan Radhakrishnan
Hi all, I have a jsp called Plan.jsp. The name of the ActionForm is PlanActionForm. There is a action class called PlanAction.java. From this PlanAction.java it is forwarding to Plan.jsp. In the Plan.jsp there are 2 buttons and one text field. Text field name is txtboxTitle and the 2 butt

How to pass a request variable to a frame set

2005-01-04 Thread Krishna Mohan Radhakrishnan
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 attri

Struts for beginners

2004-12-25 Thread Krishna Mohan Radhakrishnan
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]