return mapping.findForward("query");
return new ForwardParameters(mapping.findForward("query")) .addAnchor("constraint-editor").forward();
    public ActionForward addPath(ActionMapping mapping,                                 ActionForm form,                                 HttpServletRequest request,                                 HttpServletResponse response)        throws Exception {        HttpSession session = request.getSession();        PathQuery query = (PathQuery) session.getAttribute(Constants.QUERY);        String prefix = (String) session.getAttribute("prefix");        String path = request.getParameter("path");        path = toPath(prefix, path);                Node node = query.addNode(path);        //automatically start editing node        session.setAttribute("editingNode", node);        //and change metadata view if relevant        if (!node.isAttribute()) {            session.setAttribute("prefix", path);            session.setAttribute("path", node.getType());        }                return mapping.findForward("query");    }