facebook

Code Completion in JSP Editor [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #229293 Reply

    jensendw
    Member

    I am new to Java and myEclipse. In the Java editor, I can see my business object class methods in the code assist window. However, I do not see them on a line in a script block.

    For Example:

    <%
    HelloWorld hw = new HelloWorld();
    out.println(“message = ” + hw.getValue());
    %>

    When I type hw. in the second line and try to bring up code assist, my methods do not appear.

    Should I see them? Do I have a problem with my configuration?

    #229306 Reply

    Scott Anderson
    Participant

    Did you import the classes you want to use, like

    
    <%@page import="java.util.HashMap" %>
    

    for example?

    #229325 Reply

    jensendw
    Member

    My problem was that I was following the HelloWorld example and the HelloWorld.jsp type was conflicting with the Java class HelloWorld.java. As soon as I renamed HelloWorld.java to HelloWorld1.java, the code completion worked fine.

    #229330 Reply

    Scott Anderson
    Participant

    Ah! Nice find. I hadn’t thought of that, but it would definately be an issue.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Code Completion in JSP Editor [Closed]

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