facebook

JSP Editor configuration for 3.8.2 [Closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    kfarley215
    Member

    When I run the tutorial HelloWorld it shows Preferences -> Editors -> JSP/HTML -> turn on/off JSP compiler. This is not how Preferences -> Editors works now. The property sheet has changed.

    Also, when running the Tutorial and “auto complete import directive” occurs for the HelloWorld class when editing the JSP file. This does not work, nor can I find a property sheet relevant to this, thus auto-importing isn’t working in my install right now.

    Overall, I’m very impressed with the product and the documentation. I’m running on Tomcat and deploying etc, but it appears the documentation (as always) is not at the same revision as the product.

    #216989

    Riyad Kalla
    Member

    1) New documentation is in the works now, sorry you had to run into this trouble.

    2) The missing auto import feature will be back in 3.8.3 (we completely changed our editors code base between 2.7 and 3.8)

    #217002

    sheineke
    Member

    Would you please make sure that the auto import feature will be back in version 3.8.3? It was announced to be in version 3.8.2 already and now it has been postponed again. It is very annoying to manually enter the import statements.

    #217006

    Riyad Kalla
    Member

    sheineke,
    The issue we had filed for this was actually closed this morning as Fixed with implementation details from the developer (who had been working on it since Monday). It will behave as it did before. We know that the lack fo this feature was seriously annoying, thank you for hanging in there.

    #217030

    kfarley215
    Member

    Riyad,

    Thx for the quick reply, at least we know it is moving thru the pipe. To continue on the thread of smoothly getting HelloWorld working….

    On a good note, I have Tomcat 5 working and the correct JDK JRE configured etc. so I get real debugger msgs….however….

    1. Configuring a Run As … needing a main class indication is not resolving …

    2. The app runs on Tomcat in a browser but the debugger reports that it can’t resolve the HelloWorld class. The default classpath should work tho right?

    So, I can develop and deploy….and the debugger is giving me real msgs…..but I can’t figure out how to get the classpath working correctly in the IDE. I hate to miss something obvious but I have been pointing and clicking thru all the property sheets and haven’t seen anything yet.

    I appreciate the support!

    #217032

    Riyad Kalla
    Member

    What are you trying to run? The helloworld web application? If you deploy it, and then start the application server, you run it by opening a browser and goign to: http://localhost:8080/helloWorld (where helloWorld is whatever you name the web context)… you don’t need to try and run any class files.

    #217041

    kfarley215
    Member

    Agreed. It runs in Tomcat directly….it doesn’t run in the debugger however. I am merely following the steps of the Tutorial to ensure I have everything working.

    Debugger is reporting “class not found” and can’t find a main either. Must be something basic.

    #217050

    Riyad Kalla
    Member

    Can you show me the code for your JSP page, and the code for your Class and tell me ‘how’ you are going about running this?

    With web applications, there is no “main” method that gets executed. It all depends on which page your browser requests, and how you have that mapped to a class.

    #217053

    kfarley215
    Member

    1. JSP Page:

    <%@ page import=”com.fcs.tutorial.HelloWorld” %>
    <%
    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>
    <%
    HelloWorld hw = new HelloWorld();
    out.println(“message = ” + hw.helloWorld());
    %>
    </body>
    </html>

    2. java class

    /*
    * Created on Oct 6, 2004
    *
    * TODO To change the template for this generated file go to
    * Window – Preferences – Java – Code Style – Code Templates
    */
    package com.fcs.tutorial;

    /**
    * @author Kevin Farley
    *
    * TODO To change the template for this generated type comment go to
    * Window – Preferences – Java – Code Style – Code Templates
    */
    public class HelloWorld {

    public String helloWorld() {
    return “hello world”;
    }
    public void main(){

    }
    }

    3. Running via “Debug” which asks me for a Build config which asks me for a main class.

    4. I built this project via the Tutorial as a J2EE Web Application

    #217054

    Riyad Kalla
    Member

    Kevin,
    Everything looks right, but when you are running a web application you do not run its files via the Eclipse Run dialogs. After deploying the application, you run the application server used to host your application, and then navigate to it using a browser. If you have a breakpoint set on the line:

    
     return "hello world"; 
    

    In your HelloWorld class, then when the helloworld.jsp page is displayed and it gets down to this line:

    
     out.println("message = " + hw.helloWorld()); 
    

    It will call into your class code, and the breakpoint in that method will be hit. That is how debugging in a web application works. This is shown in the Web Application tutorial (using the browser) it does not show running the class independently via the Eclipse workbench…

    #217061

    kfarley215
    Member

    Aha! So easy….sorry…. in Dreamweaver and ASP.NET as well as Visual Studio debugging…the IDE always launches the debug session.

    All is well…thx for the excellent support. Extremely quick turn around!

    #218182

    yeah, i wish it was part of the run/debug button. that way I can just hit the hotkey or click on the icon and have it run the last session. i hate having to click on the Run/Stop Servers dropdown and selecting the only one I ever run. 🙂

    #218188

    Riyad Kalla
    Member

    sirfergy,
    We aren’t fond of this either and plan to do something about it (major) when we get some breathing time.

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: JSP Editor configuration for 3.8.2 [Closed]

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