[ 
https://issues.apache.org/jira/browse/WW-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart updated WW-4307:
------------------------------

    Description: 
I have s:combobox and populating  a list of names from action class. In the jsp 
the list is populated but gives an error and the following textfields are not 
shown the error is as below:

SEVERE: Servlet.service() for servlet jsp threw exception
{noformat}
Error on line 57, column 9 in template/simple/combobox.ftl
stack.findString('top') is undefined.
It cannot be assigned to tmpListKey
The problematic instruction:
----------
==> assignment: tmpListKey=stack.findString('top') [on line 57, column 9 in 
template/simple/combobox.ftl]
 in user-directive s.iterator [on line 53, column 5 in 
template/simple/combobox.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Error on line 57, column 9 in 
template/simple/combobox.ftl
stack.findString('top') is undefined.
It cannot be assigned to tmpListKey
        at freemarker.core.Assignment.accept(Assignment.java:111)
        at freemarker.core.Environment.visit(Environment.java:221)
        at freemarker.core.IfBlock.accept(IfBlock.java:82)
        at freemarker.core.Environment.visit(Environment.java:221)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:221)
{noformat}

  was:
I have s:combobox and populating  a list of names from action class. In the jsp 
the list is populated but gives an error and the following textfields are not 
shown the error is as below:

SEVERE: Servlet.service() for servlet jsp threw exception

Error on line 57, column 9 in template/simple/combobox.ftl
stack.findString('top') is undefined.
It cannot be assigned to tmpListKey
The problematic instruction:
----------
==> assignment: tmpListKey=stack.findString('top') [on line 57, column 9 in 
template/simple/combobox.ftl]
 in user-directive s.iterator [on line 53, column 5 in 
template/simple/combobox.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Error on line 57, column 9 in 
template/simple/combobox.ftl
stack.findString('top') is undefined.
It cannot be assigned to tmpListKey
        at freemarker.core.Assignment.accept(Assignment.java:111)
        at freemarker.core.Environment.visit(Environment.java:221)
        at freemarker.core.IfBlock.accept(IfBlock.java:82)
        at freemarker.core.Environment.visit(Environment.java:221)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:221)


> s:combobox is causing an error 
> -------------------------------
>
>                 Key: WW-4307
>                 URL: https://issues.apache.org/jira/browse/WW-4307
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.3.16
>         Environment: struts 2.3.16 version JDK 1.7 32-bit windows
>            Reporter: hari
>            Priority: Blocker
>
> I have s:combobox and populating  a list of names from action class. In the 
> jsp the list is populated but gives an error and the following textfields are 
> not shown the error is as below:
> SEVERE: Servlet.service() for servlet jsp threw exception
> {noformat}
> Error on line 57, column 9 in template/simple/combobox.ftl
> stack.findString('top') is undefined.
> It cannot be assigned to tmpListKey
> The problematic instruction:
> ----------
> ==> assignment: tmpListKey=stack.findString('top') [on line 57, column 9 in 
> template/simple/combobox.ftl]
>  in user-directive s.iterator [on line 53, column 5 in 
> template/simple/combobox.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 57, column 9 in 
> template/simple/combobox.ftl
> stack.findString('top') is undefined.
> It cannot be assigned to tmpListKey
>       at freemarker.core.Assignment.accept(Assignment.java:111)
>       at freemarker.core.Environment.visit(Environment.java:221)
>       at freemarker.core.IfBlock.accept(IfBlock.java:82)
>       at freemarker.core.Environment.visit(Environment.java:221)
>       at freemarker.core.MixedContent.accept(MixedContent.java:92)
>       at freemarker.core.Environment.visit(Environment.java:221)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to