facebook

How to import existing JSP + Servlet Tomcat Project

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

    begurrao
    Member

    Can any body tell me how to import the existing JSP + Servlet + Tomcat project into MyEclise and debug JSP and Servlets?

    Thanks

    #265415 Reply

    Riyad Kalla
    Member

    There is no automated wizard to import a project like this, but if the project is in a straight forward layout, you should be able to create a new Web Project and drop your project artifacts into the project into the right locations and go from there.

    #265489 Reply

    begurrao
    Member

    I am able to import the project (its not that simple) and am able to get into the debug mode and set the break point. It breaks at the line but I am unable see the values of the servlet’s local variables. What is the trick? how to see the value of the local variables?

    #265510 Reply

    Riyad Kalla
    Member

    It’s possible that view could be closed. Go to the debug perspective and go to Window > Reset Perspective. You should have your variable values on the top right view. Furthermore you can set watches to get exact values if you need to.

    #265540 Reply

    begurrao
    Member

    Thanks for the response.

    I did but still not able to see the servlet local variable values. In the left side of the debug window I see the below message. AdminUtil is a package and getConn is a method. Why local variables are not available?

    AdminUtil.getConn()line:28[local variables unavailable]

    #265548 Reply

    Riyad Kalla
    Member

    The reason this information is not displayed is because the class file was compiled without debugging information most likely. If you have access to that source code, you can try rebuilding it using compiler settings that will generate the debugging information necessary for the debugger to show that information.

    #265692 Reply

    begurrao
    Member

    thanks for the info. I am able to debug now and see all the variables. Is it necessary to turn off the debug for production environment?

    #265727 Reply

    Riyad Kalla
    Member

    It’s not necessary, it depends if you want to or not.

    #265759 Reply

    begurrao
    Member

    If it compiled with debug is on, then there will be any performance degradation in production environment?

    #265769 Reply

    Riyad Kalla
    Member

    No measurable amount, the JVM has gotten so fast that these little things don’t matter anymore.

    #265850 Reply

    avryadav
    Member

    can i get the inner source code of servlets in this debugging process, if so, tell the process

    #265881 Reply

    begurrao
    Member

    Yes, I am able to get to the inner source code of servlets in the debugging process and see/inspect all the variables. Put a break point in the servlet and then go step by step.

    #265882 Reply

    begurrao
    Member

    Riyad,

    Why debugging servlet and JSP are different? I am not able use ‘inspect’ in JSP. I can only see JSP variables in a separate window.

    #265886 Reply

    Riyad Kalla
    Member

    Because JSP pages are actually compiled by the server at run time into Servlets themselves. So that extra layer of abstraction does cause some detail to be removed from the debugging process.

    #265915 Reply

    begurrao
    Member

    OK. However, I am liking MyEclipse IDE environement. I have created & configured my workspace and Tomcat server deployment on to a flash drive so that I can carry my project development from work to home or work to home with out any problems. It is working great.

    Do you have any suggestions to enhace my environment?

    thanks

Viewing 15 posts - 1 through 15 (of 17 total)
Reply To: How to import existing JSP + Servlet Tomcat Project

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