⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usermanageinsertaction.java

📁 用jsp,java写的在线购物系统
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   UserManageInsertAction.java

package mediastore.web.action;

import java.io.PrintStream;
import mediastore.user.UserManager;
import mediastore.web.page.UserManagePage;
import mediastore.web.struts.*;
import org.apache.struts.action.ActionForward;

public class UserManageInsertAction extends AbstractAction
{

    public UserManageInsertAction()
    {
    }

    public ActionForward execute(ActionContext actionContext)
        throws Exception
    {
        System.out.println("---Start: UserManageInsertAction::execute(actionContext)---");
        UserManager um = new UserManager();
        String userName = actionContext.getParameter("username");
        String password = actionContext.getParameter("userpassword");
        if(password == null)
            password = "";
        String role = actionContext.getParameter("userrole");
        um.insertUserRec(userName, password, role);
        String orderStr = actionContext.getParameter("orderStr");
        orderStr = orderStr.replaceAll("_", " ");
        java.util.List userList = um.getUserList(orderStr);
        orderStr = orderStr.replaceAll(" ", "_");
        DynamicForm dynaForm = (DynamicForm)actionContext.getForm();
        dynaForm.put("userList", userList);
        dynaForm.put("orderStr", orderStr);
        System.out.println("---End: UserManageInsertAction::execute(actionContext)---");
        return UserManagePage.show(actionContext);
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -