Package org.jresearch.gossip.forms

Examples of org.jresearch.gossip.forms.ProcessForumForm


     * @return DOCUMENT ME!
     */
    public ActionForward process(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response)
        throws SystemException {
        ProcessForumForm pfForm = (ProcessForumForm) form;

        ForumDAO dao = ForumDAO.getInstance();
        UserDAO userdao = UserDAO.getInstance();
        HttpSession session = request.getSession();

        User user = (User) session.getAttribute(IConst.SESSION.USER_KEY);
        int fid = Integer.parseInt(pfForm.getFid());

        try {
         
            Forum currForum = dao.getForumInfo(fid);

View Full Code Here


     */
    public ActionForward process(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response)
        throws SystemException {
        ForumDAO dao = ForumDAO.getInstance();
        ProcessForumForm pfForm = (ProcessForumForm) form;

        try {
           

            dao.deleteForum(pfForm.getFid());
            log(request, "logs.LOG12", pfForm.getFid());
        } catch (SQLException sqle) {
            getServlet().log("Connection.process", sqle);
            throw new SystemException(sqle);
        }

View Full Code Here

     */
    public ActionForward process(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response)
        throws SystemException {
        ForumDAO dao = ForumDAO.getInstance();
        ProcessForumForm pfForm = (ProcessForumForm) form;

        try {
           

            Forum forum = dao.getForumInfo(Integer.parseInt(pfForm.getFid()));
            ForumForm forumForm = new ForumForm();
            forumForm.setForum_desc(forum.getDescription());
            forumForm.setForum_name(forum.getTitle());
            forumForm.setForumid(pfForm.getFid());
            forumForm.setGroupid(Integer.toString(forum.getGroupid()));
            forumForm.setForum_sort(forum.getSort());
            request.setAttribute("forumForm", forumForm);
        } catch (SQLException sqle) {
            getServlet().log("Connection.process", sqle);
View Full Code Here

TOP

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

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.