|
|
Hi, I want to compile the program
import javax.servlet.http.*;
import org.apache.struts.action.*;
import java.io.IOException;
import javax.servlet.ServletException;
public class MyAction extends Action
{
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
{
MyActionForm actionform=(MyActionForm)form;
request.setAttribute("name",actionform.getName());
request.setAttribute("address",actionform.getAddress());
return (mapping.findForward("WelcomeUser"));
}
}
with weblogic server6.1. But I got error msg like
1> import org.apache.struts.action.ActionServlet
2> MyActionForm , ActionError, Action class not found.
I installed weblogic at D:\bea\wlserver6.1
I keep this program file at D:\bea\wlserver6.1\config\mydomain\applications\G_jdbc_1\WEB-INF\classes
I set my class from command prompt as D:\bea\wlserver6.1\config\mydomain>setEnv.cmd
and keep struts.jar file at D:\bea\wlserver6.1\lib\
But i can't find where is the error or what missing. Please tell me the missing work or class path setting i have not done.