background preloader

APT project

Facebook Twitter

Introduction to Ajax for Java Web Applications. This document provides an introduction to Ajax and demonstrates some of the features in the NetBeans IDE that allow you to program faster and more efficiently when working with Ajax-related technologies. While learning about the low-level functionality of Ajax, you build a simple application that employs auto-completion in a text field. Content here has been adapted from Greg Murray's article and sample application from Using Ajax with Java Technology. Ajax stands for Asynchronous JavaScript and XML. In essence, Ajax is an efficient way for a web application to handle user interactions with a web page - a way that reduces the need to do a page refresh or full page reload for every user interaction.

This enables rich behavior (similar to that of a desktop application or plugin-based web application) using a browser. Contents To complete this tutorial, you need the following software and resources. Notes: Overview of the Application Programming the Client-Side: Part 1 Using the HTML Editor. Sign In. Don't have a Microsoft account?

Sign In

Sign up now Microsoft account What's this? Email or phone Password Can't access your account? What is servlet? - Definition from WhatIs.com. A servlet is a small program that runs on a server.

What is servlet? - Definition from WhatIs.com

The term was coined in the context of the Java applet, a small program that is sent as a separate file along with a Web (HTML) page. Java applets, usually intended for running on a client, can result in such services as performing a calculation for a user or positioning an image based on user interaction. By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners.

You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA. You also agree that your personal information may be transferred and processed in the United States, and that you have read and agree to the Terms of Use and the Privacy Policy. Some programs, often those that access databases based on user input, need to be on the server. The "8080" port number in the URL means the request is intended directly for the Web server itself. What Is a Servlet? - The Java EE 5 Tutorial. What Is a Servlet?

What Is a Servlet? - The Java EE 5 Tutorial

A servlet is a Java programming language class that is used to extend the capabilities of servers that host applications accessed by means of a request-response programming model. Although servlets can respond to any type of request, they are commonly used to extend the applications hosted by web servers. For such applications, Java Servlet technology defines HTTP-specific servlet classes. The javax.servlet and javax.servlet.http packages provide interfaces and classes for writing servlets. All servlets must implement the Servlet interface, which defines life-cycle methods. Lucene Environment Setup. Environment Setup This tutorial will guide you on how to prepare a development environment to start your work with Spring Framework.

Lucene Environment Setup

This tutorial will also teach you how to setup JDK, Tomcat and Eclipse on your machine before you setup Spring Framework: Step 1 - Setup Java Development Kit (JDK): You can download the latest version of SDK from Oracle's Java site: Java SE Downloads. You will find instructions for installing JDK in downloaded files, follow the given instructions to install and configure the setup.

If you are running Windows and installed the JDK in C:\jdk1.6.0_15, you would have to put the following line in your C:\autoexec.bat file. set PATH=C:\jdk1.6.0_15\bin;%PATH%set JAVA_HOME=C:\jdk1.6.0_15 Alternatively, on Windows NT/2000/XP, you could also right-click on My Computer, select Properties, then Advanced, then Environment Variables.

How to make a simple web crawler in Java. A year or two after I created the dead simple web crawler in Python, I was curious how many lines of code and classes would be required to write it in Java.

How to make a simple web crawler in Java

It turns out I was able to do it in about 150 lines of code spread over two classes. That's it! How does it work? You give it a URL to a web page and word to search for. The spider will go to that web page and collect all of the words on the page as well as all of the URLs on the page. I'll be using Eclipse along the way, but any editor will suffice. Let's fire up Eclipse and start a new workspace. Lucene Text File Indexer - Lucene Tutorial.com. Here's a simple indexer which indexes text and HTML files on your file system.

Lucene Text File Indexer - Lucene Tutorial.com

How to make a simple web crawler in Java. How to write a multi-threaded webcrawler in Java. Table of Contents This page Here you can... ... learn how to write a multithreaded Java application... learn how to write a webcrawler... by the way learn how to write stuff that is object-oriented and reusable... or use the provided webcrawler more or less off-the-shelf.

How to write a multi-threaded webcrawler in Java

More or less in this case means that you have to be able to make minor adjustments to the Java source code yourself and compile it. You will need the Sun Java 2 SDK for this. This web page discusses the Java classes that I originally wrote to implement a multithreaded webcrawler in Java. Download the Java source code for the multithreaded webcrawler This code is in the public domain. 1 Why another webcrawler?

Why would anyone want to program yet another webcrawler? Although wget is powerful, for my purposes (originally: obtaining .wsdl-files from the web) it required a webcrawler that allowed easy customization. Sun's tutorial webcrawler on the other hand lacks some important features. 2 Multithreading Messages.