根据需要,替换Hash变量即可,值为用户名(允许多个用户以分号分隔)

import java.util.ArrayList;
import java.util.Collection;

        String users = "#form.vt_setup_acs.financeManager[setup]#";
        Collection usersList = new ArrayList();
        if (users.contains(";")) {
            String[] usersArray = users.split(";");
            for (int x = 0; x < usersArray.length; x++) {
                usersList.add(usersArray[x]);
            }
        } else {
            usersList.add(users);
        }
        return usersList;


  • No labels