Hi All.
I need to put a value in an ActionForm object, because of the edition use
case of an mantainer (CRUD).
Im using hibernate to save an object and hibernate assigns the id when save,
and i need to put that value back in the ActionForm to "remember it" when
save again.
I am doing this, but no results yet =( :
ACTION CODE
if( errors.isEmpty()){
evaluacionTecnicaManager.save(et);
String mensaje = (isNew ? "Se ha creado " : "Se ha modificado ")
+ " la evaluación técnica correctamente";
request.setAttribute("id_evaluacion", et.getId());
errors.add("",new ActionError("mensaje_ejecucion", mensaje));
}
saveErrors(request, errors);
return new ActionForward(actionMapping.getInput());
JSP CODE:
<html:text property="id"/>
any help will be apreciated.
Oscar