Is it possible to set a string value in a set action?
I have a flow and need to pass a parameter to a jsp (parameter name is 'graphdesc' and its value is 'myfrontend', needed for dynamically build the form with serach criteria), so I did this:
With this code I get the following stacktrace with an expression evaluation exception:Code:<view-state id="enterCriteria" view="users/searchDynamicCriteria"> <entry-actions> <set attribute="graphdesc" scope="flash" value="myfrontend" /> </entry-actions> <render-actions> <action bean="formAction" method="setupForm" /> </render-actions> <transition on="search" to="displayResults"> ... </view-state>
Code:17:43:21,765 DEBUG DispatcherServlet:492 - Could not complete request org.springframework.webflow.engine.ActionExecutionException: Exception thrown executing [AnnotatedAction@4d5575 targetAction = org.springframework.webflow.action.SetAction@88d319, attributes = map[[empty]]] in state 'enterCriteria' of flow 'usersearch-flow' -- action execution attributes were 'map[[empty]]'; nested exception is org.springframework.binding.expression.EvaluationException: Expression [EvaluationAttempt@5585dc expression = myfrontend, target = [RequestControlContextImpl@e4e358 externalContext = [ServletExternalContext@18baf36 requestParameterMap = map['_flowId' -> 'usersearch-flow']], requestScope = map[[empty]], attributes = map[[empty]], flowExecution = [FlowExecutionImpl@1ee04fd flow = 'usersearch-flow', flowSessions = list[[FlowSessionImpl@19c6163 flow = 'usersearch-flow', state = 'enterCriteria', scope = map[[empty]], flashMap = map[[empty]], status = Active]]]], context = [null]] failed - make sure the expression is evaluatable on the target object; nested exception is ognl.NoSuchPropertyException: org.springframework.webflow.engine.impl.RequestControlContextImpl.myfrontend Caused by: org.springframework.binding.expression.EvaluationException: Expression [EvaluationAttempt@5585dc expression = myfrontend, target = [RequestControlContextImpl@e4e358 externalContext = [ServletExternalContext@18baf36 requestParameterMap = map['_flowId' -> 'usersearch-flow']], requestScope = map[[empty]], attributes = map[[empty]], flowExecution = [FlowExecutionImpl@1ee04fd flow = 'usersearch-flow', flowSessions = list[[FlowSessionImpl@19c6163 flow = 'usersearch-flow', state = 'enterCriteria', scope = map[[empty]], flashMap = map[[empty]], status = Active]]]], context = [null]] failed - make sure the expression is evaluatable on the target object; nested exception is ognl.NoSuchPropertyException: org.springframework.webflow.engine.impl.RequestControlContextImpl.myfrontend Caused by: ognl.NoSuchPropertyException: org.springframework.webflow.engine.impl.RequestControlContextImpl.myfrontend at ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:122) at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1657) ...
If I use numeric or boolean values, everything goes fine.
What's wrong with my code?


Reply With Quote
