I have the following in the jsp

<s:select
                       name="testForm.inputAnswer"
                       list="#session.question.answers"
                       listKey="answer"
                       listValue="answer"
                       />

in the action class there is a instance variable
called testForm and inputAnswer is an array string[]
in the testForm.

I am reusing the inputAnswer for different UI tags,
for .e.g with checkboxes as well. Hence inputAnswer is
an array.

In struts 1.x for select I get the inputAnswer[0]
element but in S2 it complains about select.ftl error.
as follows

Expected number, date, or string. parameters.nameValue
evaluated instead to freemarker.ext.beans.ArrayModel
on line 60, column 101 in template/simple/select.ftl.
The problematic instruction:
----------
==> if tag.contains(parameters.nameValue, itemKey) ==
true || (parameters.nameValue?exists &&
parameters.nameValue?string == itemKey) [on line 60,
column 9 in template/simple/select.ftl]
 in user-directive s.iterator [on line 40, column 1 in
template/simple/select.ftl]
 in include
"/${parameters.templateDir}/simple/select.ftl" [on
line 2, column 1 in template/xhtml/select.ftl]
----------


Is this the way it is meant for .....


Thanks




 
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to