File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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
 
 
subject: how to set a ArrayLIst property of form from jsp
 
Similar Threads
Chreating an array of vectors
Missing numbers from sorted list
don't see how generic class is useful in common cases
get objects of the certain type from Collection
a simple array question...