facebook

JSP and HTML code complete is not working

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #209596 Reply

    Farhad
    Member

    I hav installed eclipse 3.0 RC3 and MyEclipse version 3.7.101 on Linux. I was following online tutorial for helloWorld for webprojectdemo.html and I have noticed:
    1) I don’t have code complete for JSP or HTML
    2) Optional “Preview” button at the bottom of source view is not there.
    How can i turn these two options on?

    #209621 Reply

    Scott Anderson
    Participant

    The Preview is not available on Linux in 3.8 Beta 1. It will be available in 3.8 Beta 2. The code completion should be working by default, so perhaps you haven’t created a MyEclipse Web Project? Can you please post your full configuration as requested in our ‘Posting Guidelines’ thread at the top of the forum? That will give us a starting point for diagnosing the problem.

    #209631 Reply

    Farhad
    Member

    Auto complete is not working on window XP and Linux, however I can use CTRL+SPACE for individual tags. Also auto import is not working. I am using default for everything. This seems to be an

    My configuration/config.ini :
    osgi.splashPath = platform:/base/plugins/org.eclipse.platform
    eclipse.product=org.eclipse.platform
    eclipse.buildId=I200406192000
    eof=eof
    I am using tomcat 5.0 as web server
    eclipse was freshly installed
    I have Vi plugins which does not work with myeclipse.
    I am using JDK1.4.2_04
    My .log file has following lines on exit:
    Auto complete is not working on window XP and Linux, however I can use CTRL+SPACE for individual tags. Also auto import is not working. I am using default for everything.

    My configuration/config.ini :
    osgi.splashPath = platform:/base/plugins/org.eclipse.platform
    eclipse.product=org.eclipse.platform
    eclipse.buildId=I200406192000
    eof=eof
    I am using tomcat 5.0 as web server
    eclipse was freshly installed
    I have Vi plugins which does not work with myeclipse.
    I am using JDK1.4.2_04

    !SESSION Jul 09, 2004 19:29:02.218 ———————————————^M
    eclipse.buildId=I200406192000^M
    java.version=1.4.2_04^M
    java.vendor=Sun Microsystems Inc.^M
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US^M
    ^M
    !ENTRY org.eclipse.core.runtime 4 2 Jul 09, 2004 19:29:02.218^M
    !MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.core.runtime”.^M
    !STACK 0^M
    java.lang.NullPointerException^M
    at de.bb.bje.eclipse.editors.I.<init>(Unknown Source)^M
    at de.bb.bje.eclipse.editors.D.getContentAssistant(Unknown Source)^M
    at org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:315)^M
    at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2308)^M
    at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)^M
    at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:280)^M
    at de.bb.bje.eclipse.editors.BJspEditor.createPartControl(Unknown Source)^M
    at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:120)^M
    at de.bb.bje.eclipse.editors.JspMultiPageEditor.createEditorPage(Unknown Source)^M
    at de.bb.bje.eclipse.editors.JspMultiPageEditor.createPages(Unknown Source)^M
    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:187)^M
    at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:137)^M
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)^M
    at org.eclipse.core.runtime.Platform.run(Platform.java:758)^M
    at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:133)^M
    at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:963)^M
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)^M
    at org.eclipse.core.runtime.Platform.run(Platform.java:758)^M
    at org.eclipse.ui.internal.EditorManager.busyRestoreEditor(EditorManager.java:925)^M
    at org.eclipse.ui.internal.EditorManager$8.run(EditorManager.java:918)^M
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)^M
    at org.eclipse.ui.internal.EditorManager.restoreEditor(EditorManager.java:914)^M
    at org.eclipse.ui.internal.EditorManager$Editor.getEditor(EditorManager.java:1364)^M
    at org.eclipse.ui.internal.EditorManager$Editor.getPart(EditorManager.java:1356)^M
    at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:319)^M
    at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:122)^M
    at org.eclipse.ui.internal.presentations.DefaultPartPresentation.selectPart(DefaultPartPresentation.java:1111)^M
    at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:946)^M
    at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:921)^M

    #209632 Reply

    Farhad
    Member

    Some of my lines are mixed up. At the end of my post I have content of .metadata/.log

    #209641 Reply

    Riyad Kalla
    Member

    Can you post a small sample JSP file that exhibits the behavior you are seeing, and also indicate where you are trying to use completion, and what isn’t working correctly?

    #209647 Reply

    Farhad
    Member

    I am following http://www.myeclipseide.com/images/tutorials/webprojectdemo.htm tutorial. At screen to create helloWorld.jsp I am adding HelloWorld bean which according to tutorial would do auto import get added to jsp page. This does not happen. Also for example if I type “<” after html tag “<body>” I am supposed to get an optional drop down with all html tags, which does not happen for me either.
    I am adding the helloWorld.jsp, but it has been created by myEclipse. I have installed a fresh copy of eclipse and myEclipse. Is it possible that it works for you since upgrading from older version would have some preference residue that I don’t have (and you do)?

    <%@ page language=”java” import=”java.lang.*,java.util.*” %>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPort()+path+”/”;
    %>

    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
    <html>
    <head>
    <base href=”<%=basePath%>”>

    <title>My JSP ‘helloWorld.jsp’ starting page</title>

    <meta http-equiv=”pragma” content=”no-cache”>
    <meta http-equiv=”cache-control” content=”no-cache”>
    <meta http-equiv=”expires” content=”0″>

    <meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″>
    <meta http-equiv=”description” content=”This is my page”>

    <!–
    <link rel=”stylesheet” type=”text/css” href=”styles.css”>
    –>
    </head>

    <body><B>
    <%
    HelloWorld hw = new HelloWorld();
    %>
    This is my JSP page. <br>

    </body>
    </html>

    #209648 Reply

    Riyad Kalla
    Member

    I think part of the confusion is that you need to invoke autocomplete manually, it doesn’t popup by itself. Use CTRL-SPACE and let me know if that fixes it.

    #209650 Reply

    Farhad
    Member

    Yes CTRL-SPACE works (That is not what the tutorial indicate). How about auto import. I don’t see that from source menu. If I use eclipse java prespective, I would have it, but not in myeclipse. How can I turn auto-import on.

    #209656 Reply

    Riyad Kalla
    Member

    It is always on, you can find this out if you try and use a class that isn’t imported, for example, autocomplete ArrayList, it should be added as an import.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: JSP and HTML code complete is not working

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