Servlets - Compilar Servlets

   
Vista:

Compilar Servlets

Publicado por Paul (2 intervenciones) el 10/10/2007 16:14:40
Buen Día

Me encuentro administrando un sitio hecho con JSP, Servlets, Struts en SQL 2005, y Apache.

Me pidieron modificaciones de los Querys, por lo que realice cambios en el codigo de los servlets, compilo con el j2sdk1.4.2_07\bin, pero me aparecen los sig. errores:

CoursesOnlyReqAction.java:6: package org.apache.struts.action does not exist
import org.apache.struts.action.Action;
^
CoursesOnlyReqAction.java:7: package org.apache.struts.util does not exist
import org.apache.struts.util.*;
^
CoursesOnlyReqAction.java:8: package org.apache.commons.beanutils does not exist

import org.apache.commons.beanutils.*;
^
CoursesOnlyReqAction.java:9: package org.apache.struts.action does not exist
import org.apache.struts.action.ActionForm;
^
CoursesOnlyReqAction.java:10: package org.apache.struts.action does not exist
import org.apache.struts.action.ActionForward;
^
CoursesOnlyReqAction.java:11: package org.apache.struts.action does not exist
import org.apache.struts.action.ActionMapping;
^
CoursesOnlyReqAction.java:13: package org.common.dao does not exist
import org.common.dao.DbConn;
^
CoursesOnlyReqAction.java:14: package org.common.objects does not exist
import org.common.objects.User;
^
CoursesOnlyReqAction.java:15: package org.common.objects does not exist
import org.common.objects.Course;
^
CoursesOnlyReqAction.java:22: cannot find symbol
symbol: class Action
public class CoursesOnlyReqAction extends Action {
^
CoursesOnlyReqAction.java:25: cannot find symbol
symbol : class ActionMapping
location: class org.common.admin.CoursesOnlyReqAction
ActionMapping mapping,
^
CoursesOnlyReqAction.java:26: cannot find symbol
symbol : class ActionForm
location: class org.common.admin.CoursesOnlyReqAction
ActionForm form,
^
CoursesOnlyReqAction.java:24: cannot find symbol
symbol : class ActionForward
location: class org.common.admin.CoursesOnlyReqAction
public ActionForward execute(
^
CoursesOnlyReqAction.java:40: cannot find symbol
symbol : class DbConn
location: class org.common.admin.CoursesOnlyReqAction
DbConn connection = new DbConn();
^
CoursesOnlyReqAction.java:40: cannot find symbol
symbol : class DbConn
location: class org.common.admin.CoursesOnlyReqAction
DbConn connection = new DbConn();
^
CoursesOnlyReqAction.java:48: cannot find symbol
symbol : class Course
location: class org.common.admin.CoursesOnlyReqAction
Course course = new Course();
^
CoursesOnlyReqAction.java:48: cannot find symbol
symbol : class Course
location: class org.common.admin.CoursesOnlyReqAction
Course course = new Course();
^
17 errors

Después instale Eclipse, añadi servlet.jar y struts.jar, pero no me permite compilar.

Agradeceria mucho su apoyo, de antemano gracias.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder