struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manisha Sathe <manisha_msa...@yahoo.com>
Subject How to compile the java file with ActionForm / ActionMapping ?
Date Wed, 22 Dec 2004 02:38:29 GMT
Just started using struts: I got following code from Web - but when i tried to compile it i
am getting error 
 
-----------------------------------------
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
public class EmployeeForm extends ActionForm  {
    private String name;
    private String age;
    public void setName(String name) {
        this.name = name;
    }
    public void setAge(String age) {
        this.age = age;
    }
    public String getName() {
        return name;
    }
    public String getAge() {
        return age;
    }
}
 
------------------------------
D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\src\net\reumann\EmployeeForm.java:3:
package org.apache.struts.action does not exist
import org.apache.struts.action.ActionForm;
                                ^
D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\src\net\reumann\EmployeeForm.java:4:
package org.apache.struts.action does not exist
import org.apache.struts.action.ActionMapping;
                                ^
D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\src\net\reumann\EmployeeForm.java:6:
cannot resolve symbol
symbol  : class ActionForm 
location: class net.reumann.EmployeeForm
public class EmployeeForm extends ActionForm  {
                                  ^
3 errors
Tool completed with exit code 1

---------------------------------------------
 
I have  copied all jar files inside /lib dir also modified web.xml and struts-config.xml.
i tried to set path also.
 
What else is required to compile it ? 
 
Thanks and regards
Manisha 


		
---------------------------------
Do you Yahoo!?
 The all-new My Yahoo!  Get yours free!    
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message