Problem on package definition with eclipse

for a tutorial, which I'me following ( I setted up a tomcat project with the sysdeo plugin of eclipse. Under the folder WEB-INF/src/coreservlets I created following file:
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 {
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,

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!