facebook

Code assist in jsp not working

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #250214 Reply

    kulkarni_ash
    Member

    Hi
    I have following lines of code in jsp

    
     <logic:iterate id="pL1820" name="sceneCollection" type="com.pfizer.maps.file.planning.PL1820">
         <%=pL1820.getL820SCEN()%>
     </logic:iterate>
    

    When i do pL1820. and then try to get all the methods in this class, i get message
    “Java Code Assist is not Available for the current cursor position”
    Why is it not showing all the methods i have for this class,
    Also if i type some method which is not avaible i dont get compilation error in myeclipseide

    Ashish

    #250231

    Riyad Kalla
    Member

    Ashish,
    First please paste your result of MyEclipse > About > Configuration Summary for me.

    Also as far as the invalid method markers, you need to have your JDK’s /bin directory in your System PATH environment variable for JSP validation to work appropriately (e.g. drop to a console and type “javac” and make sure you get a response).

    This won’t be the case in MyEclipse 5.0, but right now it is.

    #250260

    kulkarni_ash
    Member

    Hello
    I have jdk/bin directory in my system Path( I get reply when i tye javac command in dos window)
    Here is the configuration summary for myeclipse

    *** Date: Tue Apr 11 08:57:33 EDT 2006

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.4.2_06

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.1.1 GA
    Build id: 20060309-4.1.1-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Platform

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse RCP

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Java Development Tools

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Plug-in Development Environment

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Project SDK

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\eclipse3.1.2new\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    a38_88
    -vm
    C:\WINDOWS\system32\javaw.exe

    #250280

    Riyad Kalla
    Member

    If you navigate to Window > Prefs > General > Workspace do you have “Build automatically” checked?

    If you right click on your JSP page, and select Open With, does the “MyEclipse JSP Designer” editor have a solid round circle next to it? If you open the file with that editor, then go into it and type:

    
    <%
    this should give an error
    %>
    

    And save it, do you see error markers in the left and right margins?

    #250307

    kulkarni_ash
    Member

    HIi
    I tried all the steps
    Window > Prefs > General > Workspace has Build Automcatically checked
    Open the JSP in MyEclipse JSP Designer
    and type in code

    
    <%
    this should give an error
    %> 
    

    I could see error markers on both and left and right margins

    The code assist works
    when i am working in regular java (in <% %> in these tags)
    It does not work when using struts libraries, i have already added struts support to my project

    Ashish

    #250314

    Riyad Kalla
    Member

    Ashish,
    My appologies, autocomplete for your example above is not supported; I thought it was originally.

    The reason for this is that we have no idea what a taglib will do. In the case of jsp:useBean it is defined in the spec that it will create an instance of the given type in the page scope, but with Struts taglibs, JSTL taglibs, JSF, home grown and other’s there is no well-defined behavior, so there is no way for the parser to know that a taglib is creating an instance of a var and placing it in the page scope.

    That being said, there *are* well-known taglibs (like your example) that we can support to ease development in most cases and I Have filed this enhancement for you.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Code assist in jsp not working

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