package pt.ist.renderers.extensions.actions; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import pt.ist.fenixframework.DomainObject; public class ViewObjectAction extends NavigationAction { @Override public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { final DomainObject domainObject = getTargetObject(request); request.setAttribute("object", domainObject); request.setAttribute("schema", getGivenSchema(request)); request.setAttribute("layout", getGivenLayout(request)); return mapping.findForward(NAVIGATION_SHOW); } }