}
iterator = MakeIterator.convert(findValue(value));
*/
// get the first
ValueStack stack = getStack();
if ((iterator != null) && iterator.hasNext())
{
Object currentValue = iterator.next();
if (currentValue!=null)
{
stack.push(currentValue);
/*
* UPGRADE-struts 2.1.6
* CHANGE: changed "getId()" to "getVar()"
* Reason: The Funktion no longer exists.
*/
String id = getVar();
if ((id != null))
{
//pageContext.setAttribute(id, currentValue);
//pageContext.setAttribute(id, currentValue, PageContext.REQUEST_SCOPE);
stack.getContext().put(id, currentValue);
}
// Status object
if (statusAttr != null)
{
statusState.setLast((isReader==false) ? !iterator.hasNext() : false);
oldStatus = stack.getContext().get(statusAttr);
stack.getContext().put(statusAttr, status);
}
// Set current Value
if (isReader==false)
pageContext.setAttribute(EmpireValueTagSupport.BEAN_ITEM_ATTRIBUTE, currentValue);