1 package org.nextime.ion.admin.action; 2 3 import java.io.IOException ; 4 5 import javax.servlet.ServletException ; 6 import javax.servlet.http.HttpServletRequest ; 7 import javax.servlet.http.HttpServletResponse ; 8 import org.apache.struts.action.Action; 9 import org.apache.struts.action.ActionForm; 10 import org.apache.struts.action.ActionForward; 11 import org.apache.struts.action.ActionMapping; 12 13 import javax.naming.*; 14 import javax.sql.*; 15 16 public class HomeAction extends Action { 17 18 public ActionForward perform( 19 ActionMapping mapping, 20 ActionForm form, 21 HttpServletRequest request, 22 HttpServletResponse response) 23 throws IOException , ServletException { 24 25 request.setAttribute("view", "home"); 26 return mapping.findForward("view"); 27 } 28 29 } | Popular Tags |