- This topic has 5 replies, 2 voices, and was last updated 19 years, 3 months ago by
Riyad Kalla.
-
AuthorPosts
-
kulkarni_ashMemberHi
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 myeclipseideAshish
April 10, 2006 at 6:21 pm #250231
Riyad KallaMemberAshish,
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.
April 11, 2006 at 7:57 am #250260
kulkarni_ashMemberHello
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 WorkbenchVersion: 4.1.1 GA
Build id: 20060309-4.1.1-GA*** Eclipse details:
Eclipse SDKVersion: 3.1.2
Build id: M20060118-1600Eclipse Platform
Version: 3.1.2
Build id: M20060118-1600Eclipse RCP
Version: 3.1.2
Build id: M20060118-1600Eclipse Java Development Tools
Version: 3.1.2
Build id: M20060118-1600Eclipse Plug-in Development Environment
Version: 3.1.2
Build id: M20060118-1600Eclipse Project SDK
Version: 3.1.2
Build id: M20060118-1600Eclipse 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.exeApril 11, 2006 at 11:41 am #250280
Riyad KallaMemberIf 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?
April 11, 2006 at 4:05 pm #250307
kulkarni_ashMemberHIi
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 projectAshish
April 11, 2006 at 4:23 pm #250314
Riyad KallaMemberAshish,
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.
-
AuthorPosts