Are you putting struts.jar on your classpath in order to compile (i.e.
java -classpath /path/to/struts.jar *.java? Are you compiling from the right
directory? Are you copying Struts files around locally somewhere (like
ActionForward and ActionMapping)? If so, don't do that. Leave those files in
struts.jar and just reference them via an import.

Start by getting a succesful recompile of struts-example. That way, everyone
can relate to your problem. This seems like a simple case of compiling a
Java app.

BTW, you have more typos below. You should really double-check your posts
before sending, as we have no way of knowing what's a typo in your message
vs. what could really be a problem.
--
Dan Miser
http://www.distribucon.com

----- Original Message -----
From: Chuck Amadi
To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; Petr Jiricka
Sent: Friday, June 15, 2001 5:58 AM
Subject: Re: help with package .java struts-classpath / invalid
package/parsing errors


Hi , I have been trying to sort this for a day or so im unable to compile
the .java classes.
1) I have checked the struts-config.xml and ensured the following-
<struts-config>
    <form-bean >
        <form-bean name= "customForm"/>
        type="it.CustomForm"/>
    </form-bean>
    <action-mapping>
        <action path="/org/breconbeacons/it"
        type="it.GroupAction"
        name="customeForm">
        <set-property property="group" value ="BBNPA User"/>
           <forward name="view " path="/display.jsp" />
        </action>
    </action-mappings>
</struts-config>
2) I have checked the
<param-name>mapping</param-name><param-value>it.CustomMapping</param-value>
& <servlet-mapping>action
3) package name - org.breconbecons.it.CustomForm; & imported
org.apache.struts.action.ActionForm;
The Error while trying to compile, this is similiar to all my other .java
files Problem 2 except  Problem 1 ActionForward .
----------------------------------------------------------------------------
------------------------------------------------
Problem 2 ActionForwrad.java
WEB-INF/classes/org/breconbeacons/it/ActionForward.java [9:1] Expected the
body of the class definition
                              perform(ActionMapping mapping,
                              ^
1 error
Errors compiling ActionForward.
----------------------------------------------------------------------------
-----------------------------
Problem 1 (all other .java files)
WEB-INF/classes/org/breconbeacons/it/ActionMapping.java [66:1] Class
ActionMapping not found in type declaration or import.
import org.apache.struts.action.ActionMapping;
                                ^
WEB-INF/classes/org/breconbeacons/it/ActionMapping.java [85:1] Class
ActionMapping not found in type declaration or import.
public final class ApplicationMapping extends ActionMapping {
                                              ^
WEB-INF/classes/org/breconbeacons/it/ActionMapping.java [85:1] Public class
org.breconbeacons.it.ApplicationMapping is defined in
C:\jakarta-tomcat-3.2.1\webapps\bbnpa\WEB-INF\classes\org\breconbeacons\it\A
ctionMapping.java and must be defined in a file called
"ApplicationMapping.java".
public final class ApplicationMapping extends ActionMapping {
                   ^
3 errors
Errors compiling ActionMapping.

Reply via email to