67,513
社区成员
发帖
与我相关
我的任务
分享
INSERT INTO bbs.jrun_members(uid) SELECT user_id FROM nodoor.`user`
where user_id IS NOT NULL AND user_id NOT IN
(
SELECT uid from bbs.jrun_members
);
BEGIN;
INSERT INTO bbs.jrun_members(uid) SELECT user_id FROM shop.`user`
where user_id NOT IN
(
SELECT uid from bbs.jrun_members
);
END;
public ActionForward login(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response) {
System.out.println("come here ....");
String username=request.getParameter("username");
String password=request.getParameter("password");
System.out.println(username+","+password);
if("zhangsan".equals(username)&&"123".equals(password))
return mapping.findForward("success");
else
return mapping.findForward("login");
}
<action-mappings>
<action validate="false" parameter="action" path="/login" scope="request" type="test.action.LoginAction">
<forward name="success" path="/loginSuccess.jsp"></forward>
<forward name="login" path="/login.jsp"></forward>
</action>
</action-mappings>