aspose file tools*
The moose likes Struts and the fly likes how to set a ArrayLIst property of form from jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to set a ArrayLIst property of form from jsp" Watch "how to set a ArrayLIst property of form from jsp" New topic
Author

how to set a ArrayLIst property of form from jsp

sudheer kiran
Ranch Hand

Joined: Jun 26, 2008
Posts: 237



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


Sudheer
SCWCD, SCJP 5
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
sudheer kiran
Ranch Hand

Joined: Jun 26, 2008
Posts: 237

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

Joined: Feb 19, 2008
Posts: 2902
    
    1

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
 
subject: how to set a ArrayLIst property of form from jsp