Problem on package definition with eclipse

Hi,
for a tutorial, which I'me following (http://www.coreservlets.com/Apache-Struts-Tutorial/index.html) I setted up a tomcat project with the sysdeo plugin of eclipse. Under the folder WEB-INF/src/coreservlets I created following file:
[code]
package coreservlets;

import javax.servlet.*;
import org.apache.struts.action.*;

public class RegisterAction1 extends Action {
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
return(mapping.findForward("success"));
}
}[/code]
But eclipse raises following message: "The declared package does not match the expected package." And I can't compile this file.

Does anybody know, what I could do in order to get the file compiled??

Thanks and regards,

SunOfJava
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories