2526272829303132333435
try { Mapping.begin(); Section s = Section.getInstance(request.getParameter("id")); if (request.getParameter("type").equals("up")) { s.up(); } else { s.down(); } Mapping.commit(); } catch (MappingException e) {
5152535455565758596061
Section section = Section.getInstance(request.getParameter("id")); TreeControlNode node = ((TreeControl)(request.getSession().getAttribute("treeControlTest"))).findNode(request.getParameter("id")); // up or down ? if( request.getParameter("type").equals("up") ) { section.up(); node.up(); } else { section.down(); node.down(); }