Thanks for your fast responses. But sadly even using a link with &sessionId=#somenumber added does produce the same error. Generated Html Code is correct and variable names, too. At the moment I'm not quite sure anymore, what this error does mean. Maybe I'm absolutely on the wrong way. Here's the error that is produced:
Code:
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@3e74ad targetAction = [EvaluateAction@18f6407 expression = measurementService.deleteSession(requestScope.sessionId), resultExposer = [null]], attributes = map[[empty]]] in state 'deleteSession' of flow 'measurement/session' -- action execution attributes were 'map[[empty]]'
root cause
org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@3e74ad targetAction = [EvaluateAction@18f6407 expression = measurementService.deleteSession(requestScope.sessionId), resultExposer = [null]], attributes = map[[empty]]] in state 'deleteSession' of flow 'measurement/session' -- action execution attributes were 'map[[empty]]'
root cause
org.springframework.binding.expression.EvaluationException: An ELException occurred getting the value for expression 'measurementService.deleteSession(requestScope.sessionId)' on context [class org.springframework.webflow.engine.impl.RequestControlContextImpl]
root cause
javax.el.ELException: java.lang.UnsupportedOperationException
This is excerpt from MeasurementServiceImpl:
Code:
@Service("measurementService")
public class MeasurementServiceImpl extends EObjectImpl implements MeasurementService {
...
public void deleteSession(Long id) {
sessionDao.delete(id);
}
JSP:
HTML Code:
<td>
<a href="${flowExecutionUrl}&_eventId=deletesession&sessionId=${session.ID}">
<img src="<c:url value="/images/btn_delete.gif"/>" border="0"/>
</a>
</td>
Flow.xml:
HTML Code:
<end-state id="deleteSession">
<on-entry>
<evaluate expression="measurementService.deleteSession(requestScope.sessionId)" />
</on-entry>
</end-state>
PS: requestParameters.sessionId does not work, too
PPS: The code with the commandLink looks like JSF. Sadly I don't want to use JSF, because in the future another person does the HTML/JSP coding. To give him JSP code is quite OK (of course, better I should take tapestry). That's why I chose Tiles as template engine. JSF is much too complex for a web designer.
I'm very grateful for your help!!