day is a hashmap which consist of list. one of the list is day with values 
Monday, Tuesday, Wednesday, Thursday, Friday


ERROR 2014-07-31 10:50:03,343 [http-nio-8080-exec-2] 
org.apache.velocity.app.VelocityEngine - Exception in macro #springBind called 
at org/springframework/web/servlet/view/velocity/spring.vm[line 184, column 5]

ERROR 2014-07-31 10:50:03,345 [http-nio-8080-exec-2] 
org.apache.velocity.app.VelocityEngine - Exception in macro 
#springFormSingleSelect called at /WEB-INF/view/homepage.vm[line 58, column 4]

Jul 31, 2014 10:50:03 AM org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Servlet.service() for servlet [myScheduling] in context with path 
[/myScheduling] threw exception [Method invocation failed during rendering of 
Velocity view with name 'homepage': Invocation of method 'getBindStatus' in 
class org.springframework.web.servlet.support.RequestContext threw exception 
java.lang.IllegalStateException: Neither BindingResult nor plain target object 
for bean name 'MONDAY' available as request attribute at 
org/springframework/web/servlet/view/velocity/spring.vm[line 88, column 52]; 
reference [springMacroRequestContext], method 'getBindStatus'; nested exception 
is java.lang.IllegalStateException: Neither BindingResult nor plain target 
object for bean name 'MONDAY' available as request attribute] with root cause

java.lang.IllegalStateException: Neither BindingResult nor plain target object 
for bean name 'MONDAY' available as request attribute





Sent from Windows Mail





From: Will Glass-Husain
Sent: ‎Thursday‎, ‎July‎ ‎31‎, ‎2014 ‎10‎:‎03‎ ‎AM
To: dev@velocity.apache.org





What does the body of the stack trace show?   Where is the exception coming
from?

On Wednesday, July 30, 2014, ronald diao <ronald...@hotmail.com> wrote:

> my code
>
>
>
> #springFormSingleSelect($day.name $day "")
>
>
> displays a dropdown list but the dropdown displays all the days in one
> selection(should be displayed separately…user should choose between days) …
>
>
> i tried this
>
>
> #foreach($name in $day.name)
>
> #springFormSingleSelect($name $day "")
>
> #end
>
>
> but it throws an IllegalStateException error ….  do you have any idea
> what’s the problem with my code?
>
>
>
>
>
>
>
>
> Sent from Windows Mail

Reply via email to