File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to set a ArrayLIst property of form from jsp

 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Sagar Rohankar
Ranch Hand
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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
Firefox Browser MyEclipse IDE Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • 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: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic