}
if("add".equals(method)){
String rightName=request.getParameter("rightname");
//System.out.println(rightName);
flag=new TbUserRightDAO().add(new TbUserRight(rightName));
}
if("edit".equals(method)){
int rightId=Integer.parseInt(request.getParameter("rightId"));
String rightName=request.getParameter("rightname");
flag=new TbUserRightDAO().edit(new TbUserRight(rightId,rightName));
}
if(flag)
{
response.sendRedirect("zzmobile/admin/userRightList.jsp");