Archive for the ‘Java Posts’ Category

Advertisements

imgIn this tutorial “CAPTCHA in Java using Google reCAPTCHA”.Google reCAPTCHA is the popular CAPTCHA tool that allows to embed a CAPTCHA in UI and validate the input to block automated spammers. reCAPTCHA provides a Java library and a easy way to implement the CAPTCHA. CAPTCHA stands for “Completely Automated Public Turing test to tell Computers and Humans Apart”.

Read more: http://latest-tutorial.com/2014/04/15/captcha-java-using-google-recaptcha/#ixzz31lBhgwCY

International Bibliography of Periodical Liter...

What is DBPool?

In this tutorial “Pool Connection in Java Tutorial”.A Java-based database connection pooling utility, supporting time-based idle timeout, statement caching, connection validation, and easy configuration using a pool manager.

Why would I use it?

Read more: http://latest-tutorial.com/2014/04/21/pool-connection-java-tutorial/#ixzz31lB5lWra

maven.pngThis tutorial will serve as a getting started guide for Maven. If you are not aware of what Maven is, then go through my previous tutorial, it has introduction to Maven, how to setup it and Ant Vs Maven, and its advantages.

This tutorial is for developers who want to know only the essentials of Maven, who just want to dive immediately and swim. This tutorial may not give you the complete picture about Maven, but this will be sufficient to start working with Maven and will serve as a first step towards your mastery in Maven.

Read more:

Diagram to show the relations between JVM JRE JDKJava Virtual Machine (JVM) is an abstract computing machine. Java Runtime Environment (JRE) is an implementation of the JVM. Java Development Kit (JDK) contains JRE along with various development tools like Java libraries, Java source compilers, Java debuggers, bundling and deployment tools.

JVM becomes an instance of JRE at runtime of a java program. It is widely known as a runtime interpreter. The Java virtual machine (JVM) is the cornerstone on top of which the Java technology is built upon. It is the component of the Java technology responsible for its hardware and platform independence. JVM largely helps in the abstraction of inner implementation from the programmers who make use of libraries for their programmes from JDK.

Read More ……..

javalogoself1Here is the Java Examples of Cookies, HttpSession and URL Rewriting ,session management in servlets using different techniques and with example programs.

jstlWe can use JSTL Core tags c:catch and c:if to catch exception inside the JSP service method and process it. c:catch tag catches the exception and wraps it into the exception variable and we can use c:if condition tag to process it. Below code snippet provide sample usage.

1
2
3
4
5
6
7
8
<c:catch var ="exception">
   <% int x = 5/0;%>
</c:catch>
 
<c:if test = "${exception ne null}">
   <p>Exception is : ${exception} <br />
   Exception Message: ${exception.message}</p>
</c:if>

Notice the use of JSP EL in the c:if condition.

We can disable scripting elements in JSP pages through deployment descriptor configuration like below.

1
2
3
4
5
6
<jsp-config>
    <jsp-property-group>
        <url-pattern>*.jsp</url-pattern>
        <scripting-invalid>true</scripting-invalid>
    </jsp-property-group>
</jsp-config>

Above url-pattern will disable scripting for all the JSP pages but if you want to disable it only for specific page, you can give the JSP file name itself.

game developmentJava Game Development Tutorials will give you a very detailed introduction into the development of online games using Java. We will talk about Java Applets because everyone has a Internet browser, so everyone is able to play these games without installing the JDK! The first 5 chapters will lead you from the basic structure of a applet to the development of a whole (although pretty small) game. The next chapters will give you solutions to problems like AI, level editors, random generation of landscapes… . At the end of every chapter you’ll find a link to download the source-code of the applet we programmed in this chapter and you can take a look at the working applet too.

  1. Basic structure of an applet
  2. Animation
  3. Sound und Gif’s
  4. Event handling in applets
  5. The first complete game
    • Outline of the program and structure of classes
    • Random movement of the ball
    • Hit a ball by clicking on it
    • Count score and loose lifes
    • Change the mouse pointer
    • Start the game after double clicing on the applet
  6. Advanced topics
  7. Platform game basics
  8. Unfinished Chapters (only Applets and sourcecode)

Reference: latest-tutorial.com