Hello All,

I'm currently working on developing my first Struts application in weblogic
6.0 and getting the following errors when starting up my server:

        Error casting servlet: "action" java.lang.ClassCastException:
com.struts.LoginBean
                
        javax.servlet.ServletException: Servlet class:
'com.struts.LoginBean' does not implement javax.servlet.Servlet

My Action class consists of the following:

        package com.struts;

        import org.apache.struts.action.* ;
        import java.io.* ;
        import javax.servlet.http.* ;
        import javax.servlet.* ;

        public class LoginAction extends Action
        {
                public ActionForward perform(ActionMapping mapping,
ActionForm form,
                                        HttpServletRequest request,
HttpServletResponse response)
                                        throws IOException, ServletException
                {
                        System.out.println("I'm in the Action class...");
                        
                        LoginBean form_ = (LoginBean)form;
                        return mapping.findForward("success");
                }
        }

Thanks for any help!

Steven

Reply via email to