My process of debugging JSP through eclipse

Source: Internet
Author: User
Tags tomcat
js| process

When you do not know, feel that everything is normal. Until one day I learned (but I forgot where I knew it, or who told me?) , Eclipse can debug the JSP, and at that moment it was like a prison prisoner who was freed, so he went online, looking for useful information from every page.

Briefly speaking, our development environment is jsp+servlet+tomcat+oracle, the page operation is also very much, so each of us have two big pain: JavaScript and JSP. In JS debugging is alert, in the JSP and the servlet depends on Writelog. When the compiler does not pass, Tomcat gives you a big white plate, do you say pain is not painful?

Groping a total of two stages, there are phased results.

The first phase (around July 04) is under the jdk1.3.1 + tomcat4.1.27 + Eclipse2.1.2 configuration (the Eclipse plug-in is tomcatPluginV221 and lomboz.213). As you all know, JSP comes out after the servlet, and JSP is just a beautiful outer package of the servlet, it is only a simplified servlet, and ultimately to the server into a servlet and then compiled to run. But the files after Tomcat turned into a servlet were placed under the package org.apache.jsp, a place that had been delayed for a long time. So that every eclipse can refresh project to get the latest converted Jsp-servlet code, but debug is not the right to enter the code, always reported "source not found" error. This has been abandoned for some time. Later forced to do something nearly a year of dotnet, so this has been shelved, but I have been thinking to be able to debug JSP, dream.

In the second phase (August 05), the work was done back to something a year ago. So the year of debugging JSP also rekindled. or the Internet (here to thank the vast number of netizens and Google's search, a year to the same keyword has been replaced by different pages. From somewhere, the original Tomcat version in the funny, 5.0 below will not be based on your set Workdir to place the converted servlet, so will not find source. So all of them have been upgraded and turned into jdk1.4.2 + tomcat5.0.28 + Eclipse3.0 (no tomcat5.5, reason it needs to install jdk1.5, and jdk1.5 has not used, so dare not use) also after a pile of groping, finally saw the dawn, can go into the converted servlet, but the problem again, the value of the variable can not be viewed in real time. After a long time can not find the reason, began to lose confidence. Finally with a little hope to search the "JSP Debug", found MyEclipse this plug-in, download down, there are more than 50 trillion, after installation, found that it inherited Tomcat and Java things, try to build a Web project, hey, this time. But the drawback is that after the conversion of the servlet interrupt point, from the page access can not intercept, only in the real servlet to intercept, do not know what is the reason. Also hope that the cattle people enlighten.

The above is my attempt to debug the JSP through eclipse, although there are still some defects, but I would like to discuss one or two.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.