facebook

Web Development Tutorial …

  1. MyEclipse Archived
  2.  > 
  3. Documentation
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #221561 Reply

    Hi

    Just working through the Web Development tutorial and have encountered a problem (Not sure if this is the correct forum for this) :

    When declaring <%@ page import=”com.david1.test.HelloWorld” %> in the helloWorld.jsp I get the error ‘The import com.david1.test.HelloWorld conflicts with a type defined in the same file (in file: com.david1.test.HelloWorld)’.

    I have create the com.david1.test package under a src dircetory as follows:

    package com.david1.test;

    /public class HelloWorld {
    public String helloWorld(){
    return “Hello World”;
    }
    }

    This is in the same project as the jsp.

    Any ideas why this might occur?
    Thanks in advance.
    David

    #221568 Reply

    Riyad Kalla
    Member

    David,
    This is most likely occuring because the name of the class “HelloWorld” is conflicting with your JSP page’s name “HelloWorld.jsp” that will get compiled to a similarly named file. This is currently a bug we have filed and are tracking; sorry for the inconvenience.

    #221569 Reply

    Riyad Kalla
    Member

    Moving to Documentation

    #233412 Reply

    Is this problem fixed yet?

    #233445 Reply

    Riyad Kalla
    Member

    I tested this in 4.0 Milestone 2 with Eclipse 3.1, and while we didn’t do anything yet to explicitly fix this, it seems to be working fine.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Web Development Tutorial …

You must be logged in to post in the forum log in