Package org.jresearch.gossip.forms

Examples of org.jresearch.gossip.forms.ProcessUserForm


    protected ActionForward process(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
            throws JGossipException {
        if (!Configurator.getInstance().getBoolean(IConst.CONFIG.ENABLE_AVATAR)) { return (mapping
                .findForward(IConst.TOKEN.DENIED)); }
        ProcessUserForm puForm = (ProcessUserForm) form;
        ForumDAO dao = ForumDAO.getInstance();
        response.setContentType(IConst.JSP.JPG_CONTENT_TYPE);
        response.setHeader("Pragma", "no-cache");
        response.setHeader("Cache-Control", "no-cache");
        response.setDateHeader("Expires", 0);
        try {
            ServletOutputStream out = response.getOutputStream();
            byte[] data = dao.getAvatar(puForm.getUid());
            out.write(data);
        } catch (IOException e) {
            throw new SystemException(e);
        }
        return null;
View Full Code Here


    public ActionForward process(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response)
        throws SystemException {
        UserDAO userdao = UserDAO.getInstance();
        ForumDAO forumdao = ForumDAO.getInstance();
        ProcessUserForm puForm = (ProcessUserForm) form;
        try {

            User userToShow = userdao.getUserInfo(puForm.getUid());
            request.setAttribute(IConst.REQUEST.USER_TO_SHOW, userToShow);

            ArrayList userModForums = forumdao.getUserModForums(userToShow.getName());

            if (userModForums.size() > 0) {
View Full Code Here

     */
    public ActionForward process(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response)
        throws SystemException {
        UserDAO dao = UserDAO.getInstance();
        ProcessUserForm puForm=(ProcessUserForm)form;
        try {
           
            setUpdatedLogin(dao.getUserName(Integer.parseInt(puForm.getUid())));
            dao.deleteUser(puForm.getUid());
            log(request, "logs.LOG9",
                "uid=" + puForm.getUid());
        } catch (SQLException sqle) {
            getServlet().log("Connection.process", sqle);
            throw new SystemException(sqle);
        }

View Full Code Here

TOP

Related Classes of org.jresearch.gossip.forms.ProcessUserForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.