Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In Eclipse, you need to add the <code>jspider</code> project to the <code>crawler_GUI</code> project as follows:</p> <ol> <li><code>crawler_GUI</code> properties > Java Build Path > Projects > Add <code>jspider</code>.</li> <li><code>crawler_GUI</code> properties > Java EE Module Dependencies > Tick <code>jspider</code>.</li> </ol> <p>Don't forget to cleanup any loose files in <code>/WEB-INF/classes</code> you've added manually. This is unnecessary. Eclipse will automagically take care about this if you referenced the projects the right way. Also, any loose JAR files are supposed to be just dropped in <code>/WEB-INF/lib</code>.</p> <p>Now the JSP part of the story. It's hard to pinpoint the root cause since you wrote raw Java code in a JSP file instead of a real Java class. First step would be checking the server logs for any inconsistencies. It may also have happened that the wrong version of the <code>ESpider</code> class has been loaded (which lacks the sysout).</p> <p>As already hinted, this isn't really the way you're supposed to use JSP. It is to be used to as a template to write HTML/CSS/JS in wherein you can dynamically control the flow with help of taglibs like JSTL and access backend data using EL. Raw Java code belongs in Java classes, not JSP files. In this case you should have used a Servlet class. Just create a class which <code>extends HttpServlet</code>, implement the <code>doGet()</code> method accordingly with the <code>ESpider</code> stuff and finally forward to a JSP page to display the result, register the servlet in <code>web.xml</code> and call it by URL which covers its <code>url-pattern</code> in <code>web.xml</code>. <a href="http://courses.coreservlets.com/Course-Materials/csajsp2.html" rel="nofollow noreferrer">You can find here a lot of good JSP/Servlet tutorials</a>.</p> <p>P.S: ensure that you understand the <a href="http://en.wikipedia.org/wiki/Robots_exclusion_standard" rel="nofollow noreferrer"><code>robots.txt</code></a> policy...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload