Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

how to set a ArrayLIst property of form from jsp

 
Ranch Hand
Posts: 237
MyEclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


it is giving the error HtmlOptionsForm.setNewList - argument type mismatch

i have checked in different examples,it is not working.
is it not possible to set a ArrayList property.

thanks
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sudheer kiran wrote:it is giving the error HtmlOptionsForm.setNewList - argument type mismatch


What is the signature of method HtmlOptionsForm.setNewList() ?

sudheer kiran wrote:
is it not possible to set a ArrayList property.


Try using simple array , instead.

Also, the "name" attribute in <html:link> tag looks for bean with "Map" that contains one or more query parameter ids and corresponding values. Look here for details:
http://struts.apache.org/1.3.10/struts-taglib/tagreference.html#html:link
 
sudheer kiran
Ranch Hand
Posts: 237
MyEclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi thasnks for the reply.
method signature is correct.
i have read the specifications,it says only the strings and string arrays are only allowed
simple array is working,and also all other properties are working except arraylist type.

 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sudheer kiran wrote:i have read the specifications,it says only the strings and string arrays are only allowed
simple array is working,and also all other properties are working except arraylist type.


Right, so I think you got your answer
 
reply
    Bookmark Topic Watch Topic
  • New Topic