You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by pcpsuresh <pc...@gmail.com> on 2010/02/18 07:12:47 UTC

Re: [jira] Created: (WW-3387) FreeMarker template error! template/simple/select.ftl stack.findValue('top') is undefined.

<s:select List="programList"> Null values added in List you are facing
Template error..

once again going to check the database or check List values if u added Null
values  this problem will come..

 'programList' one or more Null value is there thatswhy  Error "FreeMarker
template error!  template/simple/select.ftl stack.findValue('top')" is come




JIRA jira@apache.org wrote:
> 
> FreeMarker template error!  template/simple/select.ftl
> stack.findValue('top') is undefined.
> -------------------------------------------------------------------------------------------
> 
>                  Key: WW-3387
>                  URL: https://issues.apache.org/jira/browse/WW-3387
>              Project: Struts 2
>           Issue Type: Bug
>           Components: Core Actions
>     Affects Versions: 2.0.14
>          Environment:  Error  is displayed in jsp page.. 
>             Reporter: suresh
>              Fix For: 2.0.14
> 
> 
> 	
> i m facing the problem programList has come from Action class in the time
> Error will come... if i m adding manually  problem  isnot come.. like as 
> <s:select list="{'white','red','yellow'}"/>
> 
> in below  Jsp page is  program code and after that Error page is this
> error has come  after loading in browser
> 
> how can i clear the problem
> 
> give me solution for this one
> 
> as soon as possible
> 
> 
> 
> Jsp page
> -------------
> <s:select list="programList"  name="program"
> 				onchange="javascript:show_details();return false;"
> 				headerValue="--- Please Select ---" headerKey="1"
> label="Program"></s:select>
> 	 	
> 
> 
> Error page
> ---------------
> 
> FreeMarker template error!
> 
> 
> Error on line 73, column 13 in template/simple/select.ftl
> stack.findValue('top') is undefined.
> It cannot be assigned to itemKey
> The problematic instruction:
> ----------
> ==> assignment: itemKey=stack.findValue('top') [on line 73, column 13 in
> template/simple/select.ftl]
>  in user-directive s.iterator [on line 63, column 1 in
> template/simple/select.ftl]
>  in include "/${parameters.templateDir}/simple/select.ftl" [on line 24,
> column 1 in template/xhtml/select.ftl]
> ----------
> 
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 73, column 13 in
> template/simple/select.ftl
> stack.findValue('top') is undefined.
> It cannot be assigned to itemKey
> 	at freemarker.core.Assignment.accept(Assignment.java:111)
> 	at freemarker.core.Environment.visit(Environment.java:196)
> 	at freemarker.core.MixedContent.accept(MixedContent.java:92)
> 	at freemarker.core.Environment.visit(Environment.java:196)
> 	at freemarker.core.IfBlock.accept(IfBlock.java:82)
> 	at freemarker.core.Environment.visit(Environment.java:196)
> 	at freemarker.core.MixedContent.accept(MixedContent.java:92)
> 	at freemarker.core.Environment.visit(Environment.java:196)
> 	at freemarker.core.Environment.visit(Environment.java:233)
> 	at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116)
> 	at freemarker.core.Environment.visit(Environment.java:196)
> 	at freemarker.core.MixedContent.accept(MixedContent.java:92)
> 	at freemarker.core.Environment.visit(Environment.java:196)
> 	at freemarker.core.Environment.include(Environment.java:1375)
> 	at freemarker.core.Include.accept(Include.java:155)
> 	at freemarker.core.Environment.visit(Environment.java:196)
> 	at freemarker.core.MixedContent.accept(MixedContent.java:92)
> 	at freemarker.core.Environment.visit(Environment.java:196)
> 	at freemarker.core.Environment.process(Environment.java:176)
> 	at freemarker.template.Template.process(Template.java:232)
> 	at
> org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:168)
> 	at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:530)
> 	at org.apache.struts2.components.UIBean.end(UIBean.java:484)
> 	
> 
> 
> 
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/-jira--Created%3A-%28WW-3387%29-FreeMarker-template-error%21-template-simple-select.ftl-stack.findValue%28%27top%27%29-is-undefined.-tp27629306p27634730.html
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org