String action = request.getParameter("action");

if("edit".equals(action)) {
    doEditAction();
}

昔サーブレットを利用したWEBアプリ開発を行っている時、
このようなコード書いたものなんだが。。。