Re: [OT] calling js function with list backed form value

2006-05-04 Thread siva sajja
Hi Here you are using a normal input tag from html which has no knowledge of any of the struts functionalities(mapped back properties). Use html:text instead Cheers, Siva. Shoukat, Faisal wrote: >Hi, > >I have a list backed action form and want to call a javascript function with >one of the p

Re: [OT] calling js function with list backed form value

2006-05-04 Thread siva sajja
Hi Try replacing the code javascript:calculate('<%="benefits[" + index.intValue() + "].value"%>',...with javascript:calculate('<%= benefits[index.intValue()].value%>',... (removing the string concatenation) Hope this will help Cheers, Siva. On 5/4/06, Shoukat, Faisal <[EMAIL PROTE

Re: File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread siva sajja
hope you have given your form declaration as kommineni Anita <[EMAIL PROTECTED]> 写道: David, U are right...But If I change that to post I get java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream , though I have the necessary jar's in place. Thanks, /Anita --

Re: Basic

2006-05-10 Thread siva sajja
Logic iterate can be used only over a collection of elements. Check whether the property userRoles in the bean returned by LookUpConstants.SESSION_OBJECT is a collection. Also the property names used in bean:write(role) is different from the property name used in logic:iterate(userRoles) which I

Re: object modify in collection index

2006-05-18 Thread Siva Sajja
Yes, You are the changing the properties by reference. So whatever change you do on the object you are getting will be replicated across all its instances (so the collection also). On 5/18/06, Raghuveer <[EMAIL PROTECTED]> wrote: Yes, i have modified like this.It is working and giving me th

Re: Checking based on database value?

2006-12-26 Thread Siva Sajja
Have a map which contains a map of service id to roles or role to service ids whichever u feel is most relevant. -Siva On 12/21/06, Mallik <[EMAIL PROTECTED]> wrote: Hi friends my problem is i have to ArrayLists one contains total services and another contains assigned services to a role. whe

Re: How to use nested iterate...through ArrayList

2007-02-13 Thread Siva Sajja
It would be good to identify if you can show your bean structure too.. This more or less seems to be a problem with the structure of bean you are trying to access. On 2/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi I am trying to nested:iterate fro looping through am hashMap of Hashma