Hi everyone,
After a half day crashcourse on
java and
j2ee I am now trying to figure out what I was told last week.
I am trying to work along the example of Jakarta
Struts Live, as is available as a PDF.
In the example there is some code that creates a DAO:
UserDAO dao=DAOFactory.createUserDAO(conn);
Eclipse (which we have to use at work) complains that it cannot resolve DAOFactory.
An equal problem I encounter with
private static Log log =
LogFactory.getLog(AdminUsersAction.class);
Here Eclipse moans that LogFactory cannot be resolved.
I am probably missing a couple of things that need to be imported. So far I have this:
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import java.util.*;
import org.apache.log4j.*;
These 2 errors are just the start of all my problems, but well, you have to start somewhere... Thanks for hints, tips, pointers and such.
Paul